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

Disassembly:
sub esp, 0x6c
push ebx
mov ebx, dword [esp + 0x7c]
push ebp
mov ebp, dword [esp + 0x7c]
push esi
lea eax, [esp + 0x18]
push edi
mov edi, dword [esp + 0x80]
mov esi, ecx
push eax
push ebx
push ebp
mov ecx, edi
mov dword [esp + 0x1c], 0
call fcn.0040ff20
mov al, byte [esp + 0x1c]
test al, al
je 0x40b7c2
mov ecx, dword [esi + 0xd4]
test ecx, ecx
je 0x40b46c
cmp al, 7
je 0x40b7c2
cmp al, 7
je 0x40b4aa
mov eax, dword [esi + 0xd8]
test eax, eax
jne 0x40b7c2
mov eax, dword [esi + 0xe8]
test eax, eax
je 0x40b4aa
test ebp, ebp
jbe 0x40b4aa
test ebx, ebx
jbe 0x40b4aa
mov ecx, dword [edi + 0x468]
dec ecx
cmp ebp, ecx
jae 0x40b4aa
mov edx, dword [edi + 0x46c]
dec edx
cmp ebx, edx
jb 0x40b7c2
push ebp
mov ecx, edi
call fcn.00410040
fadd dword [0x45355c]
push ebx
mov ecx, edi
fstp dword [esp + 0x2c]
call fcn.00410070
fsub dword [0x45355c]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], 0x40f00000
cmp al, 7
fstp dword [esp + 0x2c]
jne 0x40b7ce
mov ecx, dword [edi + 0x808]
test ecx, ecx
jne 0x40b7c2
test ah, ah
jne 0x40b7c2
mov eax, dword [esp + 0x1e]
test ah, 0x80
jne 0x40b7c2
fld dword [esp + 0x28]
fadd dword [0x45355c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x2c]
fsub dword [0x45355c]
fstp dword [esp + 0x20]
fld dword [esi + 0x9c]
fsub dword [esp + 0x1c]
fstp dword [esp + 0x40]
fld dword [esi + 0xa0]
fsub dword [esp + 0x20]
fld dword [esi + 0xa4]
fsub dword [0x453480]
fst dword [esp + 0x48]
fmul dword [esp + 0x48]
fld st(1)
fmul st(2)
faddp st(1)
fld dword [esp + 0x40]
fmul dword [esp + 0x40]
faddp st(1)
fcomp dword [0x453558]
fnstsw ax
test ah, 1
je 0x40b5ae
fld dword [esp + 0x40]
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x1c]
pop edi
fstp dword [eax]
mov dword [eax + 8], ecx
fstp dword [eax + 4]
mov eax, dword [esp + 0x1c]
mov dword [esi + 0xb4], edx
mov dword [esi + 0xb8], eax
mov dword [esi + 0xbc], 0x40f00000
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x6c
ret 0x18
fstp st(0)
fld dword [esi + 0xb0]
fld dword [esi + 0xac]
fld dword [esi + 0xa8]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fstp dword [esp + 0x88]
fstp st(0)
fstp st(0)
fstp st(0)
fld dword [esp + 0x88]
fcomp dword [0x453440]
fnstsw ax
test ah, 0x40
jne 0x40b7c2
fld dword [esi + 0xa4]
fmul dword [esi + 0xb0]
fld dword [esi + 0xa0]
fmul dword [esi + 0xac]
faddp st(1)
fld dword [esi + 0x9c]
fmul dword [esi + 0xa8]
faddp st(1)
fld dword [esp + 0x1c]
fmul dword [esi + 0xa8]
fld dword [esp + 0x20]
fmul dword [esi + 0xac]
faddp st(1)
fld dword [esi + 0xb0]
fmul dword [0x453480]
faddp st(1)
fsubp st(1)
fadd st(0), st(0)
fld dword [esi + 0xa4]
fld dword [esi + 0xa0]
fld dword [esi + 0x9c]
fld st(3)
fmul st(4)
fld st(3)
fmul st(4)
fld st(3)
fmul st(4)
faddp st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld dword [esp + 0x20]
fmul dword [esi + 0xa0]
fld dword [esp + 0x1c]
fmul dword [esi + 0x9c]
faddp st(1)
fld dword [esi + 0xa4]
fmul dword [0x453480]
faddp st(1)
fadd st(0), st(0)
fsubp st(1)
fld dword [esp + 0x20]
fmul dword [esp + 0x20]
fld dword [esp + 0x1c]
fmul dword [esp + 0x1c]
faddp st(1)
fadd dword [0x4534c4]
faddp st(1)
fsub dword [0x453558]
fmul dword [esp + 0x88]
fmul dword [0x453510]
fsubp st(1)
fstp dword [esp + 0x84]
fstp st(0)
fstp st(0)
fstp st(0)
fld dword [esp + 0x84]
fcomp dword [0x453440]
fnstsw ax
test ah, 1
jne 0x40b7c0
fchs
fld dword [esp + 0x84]
fsqrt
fxch st(1)
fxch st(1)
fsubp st(1)
fld dword [esp + 0x88]
fadd st(0), st(0)
fdivp st(1)
fst dword [esp + 0x88]
fcomp dword [0x453504]
fnstsw ax
test ah, 0x41
jne 0x40b7c2
mov ecx, dword [esp + 0x94]
fld dword [esp + 0x88]
fcomp dword [ecx]
fnstsw ax
test ah, 1
je 0x40b7c2
fld dword [esp + 0x88]
fmul dword [esi + 0xa8]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
mov edx, 0x40f00000
pop edi
fadd dword [esi + 0x9c]
fstp dword [eax]
fld dword [esp + 0x84]
fmul dword [esi + 0xac]
fadd dword [esi + 0xa0]
mov dword [eax + 8], edx
fstp dword [eax + 4]
fld dword [esp + 0x18]
fsub dword [eax]
fstp dword [ecx]
fld dword [esp + 0x1c]
fsub dword [eax + 4]
fstp dword [ecx + 4]
fld dword [0x453480]
fsub dword [eax + 8]
mov eax, dword [esp + 0x18]
fstp dword [ecx + 8]
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0xb4], eax
mov dword [esi + 0xb8], ecx
mov dword [esi + 0xbc], edx
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x6c
ret 0x18
fstp st(0)
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x6c
ret 0x18
fld dword [esi + 0x9c]
fsub dword [esp + 0x28]
fstp dword [esp + 0x34]
fld dword [esi + 0xa0]
fsub dword [esp + 0x2c]
fstp dword [esp + 0x38]
fld dword [esi + 0xa4]
fsub dword [0x453480]
fstp dword [esp + 0x3c]
fld dword [esi + 0xa8]
fcomp dword [0x453440]
fnstsw ax
test ah, 0x40
je 0x40b820
fld dword [esi + 0xac]
fcomp dword [0x453440]
fnstsw ax
test ah, 0x40
jne 0x40b7c2
fld dword [0x453440]
fld dword [esp + 0x28]
fsub dword [0x45355c]
mov edi, dword [esp + 0x94]
mov dword [esp + 0x40], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x54], 0x40f00000
mov dword [esp + 0x60], 0x40f00000
mov dword [esp + 0x6c], 0x40f00000
fstp dword [esp + 0x84]
fld dword [esp + 0x2c]
fsub dword [0x45355c]
mov edx, dword [esp + 0x84]
mov dword [esp + 0x78], 0x40f00000
mov dword [esp + 0x4c], edx
mov dword [esp + 0x64], edx
mov ebp, 1
fstp dword [esp + 0x88]
fld dword [esp + 0x28]
fadd dword [0x45355c]
mov eax, dword [esp + 0x88]
mov dword [esp + 0x50], eax
mov ecx, eax
mov dword [esp + 0x5c], ecx
fst dword [esp + 0x58]
fld dword [esp + 0x2c]
fadd dword [0x45355c]
fst dword [esp + 0x80]
fstp dword [esp + 0x68]
mov eax, dword [esp + 0x80]
fstp dword [esp + 0x70]
fld dword [esp + 0x38]
fabs
fld dword [esp + 0x34]
fabs
fcompp
mov dword [esp + 0x74], eax
fnstsw ax
test ah, 1
je 0x40b943
fld dword [esp + 0x38]
fcomp dword [0x453440]
fld dword [esi + 0xac]
mov ecx, ebp
fnstsw ax
fcomp dword [0x453440]
test ah, 0x41
fnstsw ax
jne 0x40b929
test ah, 0x41
je 0x40ba93
fstp st(0)
fld dword [0x45343c]
fld dword [esp + 0x2c]
fadd dword [0x453554]
jmp 0x40b99f
test ah, 1
jne 0x40ba93
fstp st(0)
fld dword [0x453550]
fld dword [esp + 0x88]
jmp 0x40b999
fld dword [esp + 0x34]
fcomp dword [0x453440]
fld dword [esi + 0xa8]
xor ecx, ecx
fnstsw ax
fcomp dword [0x453440]
test ah, 0x41
fnstsw ax
jne 0x40b981
test ah, 1
je 0x40ba93
fld dword [esp + 0x28]
fadd dword [0x453554]
mov dword [esp + 0x40], 0x3f800000
jmp 0x40b99f
test ah, 1
jne 0x40ba93
fld dword [esp + 0x84]
mov dword [esp + 0x40], 0xbf800000
fsub dword [0x453480]
fsub dword [esi + ecx*4 + 0x9c]
fdiv dword [esi + ecx*4 + 0xa8]
fst dword [esp + 0x88]
fcomp dword [0x453504]
fnstsw ax
test ah, 0x41
jne 0x40ba93
fld dword [esp + 0x88]
fcomp dword [edi]
fnstsw ax
test ah, 1
je 0x40ba93
fld dword [esp + 0x88]
fmul dword [esi + 0xa8]
xor ecx, ebp
mov dword [esp + 0x3c], 0x40f00000
fadd dword [esi + 0x9c]
fstp dword [esp + 0x34]
fld dword [esp + 0x88]
fmul dword [esi + 0xac]
fadd dword [esi + 0xa0]
fstp dword [esp + 0x38]
fld dword [esp + ecx*4 + 0x34]
fsub dword [esp + ecx*4 + 0x28]
fabs
fcomp qword [0x453548]
fnstsw ax
test ah, 0x41
je 0x40ba93
fld dword [esp + 0x34]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x88]
mov edx, 0x40f00000
fstp dword [eax]
fld dword [esp + 0x40]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x90]
mov dword [eax + 8], edx
mov dword [esp + 0x10], ebp
fstp dword [ecx]
mov dword [ecx + 8], 0
fstp dword [ecx + 4]
mov dword [edi], ebx
pop edi
fld dword [ecx]
fmul dword [0x453480]
fsubr dword [eax]
fstp dword [esi + 0x4c]
fld dword [ecx + 4]
fmul dword [0x453480]
fsubr dword [eax + 4]
mov dword [esi + 0x54], edx
mov eax, ebp
fstp dword [esi + 0x50]
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 0x18
lea ecx, [esp + 0x4c]
mov ebx, 4
mov edx, 0x40f00000
fld dword [ecx]
fsub dword [esi + 0x9c]
fld dword [ecx + 4]
fsub dword [esi + 0xa0]
fld dword [ecx + 8]
fsub dword [esi + 0xa4]
fxch st(2)
fmul dword [esi + 0xa8]
fxch st(2)
fmul dword [esi + 0xb0]
faddp st(2)
fmul dword [esi + 0xac]
faddp st(1)
fcomp dword [0x453440]
fnstsw ax
test ah, 0x41
jne 0x40bc9b
fld dword [esi + 0xb0]
fld dword [esi + 0xac]
fld dword [esi + 0xa8]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
mov eax, dword [ecx + 8]
mov dword [esp + 0x80], eax
mov eax, dword [ecx + 4]
faddp st(1)
fld st(3)
fmul st(4)
mov dword [esp + 0x84], eax
mov eax, dword [ecx]
mov dword [esp + 0x14], eax
faddp st(1)
fstp dword [esp + 0x1c]
fstp st(0)
fstp st(0)
fstp st(0)
fld dword [esi + 0xa4]
fmul dword [esi + 0xb0]
fld dword [esi + 0xa0]
fmul dword [esi + 0xac]
faddp st(1)
fld dword [esi + 0x9c]
fmul dword [esi + 0xa8]
faddp st(1)
fld dword [ecx + 8]
fmul dword [esi + 0xb0]
fld dword [ecx + 4]
fmul dword [esi + 0xac]
faddp st(1)
fld dword [ecx]
fmul dword [esi + 0xa8]
faddp st(1)
fsubp st(1)
fadd st(0), st(0)
fstp dword [esp + 0x94]
fld dword [esi + 0xa4]
fld dword [esi + 0xa0]
fld dword [esi + 0x9c]
fld dword [esp + 0x94]
fmul dword [esp + 0x94]
fld st(3)
fmul st(4)
fld st(3)
fmul st(4)
faddp st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld dword [ecx]
fmul dword [esi + 0x9c]
fld dword [ecx + 8]
fmul dword [esi + 0xa4]
faddp st(1)
fld dword [ecx + 4]
fmul dword [esi + 0xa0]
faddp st(1)
fadd st(0), st(0)
fsubp st(1)
fld dword [esp + 0x84]
fmul dword [esp + 0x84]
fld dword [esp + 0x80]
fmul dword [esp + 0x80]
faddp st(1)
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
faddp st(1)
faddp st(1)
fsub dword [0x4534c4]
fmul dword [esp + 0x1c]
fmul dword [0x453510]
fsubp st(1)
fstp dword [esp + 0x18]
fstp st(0)
fstp st(0)
fstp st(0)
fld dword [esp + 0x18]
fcomp dword [0x453440]
fnstsw ax
test ah, 1
jne 0x40bc9b
fld dword [esp + 0x94]
fchs
fld dword [esp + 0x18]
fsqrt
fxch st(1)
fxch st(1)
fsubp st(1)
fld dword [esp + 0x1c]
fadd st(0), st(0)
fdivp st(1)
fst dword [esp + 0x94]
fcomp dword [0x453504]
fnstsw ax
test ah, 0x41
jne 0x40bc9b
fld dword [esp + 0x94]
fcomp dword [edi]
fnstsw ax
test ah, 1
je 0x40bc9b
mov eax, dword [esp + 0x94]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x88], eax
mov dword [edi], eax
mov eax, dword [ecx]
mov dword [esi + 0x54], edx
mov dword [esp + 0x40], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x48], eax
mov eax, dword [ecx]
mov dword [esi + 0x4c], eax
mov eax, dword [ecx + 4]
fstp st(0)
fld dword [ecx + 4]
mov dword [esi + 0x50], eax
add ecx, 0xc
dec ebx
jne 0x40baa1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40bd59
fld dword [esp + 0x88]
fmul dword [esi + 0xa8]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
fadd dword [esi + 0x9c]
fstp dword [eax]
fld dword [esp + 0x88]
fmul dword [esi + 0xac]
fadd dword [esi + 0xa0]
mov dword [eax + 8], edx
fstp dword [eax + 4]
fld dword [eax]
fsub dword [esp + 0x40]
fstp dword [ecx]
fld dword [eax + 4]
fsub st(1)
fstp dword [ecx + 4]
fstp st(0)
fld dword [eax + 8]
fsub dword [esp + 0x48]
fst dword [ecx + 8]
fld dword [ecx + 4]
fld dword [ecx]
fld st(2)
fmulp st(3)
fld st(1)
fmul st(2)
faddp st(3)
fld st(0)
fmul st(1)
faddp st(3)
fstp st(0)
fstp st(0)
fcom dword [0x453440]
fnstsw ax
test ah, 0x40
jne 0x40bd59
fsqrt
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
fdivr dword [0x45343c]
fld st(0)
fmul dword [ecx]
fstp dword [ecx]
fld st(0)
fmul dword [ecx + 4]
fstp dword [ecx + 4]
fmul dword [ecx + 8]
fstp dword [ecx + 8]
add esp, 0x6c
ret 0x18
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
fstp st(0)
pop ebx
add esp, 0x6c
ret 0x18