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

Disassembly:
sub esp, 0x9c
mov eax, dword [0x51bec8]
push ebx
push ebp
xor ebx, ebx
push esi
push edi
test eax, eax
mov ebp, ecx
mov dword [esp + 0x14], 0
jbe 0x40617b
mov dword [esp + 0x28], 0x49ce50
mov al, byte [ebx + 0x49d4d8]
test al, al
je 0x40613a
mov eax, dword [esp + 0x28]
mov esi, 1
mov edi, 0x49f910
mov ecx, dword [eax]
mov dword [esp + 0x38], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x3c], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x40], eax
cmp esi, ebp
je 0x406127
cmp byte [edi - 8], 1
jne 0x406127
push 0xffffffffffffffff
mov edx, esi
mov ecx, 0x45
call dword [0x49e618]
test eax, eax
je 0x406127
mov ecx, edi
mov edx, dword [ecx]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x38]
mov eax, dword [ecx + 4]
mov dword [esp + 0x18], edx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x2c]
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ecx
push edx
push eax
mov edx, ebp
mov ecx, esi
call fcn.00406cd0
fst dword [esp + 0x10]
fcomp dword [esp + 0xb0]
fnstsw ax
test ah, 0x41
jne 0x406127
mov ecx, edi
sub esp, 0xc
mov edx, dword [ecx]
mov dword [esp + 0x90], edx
mov edx, esp
fld dword [esp + 0x90]
fsub dword [esp + 0x24]
mov eax, dword [ecx + 4]
mov dword [esp + 0x94], eax
mov ecx, dword [ecx + 8]
fstp dword [esp + 0x78]
fld dword [esp + 0x94]
fsub dword [esp + 0x28]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x98], ecx
mov dword [edx], eax
fstp dword [esp + 0x7c]
fld dword [esp + 0x98]
fsub dword [esp + 0x2c]
mov ecx, dword [esp + 0x7c]
mov dword [edx + 4], ecx
fstp dword [esp + 0x80]
mov eax, dword [esp + 0x80]
mov dword [edx + 8], eax
call fcn.0044eb20
lea ecx, [ebp + ebp*8]
sub esp, 0xc
fstp dword [esp + 0x30]
fld dword [esp + 0x44]
shl ecx, 5
add ecx, 0x49f7f0
mov edx, dword [ecx]
mov dword [esp + 0x50], edx
mov edx, esp
fsub dword [esp + 0x50]
mov eax, dword [ecx + 4]
mov dword [esp + 0x54], eax
mov ecx, dword [ecx + 8]
fstp dword [esp + 0x5c]
fld dword [esp + 0x48]
fsub dword [esp + 0x54]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x58], ecx
mov dword [edx], eax
fstp dword [esp + 0x60]
fld dword [esp + 0x4c]
fsub dword [esp + 0x58]
mov ecx, dword [esp + 0x60]
mov dword [edx + 4], ecx
fstp dword [esp + 0x64]
mov eax, dword [esp + 0x64]
mov dword [edx + 8], eax
call fcn.0044eb20
mov ecx, dword [0x49f7f0]
mov edx, dword [0x49f7f4]
fadd dword [esp + 0x24]
mov eax, dword [0x49f7f8]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x18]
push ecx
fstp dword [esp + 0x28]
push edx
mov edx, esi
xor ecx, ecx
mov dword [esp + 0x3c], eax
call fcn.00406cd0
fmul dword [esp + 0x10]
fst dword [esp + 0x10]
fcomp dword [esp + 0xb0]
fnstsw ax
test ah, 0x41
jne 0x406127
fld dword [esp + 0x10]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x406127
mov eax, dword [0x49f7f0]
mov ecx, dword [0x49f7f4]
mov dword [esp + 0x60], eax
mov edx, dword [0x49f7f8]
fld dword [esp + 0x60]
fsub dword [esp + 0x18]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edx
sub esp, 0xc
mov eax, esp
fstp dword [esp + 0x84]
fld dword [esp + 0x70]
fsub dword [esp + 0x28]
mov ecx, dword [esp + 0x84]
mov dword [eax], ecx
fstp dword [esp + 0x88]
fld dword [esp + 0x74]
fsub dword [esp + 0x2c]
mov edx, dword [esp + 0x88]
mov dword [eax + 4], edx
fstp dword [esp + 0x8c]
mov ecx, dword [esp + 0x8c]
mov dword [eax + 8], ecx
call fcn.0044eb20
fadd dword [esp + 0x24]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x90], eax
fmul dword [0x491494]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x5c], ebx
fstp dword [esp + 0x9c]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], edx
add edi, 0x120
inc esi
cmp edi, 0x4a09f0
jl 0x405e9b
mov ecx, dword [esp + 0x28]
mov eax, dword [0x51bec8]
inc ebx
add ecx, 0xc
cmp ebx, eax
mov dword [esp + 0x28], ecx
jb 0x405e6b
fld dword [esp + 0x14]
fcomp dword [0x49144c]
fnstsw ax
test ah, 0x41
jne 0x40617b
xor ecx, ecx
mov eax, 0x49ced8
cmp dword [eax], 0
je 0x40618e
add eax, 0x30
inc ecx
cmp eax, 0x49d4d8
jl 0x40616b
fld dword [0x49144c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret 4
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, 0x49ced8
test eax, eax
je 0x40617b
mov edx, dword [esp + 0x90]
lea ecx, [eax + 0x10]
fld dword [esp + 0x14]
mov dword [ecx], edx
mov edx, dword [esp + 0x94]
pop edi
mov dword [eax + 0x1c], ebp
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x94]
pop esi
pop ebp
mov dword [ecx + 8], edx
mov ecx, dword [esp + 0x50]
inc ecx
lea edx, [eax + 4]
mov dword [eax + 0x20], ecx
mov ecx, dword [esp + 0x94]
mov dword [edx], ecx
mov ecx, dword [esp + 0x98]
mov dword [eax], 1
mov byte [eax + 0x2c], 1
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x9c]
pop ebx
mov dword [edx + 8], ecx
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x8c]
mov dword [eax + 0x24], edx
mov dword [eax + 0x28], ecx
add esp, 0x9c
ret 4