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

Disassembly:
sub esp, 0x5c
mov eax, dword [0x44d890]
xor eax, esp
mov dword [esp + 0x58], eax
cmp dword [0x19504c0], 0
push ebx
push ebp
push esi
push edi
je 0x40aab0
cmp dword [0x9081b0], 0
jne 0x40aab0
cmp dword [0x1950488], 0
mov eax, dword [0xd748c4]
mov ecx, dword [0xd748c8]
mov edx, dword [0xd748cc]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
jne 0x40aab0
cmp dword [0xd748dc], 0
jne 0x40aab0
cmp dword [0xb107d4], 0
jne 0x40aab0
cmp dword [0x6925c4], 0
fld1
mov eax, dword [0x153aa58]
fst dword [esp + 0x28]
mov ebx, dword [0x153aa50]
fstp dword [esp + 0x24]
mov ebp, dword [0x153aa54]
fld dword [0x4418d0]
mov dword [esp + 0x4c], eax
je 0x40a5f2
fst dword [esp + 0x28]
cmp dword [0x153a800], 0
je 0x40a601
fstp dword [esp + 0x24]
jmp 0x40a603
fstp st(0)
xor edi, edi
cmp dword [0x14bb1f0], edi
jle 0x40aab0
mov esi, 0x8b2690
cmp dword [esi + 0x10], 0
je 0x40aa9d
cmp dword [esi - 0x84], 0xa
jl 0x40aa9d
cmp dword [esi - 0x6c], 0
jne 0x40aa9d
cmp dword [esi - 0x78], 1
je 0x40aa9d
mov ecx, dword [esi - 0x2c]
mov edx, dword [esi - 0x28]
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi - 0x24]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x38]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x3c]
sub esp, 0xc
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x4c]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
lea eax, [esp + 0x68]
push eax
call fcn.0041aca0
mov ecx, dword [eax]
mov dword [esp + 0x78], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x7c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x80], ecx
mov edx, dword [eax]
add esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
call fcn.0041ad00
fmul qword [0x441828]
mov eax, dword [0x14c11f8]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x1c], eax
add esp, 8
fild dword [esp + 0x14]
lea ecx, [esp + 0x60]
fadd qword [0x4418c8]
fdivp st(1)
fstp dword [esp + 0x14]
fld1
fstp dword [esp]
push ecx
call fcn.0041aac0
fild dword [0x148fccc]
add esp, 8
fmul qword [0x4418c0]
fadd qword [0x441848]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fdivr qword [0x441520]
fmul dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [0x4416d4]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 5
jnp 0x40aa9d
mov ecx, dword [esp + 0x5c]
fld dword [esi]
lea edx, [esp + 0x20]
fstp dword [esp + 0x38]
fldz
push edx
mov edx, dword [esp + 0x64]
fstp dword [esp + 0x40]
fld dword [esi + 4]
sub esp, 0xc
mov eax, esp
fstp dword [esp + 0x50]
mov dword [eax], ecx
mov ecx, dword [esp + 0x74]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x5c]
mov dword [eax + 8], ecx
sub esp, 0xc
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebp
mov dword [eax + 8], edx
call fcn.0041abb0
fld dword [0x153aa4c]
fdiv qword [0x4416e8]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
add esp, 0x1c
lea eax, [esp + 0x1c]
push eax
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x74]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x48]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x4c]
sub esp, 0xc
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
fmul dword [esp + 0x3c]
fstp dword [esp + 0x3c]
call fcn.0041abb0
fld dword [esp + 0x38]
add esp, 0x1c
fmul qword [0x441518]
fstp dword [esp + 0x1c]
fld dword [0x4418b8]
fld dword [0x173aac8]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x40a7eb
fld dword [0x441774]
jmp 0x40a7f1
fld dword [0x441720]
fstp dword [esp + 0x14]
fld dword [esp + 0x1c]
fld st(0)
fld qword [0x4414f8]
fadd st(1), st(0)
fdiv st(1), st(0)
fld dword [esp + 0x10]
fld st(0)
fmulp st(3)
fld dword [esp + 0x14]
fmulp st(3)
fld dword [esp + 0x28]
fmulp st(3)
fxch st(2)
fstp dword [esp + 0x14]
fxch st(2)
fcom qword [0x4418b0]
fnstsw ax
test ah, 0x41
jne 0x40a838
fld dword [esp + 0x14]
fadd st(0), st(0)
fstp dword [esp + 0x14]
fcom qword [0x4418a8]
fnstsw ax
test ah, 0x41
jne 0x40a84f
fld dword [esp + 0x14]
fadd st(0), st(0)
fstp dword [esp + 0x14]
mov eax, dword [esi - 0x88]
fld dword [esp + 0x14]
imul eax, eax, 0xd4
fdiv dword [eax + 0x19a2898]
fstp dword [esp + 0x14]
fld1
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x40a96f
fstp st(2)
sub esp, 0x18
fstp st(1)
fstp st(0)
fld dword [0xc5fbb4]
fstp dword [esp + 0x14]
fmul qword [0x4414c0]
fadd dword [0xc5e7a8]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fstp dword [esp + 0x10]
fld dword [0x9107bc]
fstp dword [esp + 0xc]
fld dword [esi - 0x24]
fstp dword [esp + 8]
fld dword [esi - 0x28]
fadd qword [0x4418a0]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fstp dword [esp + 4]
fld dword [esi - 0x2c]
fstp dword [esp]
call fcn.0041c1f0
add esp, 0x18
test eax, eax
je 0x40a8eb
fld dword [esp + 0x14]
fmul qword [0x441898]
fstp dword [esp + 0x14]
fld1
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x40a95f
fld dword [0xc5fbb4]
sub esp, 0x18
fstp dword [esp + 0x14]
fld dword [0xc5e7a8]
fadd dword [0x173aac8]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fstp dword [esp + 0x10]
fld dword [0x9107bc]
fstp dword [esp + 0xc]
fld dword [esi - 0x24]
fstp dword [esp + 8]
fld dword [esi - 0x28]
fadd qword [0x4418a0]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fstp dword [esp + 4]
fld dword [esi - 0x2c]
fstp dword [esp]
call fcn.0041c1f0
add esp, 0x18
test eax, eax
je 0x40a95f
fld dword [0x4416dc]
fstp dword [esp + 0x14]
fld dword [esp + 0x1c]
fld qword [0x4414f8]
fld dword [esp + 0x10]
jmp 0x40a971
fstp st(3)
fild dword [0x58f6f8]
fdiv qword [0x4414a0]
fld1
fadd st(1), st(0)
fld dword [esp + 0x14]
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x20]
fld st(0)
fld qword [0x4416f8]
fadd st(1), st(0)
fxch st(1)
fmul qword [0x4414c0]
fmul st(4)
fxch st(6)
fadd st(5)
fdivrp st(5)
fxch st(5)
fmulp st(4)
fld dword [esp + 0x24]
fmulp st(4)
fxch st(3)
fstp dword [esp + 0x10]
fldz
fcomp st(3)
fnstsw ax
fstp st(2)
test ah, 5
jp 0x40a9d6
fld dword [esp + 0x10]
fmulp st(3)
fxch st(2)
fstp dword [esp + 0x10]
jmp 0x40a9d8
fstp st(2)
mov ecx, dword [esi - 0x88]
fld dword [esp + 0x10]
imul ecx, ecx, 0xd4
fdiv dword [ecx + 0x19a2890]
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fld dword [esp + 0x10]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x40aa0b
fxch st(1)
fst dword [esp + 0x10]
jmp 0x40aa11
fst dword [esp + 0x10]
fxch st(1)
fld1
fld dword [esp + 0x10]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x40aa93
fcom st(4)
fnstsw ax
test ah, 5
jnp 0x40aa82
fstp st(0)
fxch st(3)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fxch st(3)
fxch st(3)
fadd qword [0x441888]
fdivp st(2)
fxch st(1)
fmul qword [0x4416e8]
fmul qword [0x4415d0]
call fcn.00430550
cmp dword [esi - 0x84], 0x12
mov dword [esi - 0x6c], eax
mov dword [esi - 0x78], 2
jne 0x40aa86
fcompp
fnstsw ax
test ah, 5
jp 0x40aa8a
mov dword [esi - 0x78], 3
mov dword [esi - 0x70], 0
jmp 0x40aa9d
fstp st(4)
jmp 0x40aa39
fstp st(1)
fstp st(0)
mov dword [esi - 0x70], 0
jmp 0x40aa9d
fstp st(0)
fstp st(0)
fstp st(2)
fstp st(0)
fstp st(0)
inc edi
add esi, 0x9c
cmp edi, dword [0x14bb1f0]
jl 0x40a616
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004305fb
add esp, 0x5c
ret