Function at 0x50de70
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d09cf
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x6327e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x636d9c]
mov ebx, dword [ebp + 8]
mov edi, dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [ebp - 0x814], ebx
cmp dword [eax + 0x428], 0
jne 0x50decb
call edi
mov ecx, dword [0x636d9c]
mov dword [ecx + 0x428], eax
call edi
mov ecx, dword [0x636d9c]
mov dword [ecx + 0x42c], eax
mov ecx, dword [0x636d9c]
mov eax, dword [ecx + 0x42c]
cmp dword [ecx + 0x428], eax
jbe 0x50def9
mov dword [ecx + 0x428], eax
mov ecx, dword [0x636d9c]
mov eax, dword [ecx + 0x42c]
mov dword [ecx + 0x428], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [0x635408]
add eax, 0xa
mov dword [ebp - 0x818], eax
call fcn.0045fc50
mov ecx, dword [0x635408]
call fcn.0045fc40
mov ecx, dword [0x635408]
mov edi, 0x32
cmp dword [ebp + 0x10], edi
cmovge edi, dword [ebp + 0x10]
call fcn.0045fc50
sub eax, 0x64
cmp edi, eax
jle 0x50df53
mov ecx, dword [0x635408]
call fcn.0045fc50
lea edi, [eax - 0x64]
cmp byte [esi + 0x2444], 0
je 0x50df72
call fcn.0056eac9
cdq
mov ecx, 0x96
idiv ecx
mov eax, 0xffffff6a
sub eax, edx
add edi, eax
push dword [ebp - 0x818]
mov ecx, esi
push edi
call fcn.0050a920
mov eax, dword [0x617af8]
mov ecx, esi
push 1
mov dword [ebp - 0x838], eax
mov dword [0x617af8], 0xff
call fcn.005095b0
push 0x170
call fcn.0055f3ea
add esp, 4
mov edi, eax
test ebx, ebx
jns 0x50e3f9
mov dword [ebp - 0x814], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x50dff4
mov ecx, dword [0x635408]
push 0
push str.WINDOW
call fcn.0045fc40
mov ecx, dword [0x635408]
push eax
call fcn.0045fc50
push eax
push 0
push 0
push 0xffffffffffffffff
mov ecx, edi
call fcn.0046cb20
jmp 0x50dff6
xor eax, eax
mov dword [esi + 0x2bc], eax
mov ecx, esi
mov byte [eax + 0x168], 0
mov eax, dword [esi + 0x2bc]
mov dword [ebp - 4], 0xffffffff
mov byte [eax + 0x139], 1
call fcn.00505ae0
mov ecx, dword [0x636d9c]
mov edx, dword [ecx + 0x10]
test edx, edx
je 0x50e3d0
mov edi, dword [ecx + 8]
cmp edx, edi
je 0x50e3ad
cmp dword [edx + 0x178], 0xffffffff
je 0x50e07f
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 2
push str.Secure_Trade
mov ecx, esi
call fcn.00505900
mov eax, dword [0x636d9c]
cmp dword [eax + 0x20c], 0xffffffff
je 0x50e3e6
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 0x13
push str.Attack
jmp 0x50e3df
mov eax, dword [edx + 0x160]
cmp eax, 0xd
jne 0x50e0d6
mov ecx, dword [0x636d9c]
cmp dword [ecx + 0x754], 0xa
jge 0x50e3e6
cmp dword [ecx + 0x758], 0xa
jge 0x50e3e6
lea ecx, [edi + 0x1d0]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50e0b3
sub ecx, edx
je 0x50e3e6
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 0x21
push str.Go_to_Tree
jmp 0x50e3df
cmp eax, 1
jne 0x50e178
mov eax, dword [0x636d9c]
mov ecx, dword [edx + 0x17c]
cmp ecx, dword [eax + 0x20c]
je 0x50e103
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 0x13
push str.Attack
jmp 0x50e11b
cmp dword [0x635ba0], 0
je 0x50e122
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 0x37
push str.Recall
mov ecx, esi
call fcn.00505900
cmp dword [0x635b9c], 0
je 0x50e157
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 0x29
push str.Control
mov ecx, esi
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 0x2a
push str.Release
mov ecx, esi
call fcn.00505900
cmp dword [0x635ba0], 0
je 0x50e3e6
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 0x38
push str.Begin_Taming
jmp 0x50e3df
cmp eax, 8
jne 0x50e1f3
cmp byte [edx + 0x18e], 0
jne 0x50e3e6
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 0x24
push str.Open
mov ecx, esi
call fcn.00505900
mov ecx, dword [0x636d9c]
cmp dword [ecx + 0x754], 0xa
jge 0x50e3e6
cmp dword [ecx + 0x758], 0xa
jge 0x50e3e6
mov ecx, dword [ecx + 8]
add ecx, 0x1d0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50e1d0
sub ecx, edx
je 0x50e3e6
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 0x35
push str.Use_Stash
jmp 0x50e3df
cmp eax, 3
jne 0x50e20c
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 1
push str.Learn
jmp 0x50e3df
cmp eax, 5
je 0x50e386
cmp eax, 0x10
je 0x50e386
cmp eax, 4
jne 0x50e2b6
push 2
push 0x84
push 0xffffffffffffffba
push dword [esi + 0x158]
mov ecx, esi
push 0x25
push str.Listen
call fcn.00505900
push 2
push 0x84
push 0xffffffffffffffba
push dword [esi + 0x158]
mov ecx, esi
push 0x23
push str.Heal__180g_
call fcn.00505900
push 2
push 0x84
push 0xffffffffffffffba
push dword [esi + 0x158]
mov ecx, esi
push 0x21
push str.Teleport_Forward__400g_
call fcn.00505900
push 2
push 0x84
push 0xffffffffffffffba
push dword [esi + 0x158]
mov ecx, esi
push 0x22
push str.Teleport_Back__400g_
call fcn.00505900
push 2
push 0x84
push 0xffffffffffffffba
push dword [esi + 0x158]
push 0x35
push str.Use_Account_Storage
jmp 0x50e3df
cmp eax, 0xc
je 0x50e3e6
cmp eax, 0x16
je 0x50e35f
cmp eax, 0x15
je 0x50e35f
cmp eax, 7
je 0x50e3e6
cmp eax, 0xe
je 0x50e3e6
cmp eax, 0x11
je 0x50e3e6
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 1
push str.Trade
mov ecx, esi
call fcn.00505900
mov ecx, esi
call fcn.00505a10
push 2
push 0x67
push 0xffffffffffffffce
push 0
push 0x2b
push str.Sell_All_Simple_Loot
mov ecx, esi
call fcn.00505900
push 2
push 0x67
push 0xffffffffffffffce
push 0
push 0x2c
push str.Salt_All_Meat
mov ecx, esi
call fcn.00505900
push 2
push 0x67
push 0xffffffffffffffce
push 0
push 0x2d
push str.Sell_All_Bombs
mov ecx, esi
call fcn.00505900
push 2
push 0x67
push 0xffffffffffffffce
push 0
push 0x2e
push str.Sell_All_EarthKeys
jmp 0x50e3df
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 0x25
push str.Help
mov ecx, esi
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 1
push str.Browse
jmp 0x50e3df
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 0x25
push str.Listen
mov ecx, esi
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 0x26
push str.Ask_For_Quest
jmp 0x50e3df
cmp dword [0x635ba0], 0
je 0x50e3e6
cmp dword [0x635ba4], 0
je 0x50e3e6
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 0x36
push str.Send_Out
jmp 0x50e3df
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 1
push str.Check_Ground
mov ecx, esi
call fcn.00505900
mov eax, dword [0x636d9c]
mov eax, dword [eax + 0x10]
mov dword [esi + 0x23f4], eax
jmp case.0x50e540.5
mov dword [ebp - 0x81c], edi
mov dword [ebp - 4], 1
test edi, edi
je 0x50e438
mov ecx, dword [0x635408]
push 0
push str.WINDOW
call fcn.0045fc40
mov ecx, dword [0x635408]
push eax
call fcn.0045fc50
push eax
push 0
push 0
push 0xffffffffffffffff
mov ecx, edi
call fcn.0046cb20
jmp 0x50e43a
xor eax, eax
mov dword [esi + 0x2bc], eax
mov ecx, esi
mov byte [eax + 0x168], 0
mov eax, dword [esi + 0x2bc]
mov dword [ebp - 4], 0xffffffff
mov byte [eax + 0x139], 1
call fcn.00505ae0
cmp dword [ebp + 0xc], 0
je 0x50ebb7
mov ecx, dword [esi + 0x2c0]
lea eax, [ebx + 0x22]
push eax
add ecx, 0x140
call fcn.0044e420
mov eax, dword [esi + 0x23bc]
mov dword [esi + 0x23ac], ebx
cmp eax, 0xc8
jne 0x50e547
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 0x14
push str.Include
mov ecx, esi
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 0x16
push str.Include_5
mov ecx, esi
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 0x17
push str.Include_20
mov ecx, esi
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 0x18
push str.Include_
mov ecx, esi
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 0x19
push str.Include_All
mov ecx, esi
call fcn.00505900
mov ecx, esi
call fcn.00505a10
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 0x10
push 0x5e797c
mov ecx, esi
call fcn.00505900
imul edi, ebx, 0x5c
add edi, 0x348
add edi, esi
mov eax, dword [edi]
cmp eax, 0x15
ja case.0x50e540.5
movzx eax, byte [eax + 0x50ed4c]
jmp dword [eax*4 + 0x50ed40]
cmp eax, 0xc9
jne 0x50e5c8
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 0x1a
push str.Exclude
mov ecx, esi
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 0x1c
push str.Exclude_5
mov ecx, esi
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 0x1d
push str.Exclude_20
mov ecx, esi
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 0x1e
push str.Exclude_
mov ecx, esi
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 0x1f
push str.Exclude_All
mov ecx, esi
call fcn.00505900
mov ecx, esi
call fcn.00505830
jmp 0x50ed22
cmp eax, 0xca
jne 0x50e5f1
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 0x20
push str.Combine
mov ecx, esi
call fcn.00505900
mov ecx, esi
call fcn.00505830
jmp 0x50ed22
cmp eax, 0xcb
jne 0x50e523
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 0x12
push str.Stop_Using
mov ecx, esi
call fcn.00505900
mov ecx, esi
call fcn.00505830
jmp 0x50ed22
mov ecx, dword [esi + 0x2b8]
push 0x3e
add ecx, 0x140
call fcn.0044e420
test eax, eax
je 0x50e6a8
mov ecx, esi
call fcn.00505a10
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 3
push str.Trade
mov ecx, esi
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 4
push str.Trade_5
mov ecx, esi
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 5
push str.Trade_20
mov ecx, esi
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 6
push str.Trade_
mov ecx, esi
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 7
push str.Trade_All
jmp 0x50e7b7
mov ecx, dword [esi + 0x2b8]
push 0x2e
add ecx, 0x140
call fcn.0044e420
test eax, eax
je 0x50e732
mov ecx, esi
call fcn.00505a10
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 3
push str.Sell
mov ecx, esi
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 4
push str.Sell_5
mov ecx, esi
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 5
push str.Sell_20
mov ecx, esi
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 6
push str.Sell_
mov ecx, esi
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 7
push str.Sell_All
jmp 0x50e7b7
mov ecx, dword [esi + 0x2b8]
push 0x3c
add ecx, 0x140
call fcn.0044e420
test eax, eax
je 0x50e7be
mov ecx, esi
call fcn.00505a10
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 3
push str.Stash
mov ecx, esi
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 4
push str.Stash_5
mov ecx, esi
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 5
push str.Stash_20
mov ecx, esi
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 6
push str.Stash_
mov ecx, esi
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 7
push str.Stash_All
mov ecx, esi
call fcn.00505900
cmp dword [edi], 0xa
jne 0x50e86f
mov eax, dword [0x636d9c]
mov ecx, dword [eax + 8]
cmp dword [ecx + 0x338], 0
jne 0x50e7e1
cmp dword [ecx + 0x408], 0
je 0x50e7ed
mov ecx, esi
call fcn.00505a10
mov eax, dword [0x636d9c]
mov ecx, dword [eax + 8]
cmp dword [ecx + 0x338], 0
je 0x50e831
lea eax, [ecx + 0x340]
push eax
lea eax, [ebp - 0x410]
push str._Feed__s
push eax
call fcn.0043d380
add esp, 0xc
lea eax, [ebp - 0x410]
mov ecx, esi
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 0x27
push eax
call fcn.00505900
mov eax, dword [0x636d9c]
mov eax, dword [eax + 8]
cmp dword [eax + 0x408], 0
je 0x50e86f
add eax, 0x410
push eax
lea eax, [ebp - 0x410]
push str._Feed__s
push eax
call fcn.0043d380
add esp, 0xc
lea eax, [ebp - 0x410]
mov ecx, esi
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 0x28
push eax
call fcn.00505900
cmp dword [edi], 0xd
jne 0x50e8a7
mov ecx, esi
call fcn.00505a10
lea eax, [ebp - 0x410]
push 0x5e7a5c
push eax
call fcn.0043d380
add esp, 8
lea eax, [ebp - 0x410]
mov ecx, esi
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 0x34
push eax
call fcn.00505900
cmp dword [edi], 3
jne 0x50e8df
mov ecx, esi
call fcn.00505a10
lea eax, [ebp - 0x410]
push str.Activate
push eax
call fcn.0043d380
add esp, 8
lea eax, [ebp - 0x410]
mov ecx, esi
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 0xf
push eax
call fcn.00505900
cmp dword [edi], 0x15
jne 0x50e917
mov ecx, esi
call fcn.00505a10
lea eax, [ebp - 0x410]
push str.Let_Out
push eax
call fcn.0043d380
add esp, 8
lea eax, [ebp - 0x410]
mov ecx, esi
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 0xf
push eax
call fcn.00505900
cmp dword [edi], 0x11
jne 0x50e94f
mov ecx, esi
call fcn.00505a10
lea eax, [ebp - 0x410]
push str.Activate
push eax
call fcn.0043d380
add esp, 8
lea eax, [ebp - 0x410]
mov ecx, esi
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 0xf
push eax
call fcn.00505900
cmp dword [edi], 0x14
jne 0x50e987
mov ecx, esi
call fcn.00505a10
lea eax, [ebp - 0x410]
push str.Activate
push eax
call fcn.0043d380
add esp, 8
lea eax, [ebp - 0x410]
mov ecx, esi
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 0xf
push eax
call fcn.00505900
cmp dword [edi], 0x12
jne 0x50e9bf
mov ecx, esi
call fcn.00505a10
lea eax, [ebp - 0x410]
push str.Activate
push eax
call fcn.0043d380
add esp, 8
lea eax, [ebp - 0x410]
mov ecx, esi
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 0xf
push eax
call fcn.00505900
cmp dword [edi], 0x13
jne case.0x50e540.5
mov ecx, esi
call fcn.00505a10
lea eax, [ebp - 0x810]
push str.Activate
push eax
call fcn.0043d380
add esp, 8
lea eax, [ebp - 0x810]
mov ecx, esi
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 0xf
push eax
call fcn.00505900
jmp case.0x50e540.5
mov ecx, dword [esi + 0x2b8]
push 0x3e
add ecx, 0x140
call fcn.0044e420
test eax, eax
je 0x50ea91
mov ecx, esi
call fcn.00505a10
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 3
push str.Trade
mov ecx, esi
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 4
push str.Trade_5
mov ecx, esi
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 5
push str.Trade_20
mov ecx, esi
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 6
push str.Trade_
mov ecx, esi
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 7
push str.Trade_All
mov ecx, esi
call fcn.00505900
jmp case.0x50e540.5
mov ecx, dword [esi + 0x2b8]
push 0x2e
add ecx, 0x140
call fcn.0044e420
test eax, eax
je 0x50eb22
mov ecx, esi
call fcn.00505a10
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 3
push str.Sell
mov ecx, esi
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 4
push str.Sell_5
mov ecx, esi
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 5
push str.Sell_20
mov ecx, esi
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 6
push str.Sell_
mov ecx, esi
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 7
push str.Sell_All
mov ecx, esi
call fcn.00505900
jmp case.0x50e540.5
mov ecx, dword [esi + 0x2b8]
push 0x3c
add ecx, 0x140
call fcn.0044e420
test eax, eax
je case.0x50e540.5
mov ecx, esi
call fcn.00505a10
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 3
push str.Stash
mov ecx, esi
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 4
push str.Stash_5
mov ecx, esi
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 5
push str.Stash_20
mov ecx, esi
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 6
push str.Stash_
mov ecx, esi
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push 7
push str.Stash_All
mov ecx, esi
call fcn.00505900
jmp case.0x50e540.5
cmp dword [ebp + 0x18], 0x42
lea edx, [ebx + 0x42]
je 0x50ebc3
lea edx, [ebx + 0x32]
mov edi, 8
mov eax, 0x2f
cmovne eax, edi
mov ebx, str.Get_
mov dword [ebp - 0x818], eax
mov edi, str.Retract
mov eax, 0x5e7aac
cmove eax, edi
mov edi, 9
mov dword [ebp - 0x820], eax
mov eax, 0x30
cmovne eax, edi
mov edi, str.Retract_5
mov dword [ebp - 0x824], eax
mov eax, str.Get_5
cmove eax, edi
mov edi, 0xa
mov dword [ebp - 0x828], eax
mov eax, 0x31
cmovne eax, edi
mov edi, str.Retract_20
mov dword [ebp - 0x82c], eax
mov eax, str.Get_20
cmove eax, edi
mov edi, 0xb
mov dword [ebp - 0x830], eax
mov eax, 0x32
cmovne eax, edi
mov edi, 0xc
mov dword [ebp - 0x834], eax
mov eax, str.Retract_
cmove ebx, eax
mov eax, 0x33
cmovne eax, edi
mov edi, str.Get_All
mov dword [ebp - 0x81c], eax
mov eax, str.Retract_All
mov ecx, dword [esi + 0x2d0]
cmove edi, eax
push edx
add ecx, 0x140
call fcn.0044e420
push 1
push 0x67
push 0xffffffffffffffce
push 0
push dword [ebp - 0x818]
mov ecx, esi
push dword [ebp - 0x820]
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push dword [ebp - 0x824]
mov ecx, esi
push dword [ebp - 0x828]
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push dword [ebp - 0x82c]
mov ecx, esi
push dword [ebp - 0x830]
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push dword [ebp - 0x834]
mov ecx, esi
push ebx
call fcn.00505900
push 1
push 0x67
push 0xffffffffffffffce
push 0
push dword [ebp - 0x81c]
mov ecx, esi
push edi
call fcn.00505900
mov eax, dword [ebp - 0x814]
mov dword [esi + 0x23ac], eax
mov ecx, esi
call fcn.00505830
mov eax, dword [ebp - 0x838]
mov dword [0x617af8], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055f428
mov esp, ebp
pop ebp
ret 0x14