[1.13c] Opening the cube

This forum is for discussions on how to edit what can not be edited through the txt files, needless to say this isn't about battle net hacking.

Moderators: Nefarius, Havvoric

0
No votes
 
Total votes: 0

User avatar
kidpaddle94
Forum Legend
Principality
Posts: 2057
Joined: Thu Aug 13, 2009 2:54 pm
Location: localhost
Canada

[1.13c] Opening the cube

Post by kidpaddle94 » Fri Apr 06, 2012 8:58 pm

So, I'm trying to open the Horadric cube via a button. But I have a problem ...

When I do it this way, the page doesn't appears, and all controls are frozen. I have to force-quit the d2 window to get out.

Code: Select all

D2CLIENT_SetUIVar(UI_CUBE, 2, 0);

///FUNCTION(D2CLIENT, SetUIVar, DWORD FASTCALL, (DWORD varno, DWORD howset, DWORD unknown1), 0xC2790)
Screenshot of what it does: http://i43.tinypic.com/oqbn2f.jpg

And, if I use the function the way that was used in the base source I use, it works, but I can't take items out of the cube, and I can't transmute.

Code: Select all

//removed due to ToS infrigments

It was using a D2Net function related to packets.
Thanks.
Last edited by kidpaddle94 on Sat Apr 07, 2012 4:15 am, edited 1 time in total.

User avatar
Demon9ne
Dark Alliance Beta Test
Champion of the Light
Posts: 385
Joined: Mon Dec 20, 2004 6:01 am
Location: IL, USA

Re: [1.13c] Opening the cube

Post by Demon9ne » Sat Apr 07, 2012 3:54 am

I don't know the answer to your question, but you need to remove that D2Net code. Client<->Server discussion is against ToS.

User avatar
kidpaddle94
Forum Legend
Principality
Posts: 2057
Joined: Thu Aug 13, 2009 2:54 pm
Location: localhost
Canada

Re: [1.13c] Opening the cube

Post by kidpaddle94 » Sat Apr 07, 2012 4:15 am

oh sorry, I edited my post.

User avatar
Necrolis
Senior Admin
Throne
Posts: 9125
Joined: Sat Mar 25, 2006 1:22 pm
Location: The Land of the Dead
South Africa

Hand-picked

Re: [1.13c] Opening the cube

Post by Necrolis » Sat Apr 07, 2012 6:14 am

doing this requires the server to open it, then sync that to the client. basically you need to execute the cube pspell.
Image
Netiquette, Do you USE it?!?! | Nefarius' Fixed TXT Files | Terms Of Service
Blackened | Day of Death | D2GFEx
"What was yours is mine. Your land, your people, and now your life." - Lim-Dul, the Necromancer
Judgement is Final, Death is Eternal

User avatar
kidpaddle94
Forum Legend
Principality
Posts: 2057
Joined: Thu Aug 13, 2009 2:54 pm
Location: localhost
Canada

Re: [1.13c] Opening the cube

Post by kidpaddle94 » Sat Apr 07, 2012 8:18 pm

And what is the best way to execute a pSpell function?

User avatar
Necrolis
Senior Admin
Throne
Posts: 9125
Joined: Sat Mar 25, 2006 1:22 pm
Location: The Land of the Dead
South Africa

Hand-picked

Re: [1.13c] Opening the cube

Post by Necrolis » Sun Apr 08, 2012 4:34 pm

call it with its parameters, the tables and prototype have all been posted before.
Image
Netiquette, Do you USE it?!?! | Nefarius' Fixed TXT Files | Terms Of Service
Blackened | Day of Death | D2GFEx
"What was yours is mine. Your land, your people, and now your life." - Lim-Dul, the Necromancer
Judgement is Final, Death is Eternal

User avatar
kidpaddle94
Forum Legend
Principality
Posts: 2057
Joined: Thu Aug 13, 2009 2:54 pm
Location: localhost
Canada

Re: [1.13c] Opening the cube

Post by kidpaddle94 » Sat Apr 28, 2012 9:01 pm

Okay, I have the address of the cube pSpell. I searched for the prototypes you mentioned but didn't find anything, so I tried some few things on my own. Here is what I tried:

Code: Select all

FUNCTION(D2GAME, CubePspell, VOID STDCALL, (), 0xAD9C0)
I also tried making it a VOID FASTCALL, same results.

Then I call it by a chat command for test purposes, with a simple text:

Code: Select all

D2GAME_CubePspell();
Print(0, 0, "Opening Cube - Test");
and when I execute it, I get this error:

Code: Select all

Halt
Location : , line #723
Expression : Unrecoverable internal error 6fd003ae
Complete Error Log:

Code: Select all

---------------------------------------------------------------
MAISON-174C4BF1 Realm startup at 2012-04-28 15:59:14.437
---------------------------------------------------------------
15:59:14.437  ------------------------------------------------------
15:59:14.437  2012-04-28 15:59:14
15:59:14.437  Diablo II running under Windows XP (Version 5.010)
15:59:14.437  Vendor:  AMD
15:59:14.437  Version: {Unknown} (Type 0, Family F, Model F, Stepping 2, Brand 0)
15:59:14.453  Speed: Approx. 2009 MHz
15:59:14.453  Total Physical Memory: 1983.30MB
15:59:14.453  Application Path: E:\Diablo II
15:59:14.453  Local IP: 192.168.0.100
15:59:14.453  Computer name: MAISON-174C4BF1
15:59:14.453  ------------------------------------------------------
15:59:14.453  
15:59:14.453  imagehlp.dll loaded for better stack crawls.
15:59:30.250  
15:59:30.250  
15:59:30.250  ------------------------------------------------------
15:59:30.250  PROGRAM:       Diablo II D2SE Core 1.13c
15:59:30.250  COMPUTER NAME: MAISON-174C4BF1
15:59:30.250  USER NAME:     Olivier
15:59:30.250  TIME:          2012-04-28 15:59:30.250
15:59:30.250  
15:59:30.250  --------  FILE:     LINE: 723  --------

