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

Disassembly:
push 0xffffffffffffffff
push 0x492b96
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4b8
push ebx
push ebp
push esi
mov ebp, ecx
push edi
xor edx, edx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x9c]
mov dword [esp + 0x98], 0x497a64
mov dword [esp + 0x19c], edx
mov dword [esp + 0x1a0], edx
mov dword [esp + 0x1a4], edx
mov dword [esp + 0x1a8], edx
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x1ac]
rep stosd dword es:[edi], eax
mov dword [esp + 0x2ac], 0xffffffff
mov dword [esp + 0x4d0], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
mov ebx, dword [esp + 0x4dc]
lea ecx, [ebp + 0x924]
push ebx
mov byte [esp + 0x4d4], 1
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edx
call fcn.0040d2d0
sub esp, 0x218
lea esi, [eax + 4]
mov edx, esp
mov ecx, 0x40
mov dword [esp + 0x248], esp
lea edi, [edx + 4]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x104]
lea esi, [eax + 0x114]
mov dword [edx + 0x104], ecx
mov ecx, dword [eax + 0x108]
mov dword [edx + 0x108], ecx
mov ecx, dword [eax + 0x10c]
mov dword [edx + 0x10c], ecx
mov ecx, dword [eax + 0x110]
mov dword [edx + 0x110], ecx
lea edi, [edx + 0x114]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0x214]
lea ecx, [esp + 0x4c8]
mov dword [edx + 0x214], eax
mov dword [edx], 0x497a64
mov edx, dword [esp + 0x2b0]
push ecx
lea ecx, [esp + 0x2b4]
call dword [edx]
push 0
lea eax, [esp + 0x9c]
push 1
push eax
mov ecx, ebp
call fcn.00407d90
mov esi, eax
cmp esi, 0xffffffff
jne 0x4097ae
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x409b2e
push eax
call fcn.0046a70c
add esp, 4
jmp 0x409b2e
mov edi, dword [esp + 0x4d8]
push esi
lea ecx, [esp + 0x20]
mov dword [edi], ebx
mov ebp, dword [ebp + 0x31b8]
call fcn.0040da80
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
push esi
add edx, ecx
push ebp
push edx
call fcn.0046a230
mov eax, dword [esp + 0x30]
add esp, 0xc
add eax, esi
mov dword [esp + 0x24], eax
je 0x409805
cmp eax, 4
jl 0x409805
mov eax, dword [esp + 0x1c]
push 4
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.0046a230
mov eax, dword [esp + 0x30]
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov esi, 4
test ecx, ecx
mov dword [esp + 0x10], 0
jle 0x4098c0
mov edx, dword [esp + 0x4d8]
add edi, esi
lea ebx, [edx + 0x14]
test eax, eax
je 0x40984c
lea ecx, [esi + 4]
cmp eax, ecx
jl 0x40984c
mov edx, dword [esp + 0x1c]
push 4
lea ecx, [esp + 0x18]
lea eax, [esi + edx]
push eax
push ecx
call fcn.0046a230
add esp, 0xc
mov eax, dword [edi + 8]
lea edx, [esp + 0x14]
push edx
push eax
mov ecx, edi
call fcn.0042b6a0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x40]
push ecx
push edx
mov ecx, ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0
call fcn.0040d6f0
mov ecx, dword [eax]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x30]
mov edx, dword [eax + 4]
lea eax, [esp + 0x34]
push eax
push ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x3c], edx
call fcn.0040e6e0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
add esi, 4
inc eax
mov dword [esp + 0x10], eax
cmp eax, ecx
mov eax, dword [esp + 0x24]
jl 0x40982a
mov edi, dword [esp + 0x4d8]
test eax, eax
je 0x4098e6
lea edx, [esi + 4]
cmp eax, edx
jl 0x4098e6
mov eax, dword [esp + 0x1c]
push 4
lea edx, [esp + 0x1c]
lea ecx, [esi + eax]
push ecx
push edx
call fcn.0046a230
mov eax, dword [esp + 0x30]
add esp, 0xc
mov ecx, dword [esp + 0x18]
add esi, 4
test ecx, ecx
mov dword [esp + 0x10], 0
jle 0x409950
add edi, 0x74
lea ebx, [esi + 4]
test eax, eax
je 0x40991e
cmp eax, ebx
jl 0x40991e
mov eax, dword [esp + 0x1c]
push 4
lea edx, [esp + 0x18]
lea ecx, [esi + eax]
push ecx
push edx
call fcn.0046a230
add esp, 0xc
mov eax, dword [edi + 8]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, edi
call fcn.0042b6a0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
add esi, 4
add ebx, 4
inc eax
mov dword [esp + 0x10], eax
cmp eax, ecx
mov eax, dword [esp + 0x24]
jl 0x4098ff
mov edi, dword [esp + 0x4d8]
test eax, eax
je 0x409976
lea edx, [esi + 4]
cmp eax, edx
jl 0x409976
mov eax, dword [esp + 0x1c]
push 4
lea edx, [esp + 0x1c]
lea ecx, [esi + eax]
push ecx
push edx
call fcn.0046a230
mov eax, dword [esp + 0x30]
add esp, 0xc
mov ecx, dword [esp + 0x18]
add esi, 4
test ecx, ecx
mov dword [esp + 0x10], 0
jle 0x409b1d
lea ebx, [edi + 0x24]
lea ebp, [edi + 0x34]
add edi, 0x44
mov dword [esp + 0x30], edi
lea edi, [esi + 4]
jmp 0x4099a3
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4099c6
cmp eax, edi
jl 0x4099c6
mov eax, dword [esp + 0x1c]
push 4
lea edx, [esp + 0x18]
lea ecx, [esi + eax]
push ecx
push edx
call fcn.0046a230
mov eax, dword [esp + 0x30]
add esp, 0xc
mov ecx, dword [esp + 0x14]
add esi, 4
add edi, 4
mov dword [esp + 0x38], ecx
test eax, eax
je 0x4099f3
cmp eax, edi
jl 0x4099f3
mov edx, dword [esp + 0x1c]
push 4
lea ecx, [esp + 0x18]
lea eax, [esi + edx]
push eax
push ecx
call fcn.0046a230
add esp, 0xc
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x38]
mov dword [esp + 0x3c], edx
push ecx
lea ecx, [esp + 0x58]
add esi, 4
add edi, 4
mov dword [esp + 0x54], eax
call fcn.00415f00
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x64]
mov dword [esp + 0x60], edx
call fcn.00415f00
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x88]
push ecx
push edx
mov ecx, ebx
call fcn.0040d950
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x28]
mov edx, dword [eax + 4]
lea eax, [esp + 0x2c]
push eax
push ecx
lea ecx, [esp + 0x70]
mov dword [esp + 0x34], edx
call fcn.0040e6e0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x409a84
cmp eax, edi
jl 0x409a84
mov edx, dword [esp + 0x1c]
push 4
lea ecx, [esp + 0x18]
lea eax, [esi + edx]
push eax
push ecx
call fcn.0046a230
add esp, 0xc
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x78]
call fcn.0040d390
push eax
lea ecx, [esp + 0x4c]
call fcn.00415f00
lea ecx, [esp + 0x48]
lea edx, [esp + 0x80]
push ecx
push edx
mov ecx, ebp
call fcn.0040ce80
add esi, 4
push 4
lea eax, [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x28]
add edi, 4
call fcn.00456c40
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x80]
call fcn.0040d390
push eax
lea ecx, [esp + 0x44]
call fcn.00415f00
lea eax, [esp + 0x40]
lea ecx, [esp + 0x90]
push eax
push ecx
mov ecx, dword [esp + 0x38]
call fcn.0040ce80
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
add esi, 4
add edi, 4
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x40999f
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4d0], 0
call fcn.0040cf20
mov ecx, dword [esp + 0x4c8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x4c4
ret 8