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

Disassembly:
sub esp, 0xd8
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push 0xffffffffffffffff
mov edx, ebp
mov ecx, 0x45
mov dword [esp + 0x44], ebp
mov dword [esp + 0x18], 0
call dword [0x49e618]
test eax, eax
je 0x405da3
mov eax, dword [0x51bec8]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x10], ebx
jbe 0x405d7b
lea eax, [ebp + ebp*8]
shl eax, 5
xor edi, edi
lea esi, [eax + 0x49f7f0]
lea eax, [edi + 0x49ce50]
sub esp, 0xc
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x24], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x28], edx
mov edx, dword [0x49f7f0]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x34], edx
mov edx, dword [0x49f7f8]
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x49f7f4]
mov dword [esp + 0x3c], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 8]
mov dword [esp + 0x50], ecx
mov ecx, esi
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], eax
mov edx, dword [ecx]
mov dword [esp + 0x74], edx
mov edx, esp
fld dword [esp + 0x74]
fsub dword [esp + 0x50]
mov eax, dword [ecx + 4]
mov dword [esp + 0x78], eax
mov ecx, dword [ecx + 8]
fstp dword [esp + 0x8c]
fld dword [esp + 0x78]
fsub dword [esp + 0x54]
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x7c], ecx
mov dword [edx], eax
fstp dword [esp + 0x90]
fld dword [esp + 0x7c]
fsub dword [esp + 0x58]
mov ecx, dword [esp + 0x90]
mov dword [edx + 4], ecx
fstp dword [esp + 0x94]
mov eax, dword [esp + 0x94]
mov dword [edx + 8], eax
call fcn.0044eb20
fcomp dword [0x491434]
fnstsw ax
test ah, 1
je 0x405bdc
mov eax, dword [0x4b6080]
mov ebx, esi
mov ecx, dword [0x4b6084]
mov dword [esp + 0x98], eax
mov ebp, dword [ebx]
mov edx, dword [0x4b6088]
mov dword [esp + 0xd0], ebp
mov dword [esp + 0x9c], ecx
fld dword [esp + 0xd0]
fsub dword [esp + 0x98]
mov ebp, dword [ebx + 4]
mov dword [esp + 0xa0], edx
mov dword [esp + 0xd4], ebp
mov dword [esp + 0x50], eax
mov ebx, dword [ebx + 8]
mov dword [esp + 0x54], ecx
fstp dword [esp + 0x5c]
fld dword [esp + 0xd4]
fsub dword [esp + 0x9c]
mov dword [esp + 0xd8], ebx
sub esp, 0xc
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x68]
mov ecx, esp
fstp dword [esp + 0x6c]
fld dword [esp + 0xe4]
fsub dword [esp + 0xac]
mov eax, dword [esp + 0x6c]
mov dword [ecx], edx
mov dword [ecx + 4], eax
fstp dword [esp + 0x70]
fld dword [esp + 0x24]
fsub dword [esp + 0x5c]
mov edx, dword [esp + 0x70]
mov dword [ecx + 8], edx
fstp dword [esp + 0x80]
fld dword [esp + 0x28]
fsub dword [esp + 0x60]
fstp dword [esp + 0x84]
fld dword [esp + 0x2c]
fsub dword [esp + 0x64]
fstp dword [esp + 0x88]
call fcn.0044eb20
sub esp, 0xc
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
fstp dword [esp + 0xcc]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x88]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
call fcn.0044eb20
fcomp dword [esp + 0xc0]
fnstsw ax
test ah, 1
je 0x405bd4
mov edx, dword [edi + 0x51ba40]
mov eax, dword [edi + 0x51ba44]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0x3f800000
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
lea ecx, [esp + 0x28]
lea edx, [esp + 0x34]
push ecx
push edx
mov edx, ebp
xor ecx, ecx
mov dword [esp + 0x44], eax
call fcn.00406cd0
fst dword [esp + 0x10]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x405d5f
fld dword [esp + 0x10]
fcomp dword [esp + 0xec]
fnstsw ax
test ah, 0x41
jne 0x405d5f
fld dword [esp + 0x28]
fsub dword [esp + 0x34]
sub esp, 0xc
mov eax, esp
fstp dword [esp + 0x98]
fld dword [esp + 0x38]
fsub dword [esp + 0x44]
mov ecx, dword [esp + 0x98]
mov dword [eax], ecx
fstp dword [esp + 0x9c]
fld dword [esp + 0x3c]
fsub dword [esp + 0x48]
mov edx, dword [esp + 0x9c]
mov dword [eax + 4], edx
fstp dword [esp + 0xa0]
mov ecx, dword [esp + 0xa0]
mov dword [eax + 8], ecx
call fcn.0044eb20
mov edx, esi
sub esp, 0xc
fstp dword [esp + 0x30]
mov eax, dword [edx]
fld dword [esp + 0x24]
mov ecx, dword [edx + 4]
mov dword [esp + 0xb0], eax
fsub dword [esp + 0xb0]
mov edx, dword [edx + 8]
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], edx
mov eax, esp
fstp dword [esp + 0xc0]
fld dword [esp + 0x28]
fsub dword [esp + 0xb4]
mov ecx, dword [esp + 0xc0]
mov dword [eax], ecx
fstp dword [esp + 0xc4]
fld dword [esp + 0x2c]
fsub dword [esp + 0xb8]
mov edx, dword [esp + 0xc4]
mov dword [eax + 4], edx
fstp dword [esp + 0xc8]
mov ecx, dword [esp + 0xc8]
mov dword [eax + 8], ecx
call fcn.0044eb20
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
fadd dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xe0], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xe4], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0xb0], ebx
fstp dword [esp + 0x24]
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], edx
jmp 0x405d66
mov byte [ebx + 0x49d4d8], 0
mov eax, dword [0x51bec8]
inc ebx
add edi, 0xc
cmp ebx, eax
mov dword [esp + 0x10], ebx
jb 0x4059e1
fld dword [esp + 0x14]
fcomp qword [0x4914c0]
fnstsw ax
test ah, 0x40
jne 0x405da3
xor ecx, ecx
mov eax, 0x49ced8
cmp dword [eax], 0
je 0x405db6
add eax, 0x30
inc ecx
cmp eax, 0x49d4d8
jl 0x405d93
fld dword [0x49144c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd8
ret 4
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, 0x49ced8
test eax, eax
je 0x405da3
mov edx, dword [esp + 0xc4]
lea ecx, [eax + 0x10]
fld dword [esp + 0x14]
mov dword [ecx], edx
mov edx, dword [esp + 0xc8]
pop edi
mov dword [eax + 0x1c], ebp
mov dword [ecx + 4], edx
mov edx, dword [esp + 0xc8]
pop esi
pop ebp
mov dword [ecx + 8], edx
mov ecx, dword [esp + 0xa4]
inc ecx
lea edx, [eax + 4]
mov dword [eax + 0x20], ecx
mov ecx, dword [esp + 0xd0]
mov dword [edx], ecx
mov ecx, dword [esp + 0xd4]
mov dword [eax], 1
mov byte [eax + 0x2c], 0
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0xd8]
pop ebx
mov dword [edx + 8], ecx
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x24], edx
mov dword [eax + 0x28], ecx
add esp, 0xd8
ret 4