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

Disassembly:
jmp 0x408f00
sub esp, 0x17c
push ebx
push ebp
mov ebp, dword [esp + 0x188]
push esi
push edi
lea eax, [esp + 0x12c]
mov edx, dword [ebp]
push 0
lea ecx, [esp + 0x11c]
push eax
or edx, 0x2000000
push ecx
push edx
call fcn.00406ed0
add esp, 0x10
mov dword [esp + 0x14], 0
lea esi, [esp + 0x12c]
mov edi, 8
lea eax, [esp + 0x118]
push esi
push eax
call fcn.00431fd0
fcom dword [esp + 0x1c]
add esp, 8
fnstsw ax
and eax, 0x4100
jne 0x408f6d
fstp dword [esp + 0x14]
jmp 0x408f6f
fstp st(0)
add esi, 0xc
dec edi
jne 0x408f49
fld dword [esp + 0x14]
fsqrt
mov ebx, dword [esp + 0x194]
lea ecx, [esp + 0x12c]
push 0
lea edx, [esp + 0x110]
mov eax, dword [ebx]
push ecx
or eax, 0x2000000
push edx
push eax
fstp dword [esp + 0x24]
call fcn.00406ed0
add esp, 0x10
mov dword [esp + 0x18], 0
lea esi, [esp + 0x12c]
mov edi, 8
lea ecx, [esp + 0x10c]
push esi
push ecx
call fcn.00431fd0
fcom dword [esp + 0x20]
add esp, 8
fnstsw ax
and eax, 0x4100
jne 0x408fe0
fstp dword [esp + 0x18]
jmp 0x408fe2
fstp st(0)
add esi, 0xc
dec edi
jne 0x408fbc
fld dword [esp + 0x18]
fsqrt
lea edx, [esp + 0x10c]
lea eax, [esp + 0x118]
push edx
push eax
fadd dword [esp + 0x1c]
fstp dword [esp + 0x18]
call fcn.00431fd0
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
add esp, 8
fcompp
fnstsw ax
test ah, 5
jnp 0x409b72
lea ecx, [esp + 0xdc]
push ecx
call fcn.00430c20
add esp, 4
mov esi, ebp
mov eax, dword [esi + 0x88]
test eax, eax
je 0x40905b
lea edx, [esi + 8]
lea eax, [esp + 0xdc]
push edx
lea ecx, [esp + 0xe0]
push eax
push ecx
call fcn.00431180
add esp, 0xc
mov esi, dword [esi + 0x124]
test esi, esi
jne 0x409035
lea edx, [esp + 0xac]
push edx
call fcn.00430c20
add esp, 4
mov esi, ebx
mov eax, dword [esi + 0x88]
test eax, eax
je 0x40909d
lea eax, [esi + 8]
lea ecx, [esp + 0xac]
push eax
lea edx, [esp + 0xb0]
push ecx
push edx
call fcn.00431180
add esp, 0xc
mov esi, dword [esi + 0x124]
test esi, esi
jne 0x409077
mov edx, dword [ebx + 0x9c]
mov eax, dword [ebp + 0x9c]
mov dword [esp + 0x34], 0
mov esi, dword [edx + 0x1c]
mov edx, dword [0x7eac64]
mov ebx, dword [eax + 0x34]
mov ecx, dword [eax + 0x40]
mov edi, dword [eax + 0x1c]
mov ebp, edx
test ebx, ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x128], edx
mov dword [esp + 0x124], ebp
jle 0x409b72
mov eax, dword [ecx]
cmp eax, 1
jne 0x409b43
mov eax, dword [ecx + 0xc]
imul eax, edx
fld dword [esp + 0xf4]
fmul dword [edi + eax*4 + 8]
fld dword [esp + 0xdc]
fmul dword [edi + eax*4]
faddp st(1)
fld dword [esp + 0xe8]
fmul dword [edi + eax*4 + 4]
faddp st(1)
fadd dword [esp + 0x100]
fstp dword [esp + 0x38]
fld dword [esp + 0xf8]
fmul dword [edi + eax*4 + 8]
fld dword [esp + 0xe0]
fmul dword [edi + eax*4]
faddp st(1)
fld dword [esp + 0xec]
fmul dword [edi + eax*4 + 4]
faddp st(1)
fadd dword [esp + 0x104]
fstp dword [esp + 0x3c]
fld dword [esp + 0xfc]
fmul dword [edi + eax*4 + 8]
fld dword [esp + 0xe4]
fmul dword [edi + eax*4]
faddp st(1)
fld dword [esp + 0xf0]
fmul dword [edi + eax*4 + 4]
faddp st(1)
fadd dword [esp + 0x108]
fstp dword [esp + 0x40]
mov eax, dword [ecx + 0x10]
imul eax, edx
fld dword [esp + 0xf4]
fmul dword [edi + eax*4 + 8]
fld dword [esp + 0xdc]
fmul dword [edi + eax*4]
faddp st(1)
fld dword [esp + 0xe8]
fmul dword [edi + eax*4 + 4]
faddp st(1)
fadd dword [esp + 0x100]
fstp dword [esp + 0x44]
fld dword [esp + 0xf8]
fmul dword [edi + eax*4 + 8]
fld dword [esp + 0xe0]
fmul dword [edi + eax*4]
faddp st(1)
fld dword [esp + 0xec]
fmul dword [edi + eax*4 + 4]
faddp st(1)
fadd dword [esp + 0x104]
fstp dword [esp + 0x48]
fld dword [esp + 0xfc]
fmul dword [edi + eax*4 + 8]
fld dword [esp + 0xe4]
fmul dword [edi + eax*4]
faddp st(1)
fld dword [esp + 0xf0]
fmul dword [edi + eax*4 + 4]
faddp st(1)
fadd dword [esp + 0x108]
fstp dword [esp + 0x4c]
mov eax, dword [ecx + 0x14]
imul eax, edx
fld dword [esp + 0xf4]
fmul dword [edi + eax*4 + 8]
fld dword [esp + 0xdc]
fmul dword [edi + eax*4]
faddp st(1)
fld dword [esp + 0xe8]
fmul dword [edi + eax*4 + 4]
faddp st(1)
fadd dword [esp + 0x100]
fstp dword [esp + 0x50]
fld dword [esp + 0xf8]
fmul dword [edi + eax*4 + 8]
fld dword [esp + 0xe0]
fmul dword [edi + eax*4]
faddp st(1)
fld dword [esp + 0xec]
fmul dword [edi + eax*4 + 4]
mov dword [esp + 0x14], 0
lea ebx, [esp + 0x38]
mov dword [esp + 0x1c], 3
faddp st(1)
fadd dword [esp + 0x104]
fstp dword [esp + 0x54]
fld dword [esp + 0xfc]
fmul dword [edi + eax*4 + 8]
fld dword [esp + 0xe4]
fmul dword [edi + eax*4]
faddp st(1)
fld dword [esp + 0xf0]
fmul dword [edi + eax*4 + 4]
faddp st(1)
fadd dword [esp + 0x108]
fstp dword [esp + 0x58]
fld dword [esp + 0x50]
fadd dword [esp + 0x44]
fadd dword [esp + 0x38]
fmul dword [0x5a8428]
fstp dword [esp + 0x118]
fld dword [esp + 0x54]
fadd dword [esp + 0x48]
fadd dword [esp + 0x3c]
fmul dword [0x5a8428]
fstp dword [esp + 0x11c]
fld dword [esp + 0x58]
fadd dword [esp + 0x4c]
fadd dword [esp + 0x40]
fmul dword [0x5a8428]
fstp dword [esp + 0x120]
lea eax, [esp + 0x118]
push ebx
push eax
call fcn.00431fd0
fcom dword [esp + 0x1c]
add esp, 8
fnstsw ax
and eax, 0x4100
jne 0x409330
fstp dword [esp + 0x14]
jmp 0x409332
fstp st(0)
mov eax, dword [esp + 0x1c]
add ebx, 0xc
dec eax
mov dword [esp + 0x1c], eax
jne 0x40930c
fld dword [esp + 0x14]
fsqrt
lea ecx, [esp + 0x50]
lea edx, [esp + 0x44]
push ecx
lea eax, [esp + 0x3c]
push edx
lea ecx, [esp + 0x94]
push eax
push ecx
fstp dword [esp + 0x24]
call fcn.00430f30
fld dword [esp + 0x9c]
fmul dword [esp + 0x48]
mov edx, dword [esp + 0x1a4]
add esp, 0x10
mov dword [esp + 0x1c], 0
fchs
fld dword [esp + 0x90]
fmul dword [esp + 0x3c]
mov eax, dword [edx + 0x9c]
fsubp st(1)
fld dword [esp + 0x94]
fmul dword [esp + 0x40]
fsubp st(1)
fstp dword [esp + 0x98]
mov ecx, dword [eax + 0x34]
mov ebx, dword [eax + 0x40]
test ecx, ecx
mov dword [esp + 0x30], ebx
jle 0x409b2e
mov eax, dword [ebx]
cmp eax, 1
jne 0x409afb
mov eax, dword [ebx + 0xc]
imul eax, ebp
fld dword [esp + 0xac]
fmul dword [esi + eax*4]
fld dword [esp + 0xc4]
fmul dword [esi + eax*4 + 8]
faddp st(1)
fld dword [esp + 0xb8]
fmul dword [esi + eax*4 + 4]
faddp st(1)
fadd dword [esp + 0xd0]
fstp dword [esp + 0x5c]
fld dword [esp + 0xb0]
fmul dword [esi + eax*4]
fld dword [esp + 0xc8]
fmul dword [esi + eax*4 + 8]
faddp st(1)
fld dword [esp + 0xbc]
fmul dword [esi + eax*4 + 4]
faddp st(1)
fadd dword [esp + 0xd4]
fstp dword [esp + 0x60]
fld dword [esp + 0xcc]
fmul dword [esi + eax*4 + 8]
fld dword [esp + 0xc0]
fmul dword [esi + eax*4 + 4]
faddp st(1)
fld dword [esp + 0xb4]
fmul dword [esi + eax*4]
faddp st(1)
fadd dword [esp + 0xd8]
fstp dword [esp + 0x64]
mov eax, dword [ebx + 0x10]
imul eax, ebp
fld dword [esp + 0xac]
fmul dword [esi + eax*4]
fld dword [esp + 0xc4]
fmul dword [esi + eax*4 + 8]
faddp st(1)
fld dword [esp + 0xb8]
fmul dword [esi + eax*4 + 4]
faddp st(1)
fadd dword [esp + 0xd0]
fstp dword [esp + 0x68]
fld dword [esp + 0xb0]
fmul dword [esi + eax*4]
fld dword [esp + 0xc8]
fmul dword [esi + eax*4 + 8]
faddp st(1)
fld dword [esp + 0xbc]
fmul dword [esi + eax*4 + 4]
faddp st(1)
fadd dword [esp + 0xd4]
fstp dword [esp + 0x6c]
fld dword [esp + 0xcc]
fmul dword [esi + eax*4 + 8]
fld dword [esp + 0xc0]
fmul dword [esi + eax*4 + 4]
faddp st(1)
fld dword [esp + 0xb4]
fmul dword [esi + eax*4]
faddp st(1)
fadd dword [esp + 0xd8]
fstp dword [esp + 0x70]
mov eax, dword [ebx + 0x14]
imul eax, ebp
fld dword [esp + 0xac]
fmul dword [esi + eax*4]
fld dword [esp + 0xc4]
fmul dword [esi + eax*4 + 8]
faddp st(1)
fld dword [esp + 0xb8]
fmul dword [esi + eax*4 + 4]
faddp st(1)
fadd dword [esp + 0xd0]
fstp dword [esp + 0x74]
fld dword [esp + 0xb0]
fmul dword [esi + eax*4]
fld dword [esp + 0xc8]
fmul dword [esi + eax*4 + 8]
faddp st(1)
fld dword [esp + 0xbc]
fmul dword [esi + eax*4 + 4]
mov dword [esp + 0x18], 0
lea ebp, [esp + 0x5c]
mov dword [esp + 0x10], 3
faddp st(1)
fadd dword [esp + 0xd4]
fstp dword [esp + 0x78]
fld dword [esp + 0xcc]
fmul dword [esi + eax*4 + 8]
fld dword [esp + 0xc0]
fmul dword [esi + eax*4 + 4]
faddp st(1)
fld dword [esp + 0xb4]
fmul dword [esi + eax*4]
faddp st(1)
fadd dword [esp + 0xd8]
fstp dword [esp + 0x7c]
fld dword [esp + 0x74]
fadd dword [esp + 0x68]
fadd dword [esp + 0x5c]
fmul dword [0x5a8428]
fstp dword [esp + 0x10c]
fld dword [esp + 0x78]
fadd dword [esp + 0x6c]
fadd dword [esp + 0x60]
fmul dword [0x5a8428]
fstp dword [esp + 0x110]
fld dword [esp + 0x7c]
fadd dword [esp + 0x70]
fadd dword [esp + 0x64]
fmul dword [0x5a8428]
fstp dword [esp + 0x114]
lea eax, [esp + 0x10c]
push ebp
push eax
call fcn.00431fd0
fcom dword [esp + 0x20]
add esp, 8
fnstsw ax
and eax, 0x4100
jne 0x409605
fstp dword [esp + 0x18]
jmp 0x409607
fstp st(0)
mov eax, dword [esp + 0x10]
add ebp, 0xc
dec eax
mov dword [esp + 0x10], eax
jne 0x4095e1
fld dword [esp + 0x18]
fsqrt
lea ecx, [esp + 0x10c]
lea edx, [esp + 0x118]
push ecx
push edx
fadd dword [esp + 0x1c]
fstp dword [esp + 0x18]
call fcn.00431fd0
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
add esp, 8
fcompp
fnstsw ax
test ah, 5
jnp 0x409ae5
lea eax, [esp + 0x74]
lea ecx, [esp + 0x68]
push eax
lea edx, [esp + 0x60]
push ecx
lea eax, [esp + 0xa4]
push edx
push eax
call fcn.00430f30
fld dword [esp + 0xac]
fmul dword [esp + 0x6c]
add esp, 0x10
xor ebx, ebx
fchs
fld dword [esp + 0xa0]
fmul dword [esp + 0x60]
fsubp st(1)
fld dword [esp + 0xa4]
fmul dword [esp + 0x64]
fsubp st(1)
fstp dword [esp + 0xa8]
test ebx, ebx
mov eax, 6
je 0x4096ab
lea eax, [ebx - 3]
fld dword [esp + ebx*4 + 0x40]
fsub dword [esp + eax*4 + 0x40]
lea ecx, [esp + eax*4 + 0x40]
lea edx, [esp + eax*4 + 0x3c]
lea ebp, [esp + eax*4 + 0x38]
fstp dword [esp + 0x20]
fld dword [esp + ebx*4 + 0x3c]
fsub dword [edx]
fstp dword [esp + 0x24]
fld dword [esp + ebx*4 + 0x38]
fsub dword [ebp]
fst dword [esp + 0x28]
fmul dword [esp + 0x9c]
fld dword [esp + 0x24]
fmul dword [esp + 0xa0]
faddp st(1)
fld dword [esp + 0x20]
fmul dword [esp + 0xa4]
faddp st(1)
fcom dword [0x5a83e4]
fld st(0)
fnstsw ax
and eax, 0x4100
je 0x40970c
fchs
fcomp dword [0x5a8408]
fnstsw ax
and eax, 0x4100
jne 0x4098b2
fld dword [esp + 0x9c]
fmul dword [ebp]
fld dword [esp + 0xa0]
fmul dword [edx]
faddp st(1)
fld dword [esp + 0xa4]
fmul dword [ecx]
faddp st(1)
fadd dword [esp + 0xa8]
fdiv st(1)
fchs
fstp dword [esp + 0x10]
fstp st(0)
fld dword [esp + 0x10]
fcomp dword [0x5a83e4]
fnstsw ax
and eax, 0x100
jne 0x4098b4
fld dword [esp + 0x10]
fcomp dword [0x5a83f4]
fnstsw ax
test ah, 0x41
jp 0x4098b4
fld dword [esp + 0x28]
fmul dword [esp + 0x10]
lea eax, [esp + 0x74]
fadd dword [ebp]
fstp dword [esp + 0x12c]
fld dword [esp + 0x24]
fmul dword [esp + 0x10]
fadd dword [edx]
lea edx, [esp + 0x5c]
fstp dword [esp + 0x130]
fld dword [esp + 0x20]
fmul dword [esp + 0x10]
fadd dword [ecx]
lea ecx, [esp + 0x12c]
push ecx
push edx
lea ecx, [esp + 0x88]
push eax
fstp dword [esp + 0x140]
push ecx
call fcn.00430f30
lea edx, [esp + 0xac]
lea eax, [esp + 0x90]
push edx
push eax
call fcn.00529c80
fcomp dword [0x5a83e4]
add esp, 0x18
fnstsw ax
test ah, 5
jnp 0x4098b4
lea ecx, [esp + 0x12c]
lea edx, [esp + 0x68]
push ecx
lea eax, [esp + 0x60]
push edx
lea ecx, [esp + 0x88]
push eax
push ecx
call fcn.00430f30
lea edx, [esp + 0xac]
lea eax, [esp + 0x90]
push edx
push eax
call fcn.00529c80
fcomp dword [0x5a83e4]
add esp, 0x18
fnstsw ax
test ah, 5
jnp 0x4098b4
lea ecx, [esp + 0x12c]
lea edx, [esp + 0x74]
push ecx
lea eax, [esp + 0x6c]
push edx
lea ecx, [esp + 0x88]
push eax
push ecx
call fcn.00430f30
lea edx, [esp + 0xac]
lea eax, [esp + 0x90]
push edx
push eax
call fcn.00529c80
fcomp dword [0x5a83e4]
add esp, 0x18
fnstsw ax
test ah, 5
jnp 0x4098b4
mov eax, dword [esp + 0x190]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
pop edi
mov dword [eax + 0x15c], edx
mov edx, dword [esp + 0x190]
pop esi
pop ebp
mov dword [edx + 0x15c], ecx
mov eax, 1
pop ebx
add esp, 0x17c
ret
fstp st(0)
add ebx, 3
cmp ebx, 0xc
jl 0x40969f
xor ebx, ebx
test ebx, ebx
mov eax, 6
je 0x4098ce
lea eax, [ebx - 3]
fld dword [esp + ebx*4 + 0x64]
fsub dword [esp + eax*4 + 0x64]
lea ecx, [esp + eax*4 + 0x64]
lea edx, [esp + eax*4 + 0x60]
lea ebp, [esp + eax*4 + 0x5c]
fstp dword [esp + 0x28]
fld dword [esp + ebx*4 + 0x60]
fsub dword [edx]
fstp dword [esp + 0x24]
fld dword [esp + ebx*4 + 0x5c]
fsub dword [ebp]
fst dword [esp + 0x20]
fmul dword [esp + 0x8c]
fld dword [esp + 0x24]
fmul dword [esp + 0x90]
faddp st(1)
fld dword [esp + 0x28]
fmul dword [esp + 0x94]
faddp st(1)
fcom dword [0x5a83e4]
fld st(0)
fnstsw ax
and eax, 0x4100
je 0x40992f
fchs
fcomp dword [0x5a8408]
fnstsw ax
and eax, 0x4100
jne 0x409ad5
fld dword [esp + 0x90]
fmul dword [edx]
fld dword [esp + 0x94]
fmul dword [ecx]
faddp st(1)
fld dword [esp + 0x8c]
fmul dword [ebp]
faddp st(1)
fadd dword [esp + 0x98]
fdiv st(1)
fchs
fstp dword [esp + 0x10]
fstp st(0)
fld dword [esp + 0x10]
fcomp dword [0x5a83e4]
fnstsw ax
and eax, 0x100
jne 0x409ad7
fld dword [esp + 0x10]
fcomp dword [0x5a83f4]
fnstsw ax
test ah, 0x41
jp 0x409ad7
fld dword [esp + 0x20]
fmul dword [esp + 0x10]
lea eax, [esp + 0x50]
fadd dword [ebp]
fstp dword [esp + 0x12c]
fld dword [esp + 0x24]
fmul dword [esp + 0x10]
fadd dword [edx]
lea edx, [esp + 0x38]
fstp dword [esp + 0x130]
fld dword [esp + 0x28]
fmul dword [esp + 0x10]
fadd dword [ecx]
lea ecx, [esp + 0x12c]
push ecx
push edx
lea ecx, [esp + 0x88]
push eax
fstp dword [esp + 0x140]
push ecx
call fcn.00430f30
lea edx, [esp + 0x9c]
lea eax, [esp + 0x90]
push edx
push eax
call fcn.00529c80
fcomp dword [0x5a83e4]
add esp, 0x18
fnstsw ax
test ah, 5
jnp 0x409ad7
lea ecx, [esp + 0x12c]
lea edx, [esp + 0x44]
push ecx
lea eax, [esp + 0x3c]
push edx
lea ecx, [esp + 0x88]
push eax
push ecx
call fcn.00430f30
lea edx, [esp + 0x9c]
lea eax, [esp + 0x90]
push edx
push eax
call fcn.00529c80
fcomp dword [0x5a83e4]
add esp, 0x18
fnstsw ax
test ah, 5
jnp 0x409ad7
lea ecx, [esp + 0x12c]
lea edx, [esp + 0x50]
push ecx
lea eax, [esp + 0x48]
push edx
lea ecx, [esp + 0x88]
push eax
push ecx
call fcn.00430f30
lea edx, [esp + 0x9c]
lea eax, [esp + 0x90]
push edx
push eax
call fcn.00529c80
fcomp dword [0x5a83e4]
add esp, 0x18
fnstsw ax
test ah, 5
jnp 0x409ad7
mov ecx, dword [esp + 0x190]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
pop edi
mov dword [ecx + 0x15c], eax
mov eax, dword [esp + 0x190]
pop esi
pop ebp
mov dword [eax + 0x15c], edx
mov eax, 1
pop ebx
add esp, 0x17c
ret
fstp st(0)
inc ebx
cmp ebx, 3
jl 0x4098c2
mov ebx, dword [esp + 0x30]
mov ecx, dword [0x5c4314]
mov ebp, dword [esp + 0x124]
lea edx, [ebx + ecx*4]
mov dword [esp + 0x30], edx
jmp 0x409b0b
cmp eax, 2
jne 0x409b0f
mov eax, dword [ebx + 8]
lea ecx, [ebx + eax*8 + 0xc]
mov dword [esp + 0x30], ecx
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x194]
mov eax, dword [esp + 0x1c]
inc eax
mov ecx, dword [edx + 0x9c]
mov dword [esp + 0x1c], eax
cmp eax, dword [ecx + 0x34]
jl 0x4093be
mov edx, dword [esp + 0x2c]
mov eax, dword [0x5c4314]
lea ecx, [edx + eax*4]
mov edx, dword [esp + 0x128]
jmp 0x409b4f
cmp eax, 2
jne 0x409b53
mov eax, dword [ecx + 8]
lea ecx, [ecx + eax*8 + 0xc]
mov dword [esp + 0x2c], ecx
mov ebx, dword [esp + 0x190]
mov eax, dword [esp + 0x34]
inc eax
mov ebx, dword [ebx + 0x9c]
mov dword [esp + 0x34], eax
cmp eax, dword [ebx + 0x34]
jl 0x4090e9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x17c
ret