Halt
Location : , line #723
Expression : Unrecoverable internal error 6fd003ae
15:59:36.296  --------------------------------------
15:59:36.296  Thread 1280 ***
15:59:36.296  ----------
15:59:36.296  User defined symbols path: E:\Diablo II;E:\Diablo II\MODS\D2SE-WhistMod;C:\WINDOWS
15:59:36.296  Enumerate modules...
15:59:36.312      Base:00400000h  Size:  5D000h  Name:D2SE.exe         Path:E:\Diablo II\D2SE.exe
15:59:36.312      Base:03BA0000h  Size:  41000h  Name:binkw32.dll      Path:E:\Diablo II\binkw32.dll
15:59:36.312      Base:03D00000h  Size:  1A000h  Name:SmackW32.dll     Path:E:\Diablo II\SmackW32.dll
15:59:36.312      Base:03D60000h  Size:  27000h  Name:glide3x.dll      Path:E:\Diablo II\MODS\D2SE-WhistMod\glide3x.dll
15:59:36.312      Base:04A70000h  Size:  40000h  Name:plugy.dll        Path:E:\Diablo II\MODS\D2SE-WhistMod\plugy.dll
15:59:36.312      Base:068F0000h  Size:  7F000h  Name:whistmodx.dll    Path:E:\Diablo II\MODS\D2SE-WhistMod\whistmodx.dll
15:59:36.312      Base:10000000h  Size:  33000h  Name:ijl11.dll        Path:E:\Diablo II\MODS\D2SE-WhistMod\ijl11.dll
15:59:36.312      Base:58B50000h  Size:  9A000h  Name:COMCTL32.dll     Path:C:\WINDOWS\system32\COMCTL32.dll
15:59:36.312      Base:595B0000h  Size: 1CA000h  Name:AcGenral.DLL     Path:C:\WINDOWS\AppPatch\AcGenral.DLL
15:59:36.312      Base:5B090000h  Size:  38000h  Name:UxTheme.dll      Path:C:\WINDOWS\system32\UxTheme.dll
15:59:36.312      Base:5CEA0000h  Size:  26000h  Name:ShimEng.dll      Path:C:\WINDOWS\system32\ShimEng.dll
15:59:36.312      Base:5D3F0000h  Size:  A1000h  Name:dbghelp.dll      Path:C:\WINDOWS\system32\dbghelp.dll
15:59:36.312      Base:5F070000h  Size:  CC000h  Name:OPENGL32.DLL     Path:C:\WINDOWS\system32\OPENGL32.DLL
15:59:36.312      Base:60000000h  Size:  2E000h  Name:ijl11.dat        Path:E:\Diablo II\ijl11.dat
15:59:36.312      Base:6CEF0000h  Size:  21000h  Name:GLU32.dll        Path:C:\WINDOWS\system32\GLU32.dll
15:59:36.312      Base:6F600000h  Size:  60000h  Name:Storm.dll        Path:E:\Diablo II\MODS\D2SE-WhistMod\Storm.dll
15:59:36.312      Base:6F850000h  Size:  1A000h  Name:D2Glide.dll      Path:E:\Diablo II\MODS\D2SE-WhistMod\D2Glide.dll
15:59:36.312      Base:6F870000h  Size:   E000h  Name:D2Gdi.dll        Path:E:\Diablo II\MODS\D2SE-WhistMod\D2Gdi.dll
15:59:36.312      Base:6F880000h  Size:  36000h  Name:D2Direct3D.dll   Path:E:\Diablo II\MODS\D2SE-WhistMod\D2Direct3D.dll
15:59:36.312      Base:6F8C0000h  Size:  13000h  Name:D2DDraw.dll      Path:E:\Diablo II\MODS\D2SE-WhistMod\D2DDraw.dll
15:59:36.312      Base:6F8E0000h  Size:  CF000h  Name:D2Win.dll        Path:E:\Diablo II\MODS\D2SE-WhistMod\D2Win.dll
15:59:36.312      Base:6F9B0000h  Size:  19000h  Name:D2Sound.dll      Path:E:\Diablo II\D2SE\CORES\1.13c\D2Sound.dll
15:59:36.312      Base:6F9D0000h  Size:  3F000h  Name:D2Multi.dll      Path:E:\Diablo II\D2SE\CORES\1.13c\D2Multi.dll
15:59:36.312      Base:6FA20000h  Size:  14000h  Name:D2MCPClient.dll  Path:E:\Diablo II\D2SE\CORES\1.13c\D2MCPClient.dll
15:59:36.312      Base:6FA40000h  Size:  2D000h  Name:D2Launch.dll     Path:E:\Diablo II\MODS\D2SE-WhistMod\D2Launch.dll
15:59:36.312      Base:6FA80000h  Size:  21000h  Name:D2gfx.dll        Path:E:\Diablo II\MODS\D2SE-WhistMod\D2gfx.dll
15:59:36.312      Base:6FAB0000h  Size: 135000h  Name:D2Client.dll     Path:E:\Diablo II\MODS\D2SE-WhistMod\D2Client.dll
15:59:36.312      Base:6FBF0000h  Size:   D000h  Name:D2Net.dll        Path:E:\Diablo II\D2SE\CORES\1.13c\D2Net.dll
15:59:36.312      Base:6FC00000h  Size:  14000h  Name:D2Lang.dll       Path:E:\Diablo II\D2SE\CORES\1.13c\D2Lang.dll
15:59:36.312      Base:6FC20000h  Size: 122000h  Name:D2Game.dll       Path:E:\Diablo II\MODS\D2SE-WhistMod\D2Game.dll
15:59:36.312      Base:6FD50000h  Size:  A9000h  Name:D2Common.dll     Path:E:\Diablo II\MODS\D2SE-WhistMod\D2Common.dll
15:59:36.312      Base:6FE10000h  Size: 108000h  Name:D2CMP.dll        Path:E:\Diablo II\D2SE\CORES\1.13c\D2CMP.dll
15:59:36.312      Base:6FF20000h  Size:  24000h  Name:Bnclient.dll     Path:E:\Diablo II\MODS\D2SE-WhistMod\Bnclient.dll
15:59:36.312      Base:6FF50000h  Size:  5C000h  Name:Fog.dll          Path:E:\Diablo II\D2SE\CORES\1.13c\Fog.dll
15:59:36.312      Base:719E0000h  Size:   8000h  Name:WS2HELP.dll      Path:C:\WINDOWS\system32\WS2HELP.dll
15:59:36.312      Base:719F0000h  Size:  17000h  Name:WS2_32.dll       Path:C:\WINDOWS\system32\WS2_32.dll
15:59:36.312      Base:71A10000h  Size:   A000h  Name:WSOCK32.dll      Path:C:\WINDOWS\system32\WSOCK32.dll
15:59:36.312      Base:72C60000h  Size:   8000h  Name:msacm32.drv      Path:C:\WINDOWS\system32\msacm32.drv
15:59:36.312      Base:72C70000h  Size:   9000h  Name:wdmaud.drv       Path:C:\WINDOWS\system32\wdmaud.drv
15:59:36.312      Base:736B0000h  Size:  4B000h  Name:DDRAW.dll        Path:C:\WINDOWS\system32\DDRAW.dll
15:59:36.312      Base:73B10000h  Size:   6000h  Name:DCIMAN32.dll     Path:C:\WINDOWS\system32\DCIMAN32.dll
15:59:36.312      Base:73E30000h  Size:   4000h  Name:KsUser.dll       Path:C:\WINDOWS\system32\KsUser.dll
15:59:36.312      Base:73E60000h  Size:  5C000h  Name:DSOUND.dll       Path:C:\WINDOWS\system32\DSOUND.dll
15:59:36.312      Base:74690000h  Size:  4C000h  Name:MSCTF.dll        Path:C:\WINDOWS\system32\MSCTF.dll
15:59:36.312      Base:75140000h  Size:  2E000h  Name:msctfime.ime     Path:C:\WINDOWS\system32\msctfime.ime
15:59:36.312      Base:76320000h  Size:  1D000h  Name:IMM32.DLL        Path:C:\WINDOWS\system32\IMM32.DLL
15:59:36.312      Base:76340000h  Size:  4A000h  Name:comdlg32.dll     Path:C:\WINDOWS\system32\comdlg32.dll
15:59:36.312      Base:76960000h  Size:  B6000h  Name:USERENV.dll      Path:C:\WINDOWS\system32\USERENV.dll
15:59:36.312      Base:76AE0000h  Size:  2F000h  Name:WINMM.dll        Path:C:\WINDOWS\system32\WINMM.dll
15:59:36.312      Base:76BA0000h  Size:   B000h  Name:PSAPI.DLL        Path:C:\WINDOWS\system32\PSAPI.DLL
15:59:36.312      Base:76BE0000h  Size:  2E000h  Name:WINTRUST.dll     Path:C:\WINDOWS\system32\WINTRUST.dll
15:59:36.312      Base:76C40000h  Size:  28000h  Name:IMAGEHLP.dll     Path:C:\WINDOWS\system32\IMAGEHLP.dll
15:59:36.312      Base:76D10000h  Size:  19000h  Name:iphlpapi.dll     Path:C:\WINDOWS\system32\iphlpapi.dll
15:59:36.312      Base:76ED0000h  Size:  27000h  Name:DNSAPI.dll       Path:C:\WINDOWS\system32\DNSAPI.dll
15:59:36.312      Base:76F70000h  Size:   6000h  Name:rasadhlp.dll     Path:C:\WINDOWS\system32\rasadhlp.dll
15:59:36.312      Base:770E0000h  Size:  8B000h  Name:OLEAUT32.dll     Path:C:\WINDOWS\system32\OLEAUT32.dll
15:59:36.312      Base:77390000h  Size: 103000h  Name:comctl32.dll     Path:C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.6028_x-ww_61e65202\comctl32.dll
15:59:36.312      Base:774A0000h  Size: 13E000h  Name:ole32.dll        Path:C:\WINDOWS\system32\ole32.dll
15:59:36.312      Base:779E0000h  Size:  97000h  Name:CRYPT32.dll      Path:C:\WINDOWS\system32\CRYPT32.dll
15:59:36.312      Base:77A80000h  Size:  12000h  Name:MSASN1.dll       Path:C:\WINDOWS\system32\MSASN1.dll
15:59:36.312      Base:77B50000h  Size:  22000h  Name:apphelp.dll      Path:C:\WINDOWS\system32\apphelp.dll
15:59:36.312      Base:77BA0000h  Size:   7000h  Name:midimap.dll      Path:C:\WINDOWS\system32\midimap.dll
15:59:36.312      Base:77BB0000h  Size:  15000h  Name:MSACM32.dll      Path:C:\WINDOWS\system32\MSACM32.dll
15:59:36.312      Base:77BD0000h  Size:   8000h  Name:VERSION.dll      Path:C:\WINDOWS\system32\VERSION.dll
15:59:36.312      Base:77BE0000h  Size:  58000h  Name:msvcrt.dll       Path:C:\WINDOWS\system32\msvcrt.dll
15:59:36.312      Base:77DA0000h  Size:  AC000h  Name:ADVAPI32.dll     Path:C:\WINDOWS\system32\ADVAPI32.dll
15:59:36.312      Base:77E50000h  Size:  93000h  Name:RPCRT4.dll       Path:C:\WINDOWS\system32\RPCRT4.dll
15:59:36.312      Base:77EF0000h  Size:  49000h  Name:GDI32.dll        Path:C:\WINDOWS\system32\GDI32.dll
15:59:36.312      Base:77F40000h  Size:  76000h  Name:SHLWAPI.dll      Path:C:\WINDOWS\system32\SHLWAPI.dll
15:59:36.312      Base:77FC0000h  Size:  11000h  Name:Secur32.dll      Path:C:\WINDOWS\system32\Secur32.dll
15:59:36.312      Base:7C800000h  Size: 106000h  Name:kernel32.dll     Path:C:\WINDOWS\system32\kernel32.dll
15:59:36.312      Base:7C910000h  Size:  B9000h  Name:ntdll.dll        Path:C:\WINDOWS\system32\ntdll.dll
15:59:36.312      Base:7C9D0000h  Size: 825000h  Name:SHELL32.dll      Path:C:\WINDOWS\system32\SHELL32.dll
15:59:36.312      Base:7E390000h  Size:  91000h  Name:USER32.dll       Path:C:\WINDOWS\system32\USER32.dll
15:59:36.312  
15:59:36.312  Load symbols...
15:59:37.296  
15:59:37.296  Annotated stack dump

                     // EIP = 0x6FF60FC7 - Fog.dll - Ordinal10028+0097

              0013F31C: 00000000 4A499406                    ....JI..

                           // 0x0694494A - whistmodx.dll - pterm+7746

              0013F324: 00000000 30F31300 1CF31300 D4F41300  ....0ó...ó..Ôô..
              0013F334: 2011F66F                              .öo

                           // 0x6FF61120 - Fog.dll - Ordinal10024+0020

              0013F338: C70FF66F                             Ç.öo

                           // 0x6FF60FC7 - Fog.dll - Ordinal10028+0097

              0013F33C: EC68F76F                             ìh÷o

                           // 0x6FF768EC - Fog.dll - gdwInvBitMasks+00D4

              0013F340: D3020000 0C85F76F                    Ó.....÷o

                           // 0x6FF7850C - Fog.dll - gdwInvBitMasks+1CF4

              0013F348: AE03D06F                             ®.Ðo

                           // 0x6FD003AE - D2Game.dll - unknown+1CF4

              0013F34C: B903D06F                             ¹.Ðo

                           // 0x6FD003B9 - D2Game.dll - unknown+1CF4

              0013F350: F99FD16F                             ù.Ño

                           // 0x6FD19FF9 - D2Game.dll - unknown+1CF4

              0013F354: AE03D06F                             ®.Ðo

                           // 0x6FD003AE - D2Game.dll - unknown+1CF4

              0013F358: D3020000 11DACC6F                    Ó....ÚÌo

                           // 0x6FCCDA11 - D2Game.dll - Ordinal10004+59611

              0013F360: 12F61300 01000000 785C9106           .ö......x\..

                           // 0x06915C78 - whistmodx.dll - Input+1CF8

              0013F36C: 10F51300 80ECBC6F                    .õ...ì¼o

                           // 0x6FBCEC80 - D2Client.dll - unknown+1CF8

              0013F374: 6DF41300 08000000 98F31300 C8E49206  mô.......ó..Èä..

                           // 0x0692E4C8 - whistmodx.dll - _isleadbyte_l+0013

              0013F384: DCF31300 40241703 E82D1703 C2D89206  Üó..@$..è-..ÂØ..

                           // 0x0692D8C2 - whistmodx.dll - write_string+002A

              0013F394: 00F61300 2CF61300 8DDC9206           .ö..,ö...Ü..

                           // 0x0692DC8D - whistmodx.dll - _output_s_l+03A8

              0013F3A0: 25000000 D4F31300 E8879206           %...Ôó..è...

                           // 0x069287E8 - whistmodx.dll - __set_flsgetvalue+000F

              0013F3AC: 32000000 D4F31300 72899206           2...Ôó..r...

                           // 0x06928972 - whistmodx.dll - _getptd_noexit+0074

              0013F3B8: 00000000 98FA9306                    .....ú..

                           // 0x0693FA98 - whistmodx.dll - pterm+2894

              0013F3C0: 14F41300 7F899206                    .ô.....

                           // 0x0692897F - whistmodx.dll - _getptd+0008

              0013F3C8: C2D89206                             ÂØ..

                           // 0x0692D8C2 - whistmodx.dll - write_string+002A

              0013F3CC: 08000000 09000000 64F61300 E1E39206  ........dö..áã..

                           // 0x0692E3E1 - whistmodx.dll - _output_s_l+0AFC

              0013F3DC: 00000000 20030000 88F91300 92E49206  .... ....ù...ä..

                           // 0x0692E492 - whistmodx.dll - _output_s_l+0BAD

              0013F3EC: 00000000 2E637562 657A0000 00000000  .....cubez......
              0013F3FC: 00000000 00000000 00000000 2E637562  .............cub
              0013F40C: 657A0000 00000000 00000000 00000000  ez..............
              0013F41C: 00000000 00000000 00000000 00000000  ................
              0013F42C: 00000000 00000000 00000000 00000000  ................
              0013F43C: 00000000 00000000 00000000 00000000  ................
              0013F44C: 00000000 00000000 00000000 00000000  ................
              0013F45C: 00000000 00000000 00000000 00000000  ................
              0013F46C: 2E637562 657A0000 00000000 00000000  .cubez..........
              0013F47C: 00000000 00000000 00000000 00000000  ................
              0013F48C: 00000000 00000000 00000000 00000000  ................
              0013F49C: 00000000 00000000 00000000 00000000  ................
              0013F4AC: 00000000 00000000 00000000 00000000  ................
              0013F4BC: 00000000 00000000 00000000 00000000  ................
              0013F4CC: 00000000 03E89846 2CF61300 187A9106  .....è.F,ö...z..

                           // 0x06917A18 - whistmodx.dll - InputSTUB+0008

              0013F4DC: 12F61300 10F51300 2CF61300 FCF41300  .ö...õ..,ö..üô..
              0013F4EC: 80ECBC6F                             .ì¼o

                           // 0x6FBCEC80 - D2Client.dll - unknown+0008

              0013F4F0: 00000181 00000000 01000000 7A0BB26F  ............z.²o

                           // 0x6FB20B7A - D2Client.dll - unknown+0008

              0013F500: 80ECBC6F                             .ì¼o

                           // 0x6FBCEC80 - D2Client.dll - unknown+0008

              0013F504: 00000000 00000000 54F61300 1501002E  ........Tö......
              0013F514: 63756265 7A006F90 F6130046 020000F3  cubez.o.ö..F...ó
              0013F524: 020000FF FFFFFF05 00000008 00000009  ...ÿÿÿÿ.........
              0013F534: 02000028 F71300AC FC1300FF FFFFFF09  ...(÷..¬ü..ÿÿÿÿ.
              0013F544: 00000064 00130009 02000044 00000000  ...d.......D....
              0013F554: 00000000 00000009 02000001 000000AC  ...............¬
              0013F564: FC130001 00000000 00000000 00000024  ü..............$
              0013F574: 15906F00 00000000 00000000 00000000  ..o.............
              0013F584: 80E60700 000000B5 9EE60700 00000000  .æ.....µ.æ......
              0013F594: 000000CF 2F8F6F28 F71300F3 02000049  ...Ï/.o(÷..ó...I
              0013F5A4: 00000009 000000FF FFFFFF01 00000009  .......ÿÿÿÿ.....
              0013F5B4: 02000001 000000D1 009006F3 02000008  .......Ñ...ó....
              0013F5C4: 000000D9 00900632 01000000 000000E6  ...Ù...2.......æ
              0013F5D4: 00900610 00000041 00000029 020000F3  .......A...)...ó
              0013F5E4: 02000057 00680069 00730074 0020004D  ...W.h.i.s.t. .M
              0013F5F4: 006F0064 00000000 00000000 00000000  .o.d............
              0013F604: 00000000 00000000 00000000 00000000  ................
              0013F614: 5310B26F                             S.²o

                           // 0x6FB21053 - D2Client.dll - unknown+0008

              0013F618: 00000000 50020000 80ECBC6F           ....P....ì¼o

                           // 0x6FBCEC80 - D2Client.dll - unknown+0008

              0013F624: 00020000 54F61300 B0B0C06F           ....Tö..°°Ào

                           // 0x6FC0B0B0 - D2Lang.dll - Unicode::strlen+0000

              0013F630: 6210B26F                             b.²o

                           // 0x6FB21062 - D2Client.dll - unknown+0000

              0013F634: 00000000 400CB26F                    ....@.²o

                           // 0x6FB20C40 - D2Client.dll - unknown+0000

              0013F63C: D002EA00 D8010900 02010000 F3020000  Ð.ê.Ø.......ó...
              0013F64C: FFFFFFFF 00000000 2E637562 657A006F  ÿÿÿÿ.....cubez.o
              0013F65C: 90F61300 46020000 F3020000 FFFFFFFF  .ö..F...ó...ÿÿÿÿ
              0013F66C: 05000000 08000000 09020000 28F71300  ............(÷..
              0013F67C: ACFC1300 FFFFFFFF 09000000 64001300  ¬ü..ÿÿÿÿ....d...
              0013F68C: 09020000 44000000 00000000 00000000  ....D...........
              0013F69C: 09020000 01000000 ACFC1300 01000000  ........Ÿ......
              0013F6AC: 00000000 00000000 2415906F           ........$..o

                           // 0x6F901524 - D2Win.dll - unknown+0000

              0013F6B8: 00000000 00000000 00000000 0080E607  ..............æ.
              0013F6C8: 00000000 B59EE607 00000000 00000000  ....µ.æ.........
              0013F6D8: CF2F8F6F                             Ï/.o

                           // 0x6F8F2FCF - D2Win.dll - Ordinal10150+002F

              0013F6DC: 28F71300 F3020000 49000000 09000000  (÷..ó...I.......
              0013F6EC: FFFFFFFF 01000000 09020000 01000000  ÿÿÿÿ............
              0013F6FC: D1009006                             Ñ...

                           // 0x069000D1 - whistmodx.dll - Design::TextHook+0101

              0013F700: F3020000 08000000 D9009006           ó.......Ù...

                           // 0x069000D9 - whistmodx.dll - Design::TextHook+0109

              0013F70C: 32010000 00000000 E6009006           2.......æ...

                           // 0x069000E6 - whistmodx.dll - Design::TextHook+0116

              0013F718: 10000000 41000000 29020000 F3020000  ....A...)...ó...
              0013F728: 57006800 69007300 74002000 4D006F00  W.h.i.s.t. .M.o.
              0013F738: 64000000 00000000 00000000 00000000  d...............
              0013F748: 00000000 00000000 00000000 00000000  ................
              0013F758: 205F636F                              _co

                           // 0x6F635F20 - Storm.dll - Ordinal372+0150

              0013F75C: 98F71300 0D000000 D8010900 02010000  .÷......Ø.......
              0013F76C: 01000000 33000000 4142636F           ....3...ABco

                           // 0x6F634241 - Storm.dll - Ordinal412+0071

              0013F778: 47534D53 D8010900 02010000 98F71300  GSMSØ........÷..
              0013F788: 02010000 0D000000 D8010900 01001C00  ........Ø.......
              0013F798: D8010900 02010000 0D000000 01001C00  Ø...............
              0013F7A8: 00000000 00000000 00000000 00000000  ................
              0013F7B8: 0ACEAE6F                             .ήo

                           // 0x6FAECE0A - D2Client.dll - Ordinal10003+2C54A

              0013F7BC: D8010900 02010000 0D000000 01001C00  Ø...............
              0013F7CC: E4F71300 E8F71300 6CF81300 40778F6F  ä÷..è÷..lø..@w.o

                           // 0x6F8F7740 - D2Win.dll - Ordinal10149+0660

              0013F7DC: 30F81300 00000000 00000000 00000000  0ø..............
              0013F7EC: 75778F6F                             uw.o

                           // 0x6F8F7775 - D2Win.dll - Ordinal10149+0695

              0013F7F0: D8010900 02010000 0D000000 01001C00  Ø...............
              0013F800: 00000000 00000000 3487397E           ........4.9~

                           // 0x7E398734 - USER32.dll - GetDC+006D

              0013F80C: D8010900 02010000 0D000000 01001C00  Ø...............
              0013F81C: 40778F6F                             @w.o

                           // 0x6F8F7740 - D2Win.dll - Ordinal10149+0660

              0013F820: CDABBADC 00000000 6CF81300 40778F6F  Í«ºÜ....lø..@w.o

                           // 0x6F8F7740 - D2Win.dll - Ordinal10149+0660

              0013F830: 98F81300 1688397E                    .ø....9~

                           // 0x7E398816 - USER32.dll - GetDC+014F

              0013F838: 40778F6F                             @w.o

                           // 0x6F8F7740 - D2Win.dll - Ordinal10149+0660

              0013F83C: D8010900 02010000 0D000000 01001C00  Ø...............
              0013F84C: 00000000 D8010900 34F91300 14000000  ....Ø...4ù......
              0013F85C: 01000000 00000000 00000000 10000000  ................
              0013F86C: 00000000 90F81300 01000000 00000000  .....ø..........
              0013F87C: 00000000 4CF81300 DCF81300 DCF81300  ....Lø..Üø..Üø..
              0013F88C: 8F043C7E                             ..<~

                           // 0x7E3C048F - USER32.dll - DeregisterShellHookWindow+01CF

              0013F890: 3088397E                             0.9~

                           // 0x7E398830 - USER32.dll - GetDC+0169

              0013F894: 00000000 ECF81300 A08E3A7E           ....ìø.. .:~

                           // 0x7E3A8EA0 - USER32.dll - DefWindowProcW+0180

              0013F8A0: 00000000 40778F6F                    ....@w.o

                           // 0x6F8F7740 - D2Win.dll - Ordinal10149+0660

              0013F8A8: D8010900 02010000 0D000000 01001C00  Ø...............
              0013F8B8: 9C2C6400 01000000 38F7FD7F 00000000  .,d.....8÷ý....
              0013F8C8: 34F91300 7C00AD05 00000000 C0F81300  4ù..|.­.....Àø..
              0013F8D8: B9B1616F                             ¹±ao

                           // 0x6F61B1B9 - Storm.dll - Ordinal497+0199

              0013F8DC: 70FA1300 8F043C7E                    pú....<~

                           // 0x7E3C048F - USER32.dll - DeregisterShellHookWindow+01CF

              0013F8E4: B08E3A7E                             °.:~

                           // 0x7E3A8EB0 - USER32.dll - DefWindowProcW+0190

              0013F8E8: FFFFFFFF 24F91300 1D893D7E           ÿÿÿÿ$ù....=~

                           // 0x7E3D891D - USER32.dll - DdeConnectList+043F

              0013F8F4: 882C6400 02010000 0D000000 01001C00  .,d.............
              0013F904: 40778F6F                             @w.o

                           // 0x6F8F7740 - D2Win.dll - Ordinal10149+0660

              0013F908: 02010000 6503FFFF 00000000 A0828F6F  ....e.ÿÿ.... ..o

                           // 0x6F8F82A0 - D2Win.dll - Ordinal10144+0240

              0013F918: 00000000 00000000 00000000 7CF91300  ............|ù..
              0013F928: 73E4917C                             sä.|

                           // 0x7C91E473 - ntdll.dll - KiUserCallbackDispatcher+0013

              0013F92C: 38F7FD7F 1C000000 882C6400 02010000  8÷ý.....,d.....
              0013F93C: 0D000000 01001C00 40778F6F           ........@w.o

                           // 0x6F8F7740 - D2Win.dll - Ordinal10149+0660

              0013F948: 538E3A7E                             S.:~

                           // 0x7E3A8E53 - USER32.dll - DefWindowProcW+0133

              0013F94C: 01000000 BE94397E                    ....¾.9~

                           // 0x7E3994BE - USER32.dll - GetWindowLongA+0061

              0013F954: 3F683E7E                             ?h>~

                           // 0x7E3E683F - USER32.dll - keybd_event+00BC

              0013F958: D8010900 02010000 0D000000 01001C00  Ø...............
              0013F968: 6503FFFF B3020000 00000000 02010000  e.ÿÿ³...........
              0013F978: 6503FFFF A8F91300 E5EC397E           e.ÿÿ¨ù..åì9~

                           // 0x7E39ECE5 - USER32.dll - LoadRemoteFonts+002E

              0013F984: D8010900 02010000 0D000000 01001C00  Ø...............
              0013F994: 6503FFFF B3020000 00000000 02010000  e.ÿÿ³...........
              0013F9A4: 0D000000 C8F91300 39A03A7E           ....Èù..9 :~

                           // 0x7E3AA039 - USER32.dll - CallWindowProcW+001B

              0013F9B0: 6503FFFF D8010900 02010000 0D000000  e.ÿÿØ...........
              0013F9C0: 01001C00 00000000 ECF91300 DE290010  ........ìù..Þ)..

                           // 0x100029DE - ijl11.dll - unknown+001B

              0013F9D0: 6503FFFF D8010900 02010000 0D000000  e.ÿÿØ...........
              0013F9E0: 01001C00 54FA1300 80280010           ....Tú...(..

                           // 0x10002880 - ijl11.dll - unknown+001B

              0013F9EC: 18FA1300 3487397E                    .ú..4.9~

                           // 0x7E398734 - USER32.dll - GetDC+006D

              0013F9F4: D8010900 02010000 0D000000 01001C00  Ø...............
              0013FA04: 80280010                             .(..

                           // 0x10002880 - ijl11.dll - unknown+006D

              0013FA08: CDABBADC 00000000 54FA1300 80280010  Í«ºÜ....Tú...(..

                           // 0x10002880 - ijl11.dll - unknown+006D

              0013FA18: 80FA1300 1688397E                    .ú....9~

                           // 0x7E398816 - USER32.dll - GetDC+014F

              0013FA20: 80280010                             .(..

                           // 0x10002880 - ijl11.dll - unknown+014F

              0013FA24: D8010900 02010000 0D000000 01001C00  Ø...............
              0013FA34: 00000000 D8010900 1CFB1300 14000000  ....Ø....û......
              0013FA44: 01000000 00000000 00000000 10000000  ................
              0013FA54: 00000000 2A88397E                    ....*.9~

                           // 0x7E39882A - USER32.dll - GetDC+0163

              0013FA5C: 01000000 00000000 00000000 34FA1300  ............4ú..
              0013FA6C: 00010000 C4FA1300 8F043C7E           ....Äú....<~

                           // 0x7E3C048F - USER32.dll - DeregisterShellHookWindow+01CF

              0013FA78: 3088397E                             0.9~

                           // 0x7E398830 - USER32.dll - GetDC+0169

              0013FA7C: 00000000 D4FA1300 A08E3A7E           ....Ôú.. .:~

                           // 0x7E3A8EA0 - USER32.dll - DefWindowProcW+0180

              0013FA88: 00000000 80280010                    .....(..

                           // 0x10002880 - ijl11.dll - unknown+0180

              0013FA90: D8010900 02010000 0D000000 01001C00  Ø...............
              0013FAA0: 9C2C6400 01000000 02010000 00000000  .,d.............
              0013FAB0: 1CFB1300 D8010900 00000000 A8FA1300  .û..Ø.......¨ú..
              0013FAC0: 01001C00 3CFC1300 8F043C7E           ....<ü....<~

                           // 0x7E3C048F - USER32.dll - DeregisterShellHookWindow+01CF

              0013FACC: B08E3A7E                             °.:~

                           // 0x7E3A8EB0 - USER32.dll - DefWindowProcW+0190

              0013FAD0: FFFFFFFF 0CFB1300 52893D7E           ÿÿÿÿ.û..R.=~

                           // 0x7E3D8952 - USER32.dll - DdeConnectList+0474

              0013FADC: 882C6400 02010000 0D000000 01001C00  .,d.............
              0013FAEC: 80280010                             .(..

                           // 0x10002880 - ijl11.dll - unknown+0474

              0013FAF0: 02010000 1903FFFF 00000000 D98B397E  ......ÿÿ....Ù.9~

                           // 0x7E398BD9 - USER32.dll - GetWindowThreadProcessId+0159

15:59:38.375  
15:59:38.375  Stack Crawl:
15:59:38.375  Address  Frame    Module       Return    Stack
15:59:38.375  6ff60fc7 0013f330 Fog.dll      Fog!Ordinal10028+0097 
15:59:38.375  6ff61120 0013f4d4 Fog.dll      Fog!Ordinal10024+0020 
15:59:38.937  06917a18 0013f4f8 whistmodx.dll whistmodx!InputSTUB+0008                 patch stubs.cpp, 160
15:59:38.937  6fb20b7a 0013f62c D2Client.dll D2Client!unknown+0000 
15:59:38.937  6fb21062 6fc0b0b0 D2Client.dll D2Client!unknown+0000 
15:59:38.937  66c30175 c985c033 D2SE.exe     unknown+0000 
15:59:38.937  6 frames dumped
15:59:38.984  Stack bytes:
15:59:38.984  C985C03B:<unreadable>
              C985C04B:<unreadable>
              C985C05B:<unreadable>
              C985C06B:<unreadable>
              C985C07B:<unreadable>
              C985C08B:<unreadable>
              C985C09B:<unreadable>
              C985C0AB:<unreadable>
              C985C0BB:<unreadable>
              C985C0CB:<unreadable>
              C985C0DB:<unreadable>
              C985C0EB:<unreadable>
              C985C0FB:<unreadable>
              C985C10B:<unreadable>
              C985C11B:<unreadable>
              C985C12B:<unreadable>
              C985C13B:<unreadable>
              C985C14B:<unreadable>
              C985C15B:<unreadable>
              C985C16B:<unreadable>
              C985C17B:<unreadable>
              C985C18B:<unreadable>
              C985C19B:<unreadable>
              C985C1AB:<unreadable>
              C985C1BB:<unreadable>
              C985C1CB:<unreadable>
              C985C1DB:<unreadable>
              C985C1EB:<unreadable>
              C985C1FB:<unreadable>
              C985C20B:<unreadable>
              C985C21B:<unreadable>
              C985C22B:<unreadable>
              C985C23B:<unreadable>
              C985C24B:<unreadable>
              C985C25B:<unreadable>
              C985C26B:<unreadable>
              C985C27B:<unreadable>
              C985C28B:<unreadable>
              C985C29B:<unreadable>
              C985C2AB:<unreadable>
              C985C2BB:<unreadable>
              C985C2CB:<unreadable>
              C985C2DB:<unreadable>
              C985C2EB:<unreadable>
              C985C2FB:<unreadable>
              C985C30B:<unreadable>
              C985C31B:<unreadable>
              C985C32B:<unreadable>
              C985C33B:<unreadable>
              C985C34B:<unreadable>
              C985C35B:<unreadable>
              C985C36B:<unreadable>
              C985C37B:<unreadable>
              C985C38B:<unreadable>
              C985C39B:<unreadable>
              C985C3AB:<unreadable>
              C985C3BB:<unreadable>
              C985C3CB:<unreadable>
              C985C3DB:<unreadable>
              C985C3EB:<unreadable>
              C985C3FB:<unreadable>
              C985C40B:<unreadable>
              C985C41B:<unreadable>
              C985C42B:<unreadable>
              C985C43B:<unreadable>
              C985C44B:<unreadable>
              C985C45B:<unreadable>
              C985C46B:<unreadable>
              C985C47B:<unreadable>
              C985C48B:<unreadable>
              C985C49B:<unreadable>
              C985C4AB:<unreadable>
              C985C4BB:<unreadable>
              C985C4CB:<unreadable>
              C985C4DB:<unreadable>
              C985C4EB:<unreadable>
              C985C4FB:<unreadable>
              C985C50B:<unreadable>
              C985C51B:<unreadable>
              C985C52B:<unreadable>
              C985C53B:<unreadable>
              C985C54B:<unreadable>
              C985C55B:<unreadable>
              C985C56B:<unreadable>
              C985C57B:<unreadable>
              C985C58B:<unreadable>
              C985C59B:<unreadable>
              C985C5AB:<unreadable>
              C985C5BB:<unreadable>
              C985C5CB:<unreadable>
              C985C5DB:<unreadable>
              C985C5EB:<unreadable>
              C985C5FB:<unreadable>
              C985C60B:<unreadable>
              C985C61B:<unreadable>
              C985C62B:<unreadable>
              C985C63B:<unreadable>
              C985C64B:<unreadable>
              C985C65B:<unreadable>
              C985C66B:<unreadable>
              C985C67B:<unreadable>
              C985C68B:<unreadable>
              C985C69B:<unreadable>
              C985C6AB:<unreadable>
              C985C6BB:<unreadable>
              C985C6CB:<unreadable>
              C985C6DB:<unreadable>
              C985C6EB:<unreadable>
              C985C6FB:<unreadable>
              C985C70B:<unreadable>
              C985C71B:<unreadable>
              C985C72B:<unreadable>
              C985C73B:<unreadable>
              C985C74B:<unreadable>
              C985C75B:<unreadable>
              C985C76B:<unreadable>
              C985C77B:<unreadable>
              C985C78B:<unreadable>
              C985C79B:<unreadable>
              C985C7AB:<unreadable>
              C985C7BB:<unreadable>
              C985C7CB:<unreadable>
              C985C7DB:<unreadable>
              C985C7EB:<unreadable>
              C985C7FB:<unreadable>
              C985C80B:<unreadable>
              C985C81B:<unreadable>
              C985C82B:<unreadable>
              C985C83B:<unreadable>
              C985C84B:<unreadable>
              C985C85B:<unreadable>
              C985C86B:<unreadable>
              C985C87B:<unreadable>
              C985C88B:<unreadable>
              C985C89B:<unreadable>
              C985C8AB:<unreadable>
              C985C8BB:<unreadable>
              C985C8CB:<unreadable>
              C985C8DB:<unreadable>
              C985C8EB:<unreadable>
              C985C8FB:<unreadable>
              C985C90B:<unreadable>
              C985C91B:<unreadable>
              C985C92B:<unreadable>
              C985C93B:<unreadable>
              C985C94B:<unreadable>
              C985C95B:<unreadable>
              C985C96B:<unreadable>
              C985C97B:<unreadable>
              C985C98B:<unreadable>
              C985C99B:<unreadable>
              C985C9AB:<unreadable>
              C985C9BB:<unreadable>
              C985C9CB:<unreadable>
              C985C9DB:<unreadable>
              C985C9EB:<unreadable>
              C985C9FB:<unreadable>
              C985CA0B:<unreadable>
              C985CA1B:<unreadable>
              C985CA2B:<unreadable>
              C985CA3B:<unreadable>
              C985CA4B:<unreadable>
              C985CA5B:<unreadable>
              C985CA6B:<unreadable>
              C985CA7B:<unreadable>
              C985CA8B:<unreadable>
              C985CA9B:<unreadable>
              C985CAAB:<unreadable>
              C985CABB:<unreadable>
              C985CACB:<unreadable>
              C985CADB:<unreadable>
              C985CAEB:<unreadable>
              C985CAFB:<unreadable>
              C985CB0B:<unreadable>
              C985CB1B:<unreadable>
              C985CB2B:<unreadable>
              C985CB3B:<unreadable>
              C985CB4B:<unreadable>
              C985CB5B:<unreadable>
              C985CB6B:<unreadable>
              C985CB7B:<unreadable>
              C985CB8B:<unreadable>
              C985CB9B:<unreadable>
              C985CBAB:<unreadable>
              C985CBBB:<unreadable>
              C985CBCB:<unreadable>
              C985CBDB:<unreadable>
              C985CBEB:<unreadable>
              C985CBFB:<unreadable>
              C985CC0B:<unreadable>
              C985CC1B:<unreadable>
              C985CC2B:<unreadable>
              C985CC3B:<unreadable>
              C985CC4B:<unreadable>
              C985CC5B:<unreadable>
              C985CC6B:<unreadable>
              C985CC7B:<unreadable>
              C985CC8B:<unreadable>
              C985CC9B:<unreadable>
              C985CCAB:<unreadable>
              C985CCBB:<unreadable>
              C985CCCB:<unreadable>
              C985CCDB:<unreadable>
              C985CCEB:<unreadable>
              C985CCFB:<unreadable>
              C985CD0B:<unreadable>
              C985CD1B:<unreadable>
              C985CD2B:<unreadable>
              C985CD3B:<unreadable>
              C985CD4B:<unreadable>
              C985CD5B:<unreadable>
              C985CD6B:<unreadable>
              C985CD7B:<unreadable>
              C985CD8B:<unreadable>
              C985CD9B:<unreadable>
              C985CDAB:<unreadable>
              C985CDBB:<unreadable>
              C985CDCB:<unreadable>
              C985CDDB:<unreadable>
              C985CDEB:<unreadable>
              C985CDFB:<unreadable>
              C985CE0B:<unreadable>
              C985CE1B:<unreadable>
              C985CE2B:<unreadable>
              C985CE3B:<unreadable>
              C985CE4B:<unreadable>
              C985CE5B:<unreadable>
              C985CE6B:<unreadable>
              C985CE7B:<unreadable>
              C985CE8B:<unreadable>
              C985CE9B:<unreadable>
              C985CEAB:<unreadable>
              C985CEBB:<unreadable>
              C985CECB:<unreadable>
              C985CEDB:<unreadable>
              C985CEEB:<unreadable>
              C985CEFB:<unreadable>
              C985CF0B:<unreadable>
              C985CF1B:<unreadable>
              C985CF2B:<unreadable>
              C985CF3B:<unreadable>
              C985CF4B:<unreadable>
              C985CF5B:<unreadable>
              C985CF6B:<unreadable>
              C985CF7B:<unreadable>
              C985CF8B:<unreadable>
              C985CF9B:<unreadable>
              C985CFAB:<unreadable>
              C985CFBB:<unreadable>
              C985CFCB:<unreadable>
              C985CFDB:<unreadable>
              C985CFEB:<unreadable>
              C985CFFB:<unreadable>
              C985D00B:<unreadable>
              C985D01B:<unreadable>
              C985D02B:<unreadable>
15:59:38.984  Code bytes:
15:59:38.984  00000000:<unreadable>
              00000010:<unreadable>
---finished error callback---
So, what am I doing wrong?

lolet
Posts: 95
Joined: Sat Sep 04, 2010 8:43 pm

Re: [1.13c] Opening the cube

Post by lolet » Mon Apr 30, 2012 10:41 am

Image
Why are you making a blind function definition, without even checking how many args are in RETURN of the function?

Code: Select all

.text:6FCCDAB5                 retn    14h
Divide it by 4 and you have 5 arguments
Plus
At the very beginning of the func you have this code

Code: Select all

.text:6FCCD9C1                 mov     esi, edx
.text:6FCCD9C3                 test    esi, esi
.text:6FCCD9C5                 push    edi
.text:6FCCD9C6                 mov     edi, ecx
As you see value of registers ECX and EDX aren't set before, so they arguments too - so this function is __fastcall, not __stdcall
and you have to pass 7 arguments.

User avatar
kidpaddle94
Forum Legend
Principality
Posts: 2057
Joined: Thu Aug 13, 2009 2:54 pm
Location: localhost
Canada

Re: [1.13c] Opening the cube

Post by kidpaddle94 » Mon Apr 30, 2012 11:30 am

lolet" wrote:Image
Why are you making a blind function definition, without even checking how many args are in RETURN of the function?

Code: Select all

.text:6FCCDAB5                 retn    14h
Divide it by 4 and you have 5 arguments
Plus
At the very beginning of the func you have this code

Code: Select all

.text:6FCCD9C1                 mov     esi, edx
.text:6FCCD9C3                 test    esi, esi
.text:6FCCD9C5                 push    edi
.text:6FCCD9C6                 mov     edi, ecx
As you see value of registers ECX and EDX aren't set before, so they arguments too - so this function is __fastcall, not __stdcall
and you have to pass 7 arguments.
wow, that's all things I didn't know, but that will be so useful. Thanks for these informations!

Now, I just have no idea of what the args of this could be though :-|

Return to “Code Editing”