Function at 0x51df70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x778bf6
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x84dea4]
xor eax, esp
mov dword [esp + 0x484], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x84dea4]
xor eax, esp
push eax
lea eax, [esp + 0x49c]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 4]
call fcn.0040ad50
test eax, eax
jne 0x51dfc5
mov dword [esi + 0x28], 1
jmp 0x51e298
mov eax, dword [esi + 0x188]
xor ebx, ebx
cmp eax, ebx
mov dword [esi + 0x28], ebx
je 0x51dfe2
push eax
mov ecx, esi
call fcn.0051cb40
mov dword [esi + 0x188], ebx
cmp dword [esi + 0xc], ebx
je 0x51e298
call fcn.004ba4c0
mov dword [esp + 0x18], eax
call fcn.004ba430
push ebx
push 0x104
lea edx, [esp + 0x39c]
mov ecx, str.WESTRING_DOODDEADSUFFIX
mov dword [esp + 0x58], eax
call fcn.004da2f0
push str.WESTRING_DOODADS
push 0xffff
push ebx
mov ecx, esi
call fcn.0051c720
mov dword [esi + 0x188], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x4a4], ebx
call fcn.005f5510
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x40], 0xffffffff
mov byte [esp + 0x44], bl
mov dword [esp + 0x48], 4
call fcn.00510f60
mov al, byte [eax + 0x1d0]
xor ecx, ecx
mov byte [esp + 0x44], al
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebx
fld dword [0x83c898]
mov eax, 0xdeadbeef
fst dword [esp + 0x78]
mov dword [esp + 0x64], eax
fst dword [esp + 0x7c]
mov dword [esp + 0x68], eax
fst dword [esp + 0x80]
mov dword [esp + 0x6c], eax
fstp dword [esp + 0x84]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x34]
xor edi, edi
cmp eax, ebx
mov byte [esp + 0x4a4], 1
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x58], 3
mov dword [esp + 0x54], eax
mov dword [esp + 0x14], edi
jle 0x51e270
jmp 0x51e0f4
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + edi*4]
cmp eax, 0xffffffff
push 0x104
lea edx, [esp + 0x190]
push edx
jge 0x51e123
mov ecx, 0xfffffffe
sub ecx, eax
push ecx
call fcn.004ba4c0
mov ecx, eax
call fcn.004efa30
jmp 0x51e130
push eax
call fcn.004ba430
mov ecx, eax
call fcn.004eed40
mov ecx, dword [esi + 0x188]
lea eax, [esp + 0x18c]
push eax
push 0xffff
push ecx
mov ecx, esi
call fcn.0051c720
mov edx, dword [esp + 0x38]
mov ebp, eax
mov eax, dword [edx + edi*4]
lea edx, [esp + 0x20]
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], eax
call fcn.005f5650
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
xor ecx, ecx
cmp dword [edx + edi*4], 0xffffffff
mov dword [esp + 0x4c], eax
setl cl
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x1c], ecx
jle 0x51e257
cmp dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + edi*4]
push 0x104
lea eax, [esp + 0x8c]
push eax
push edx
je 0x51e1ae
mov ecx, dword [esp + 0x24]
call fcn.004ef800
jmp 0x51e1b7
mov ecx, dword [esp + 0x5c]
call fcn.004ee750
mov eax, dword [esp + 0x28]
mov byte [esp + 0x290], bl
mov ecx, dword [eax + edi*4]
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0x68], ecx
lea eax, [esp + 0x294]
push eax
lea ecx, [esp + 0x90]
push ecx
push ebp
mov ecx, esi
mov dword [esp + 0x84], ebx
call fcn.0051cfd0
cmp dword [esp + 0x1c], ebx
je 0x51e24a
mov edx, dword [esp + 0x28]
mov eax, dword [edx + edi*4]
mov ecx, dword [esp + 0x18]
push eax
call fcn.004ef6e0
test eax, eax
je 0x51e24a
push Ordinal_2
lea ecx, [esp + 0x398]
push ecx
lea edx, [esp + 0x90]
push edx
call sub.Storm.dll_Ordinal_503
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x294]
push ecx
lea edx, [esp + 0x90]
push edx
push ebp
mov ecx, esi
mov dword [esp + 0x84], 1
call fcn.0051cfd0
add edi, 1
cmp edi, dword [esp + 0x4c]
jl 0x51e188
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [esp + 0x54]
mov dword [esp + 0x14], eax
jl 0x51e0f0
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x51e282
push ebx
push 0xfffffffffffffffe
push 0x829be4
push ecx
call sub.Storm.dll_Ordinal_403
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x51e298
push ebx
push 0xfffffffffffffffe
push 0x828734
push eax
call sub.Storm.dll_Ordinal_403
mov ecx, dword [esp + 0x49c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x484]
xor ecx, esp
call fcn.00735f58
add esp, 0x494
ret