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

Disassembly:
sub esp, 0x78
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x120]
test eax, eax
je 0x417614
mov dword [esi + 0x78], 0
mov eax, dword [esi + 0x120]
test eax, eax
je 0x416f11
add eax, 0x64
mov ecx, dword [eax]
mov dword [esp + 0x34], ecx
lea ecx, [esi + 0x38]
mov edx, dword [eax + 4]
push ecx
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x50]
mov eax, dword [eax + 8]
push edx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x44], eax
call fcn.004147d0
jmp 0x416f20
push 0
push 0
push 0
lea ecx, [esp + 0x64]
call fcn.00419d00
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x20], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x120]
test eax, eax
je 0x416f69
add eax, 0x58
mov ecx, dword [eax]
mov dword [esp + 0x40], ecx
lea ecx, [esi + 0x38]
mov edx, dword [eax + 4]
push ecx
mov dword [esp + 0x48], edx
lea edx, [esp + 0x68]
mov eax, dword [eax + 8]
push edx
lea ecx, [esp + 0x48]
mov dword [esp + 0x50], eax
call fcn.004147d0
jmp 0x416f78
push 0
push 0
push 0
lea ecx, [esp + 0x7c]
call fcn.00419d00
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x30], eax
mov al, byte [0x59a55c]
test al, 1
jne 0x416fad
mov dl, al
push fcn.0041a480
or dl, 1
mov byte [0x59a55c], dl
call fcn.00476928
add esp, 4
fld dword [esp + 0x1c]
fadd dword [esp + 0x28]
fstp dword [0x59a560]
fld dword [esp + 0x20]
fadd dword [esp + 0x2c]
mov ecx, dword [0x59a560]
mov dword [esp + 0x28], ecx
fstp dword [0x59a564]
fld dword [esp + 0x24]
fadd dword [esp + 0x30]
mov edx, dword [0x59a564]
mov dword [esp + 0x2c], edx
fstp dword [0x59a568]
mov eax, dword [0x59a568]
mov dword [esp + 0x30], eax
mov al, byte [0x59a56c]
test al, 1
jne 0x417015
mov dl, al
push fcn.0041a480
or dl, 1
mov byte [0x59a56c], dl
call fcn.00476928
add esp, 4
fld dword [esp + 0x28]
fmul dword [0x4a7884]
fstp dword [0x59a570]
fld dword [esp + 0x2c]
fmul dword [0x4a7884]
mov eax, dword [0x59a570]
mov dword [esp + 0x10], eax
fstp dword [0x59a574]
fld dword [esp + 0x30]
fmul dword [0x4a7884]
mov ecx, dword [0x59a574]
mov dword [esp + 0x14], ecx
fstp dword [0x59a578]
mov eax, dword [esi + 0x120]
mov edx, dword [0x59a578]
test eax, eax
mov dword [esp + 0x18], edx
je 0x417071
fld dword [eax + 0x70]
jmp 0x417077
fld dword [0x4a7898]
fmul dword [esp + 0x8c]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x70]
push ecx
push edx
mov ecx, 0x4e6328
fstp dword [esp + 0x10]
call fcn.00412140
mov ecx, eax
call fcn.00412110
fld dword [0x4e6358]
fadd dword [esp + 8]
fcompp
fnstsw ax
test ah, 1
jne 0x417360
fld dword [esp + 8]
fchs
fstp dword [esp + 0xc]
mov ecx, 0x4e643c
xor edx, edx
fld dword [esp + 0x14]
fmul dword [ecx - 4]
fld dword [esp + 0x10]
fmul dword [ecx - 8]
faddp st(1)
fld dword [esp + 0x18]
fmul dword [ecx]
faddp st(1)
fadd dword [ecx + 4]
fcomp dword [esp + 0xc]
fnstsw ax
test ah, 0x41
jne 0x417360
add edx, 0x10
add ecx, 0x10
cmp edx, 0x60
jl 0x4170c5
mov al, byte [0x59a57c]
test al, 1
jne 0x41711b
mov dl, al
push fcn.0041a480
or dl, 1
mov byte [0x59a57c], dl
call fcn.00476928
add esp, 4
fld dword [esp + 0x10]
fsub dword [0x4e6328]
fstp dword [0x59a580]
fld dword [esp + 0x14]
fsub dword [0x4e632c]
mov eax, dword [0x59a580]
mov dword [esp + 0x28], eax
fstp dword [0x59a584]
fld dword [esp + 0x18]
fsub dword [0x4e6330]
mov ecx, dword [0x59a584]
mov dword [esp + 0x2c], ecx
push ecx
lea ecx, [esi + 0xf8]
fstp dword [0x59a588]
mov edx, dword [0x59a588]
mov dword [esp + 0x34], edx
fld dword [esp + 0x34]
fmul dword [esp + 0x34]
fld dword [esp + 0x30]
fmul dword [esp + 0x30]
faddp st(1)
fld dword [esp + 0x2c]
fmul dword [esp + 0x2c]
faddp st(1)
fsqrt
fmul dword [0x4e634c]
fdiv dword [esp + 0x90]
fstp dword [esp]
call fcn.00416000
mov ecx, dword [esi + 0xec]
test ecx, ecx
je 0x4171f9
mov eax, dword [esi + 0xf0]
sub eax, ecx
sar eax, 2
cmp eax, 1
mov dword [esp + 0xc], eax
jle 0x4171f9
fld dword [0x4bc270]
fmul dword [esi + 0xd8]
fadd dword [esi + 0x124]
fst dword [esi + 0x124]
fild dword [esp + 0xc]
fld st(1)
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x4171f5
fld st(0)
fmul st(2)
fdiv st(1)
fsubr st(2)
fstp dword [esi + 0x124]
fstp st(0)
fstp st(0)
mov al, byte [esi + 0xcc]
mov edi, dword [esp + 0x84]
test al, 8
je 0x417439
mov al, byte [0x59a47c]
test al, 1
jne 0x41722f
mov dl, al
push fcn.0041a480
or dl, 1
mov byte [0x59a47c], dl
call fcn.00476928
add esp, 4
fld dword [edi + 0x20]
fmul dword [esi + 0x34]
fld dword [edi + 0x10]
fmul dword [esi + 0x30]
faddp st(1)
fld dword [edi]
fmul dword [esi + 0x2c]
faddp st(1)
fadd dword [edi + 0x30]
fstp dword [0x59a480]
fld dword [edi + 0x24]
fmul dword [esi + 0x34]
fld dword [edi + 0x14]
fmul dword [esi + 0x30]
mov eax, dword [0x59a480]
mov dword [esp + 0x28], eax
mov al, byte [0x59a57c]
faddp st(1)
fld dword [edi + 4]
fmul dword [esi + 0x2c]
test al, 1
faddp st(1)
fadd dword [edi + 0x34]
fstp dword [0x59a484]
fld dword [edi + 0x28]
fmul dword [esi + 0x34]
fld dword [edi + 0x18]
fmul dword [esi + 0x30]
mov ecx, dword [0x59a484]
mov dword [esp + 0x2c], ecx
faddp st(1)
fld dword [edi + 8]
fmul dword [esi + 0x2c]
faddp st(1)
fadd dword [edi + 0x38]
fstp dword [0x59a488]
mov edx, dword [0x59a488]
mov dword [esp + 0x30], edx
jne 0x4172c9
mov dl, al
push fcn.0041a480
or dl, 1
mov byte [0x59a57c], dl
call fcn.00476928
add esp, 4
fld dword [0x4e6328]
fsub dword [esp + 0x28]
push ebx
fstp dword [0x59a580]
fld dword [0x4e632c]
fsub dword [esp + 0x30]
mov eax, dword [0x59a580]
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], eax
fstp dword [0x59a584]
fld dword [0x4e6330]
fsub dword [esp + 0x34]
mov ecx, dword [0x59a584]
mov dword [esp + 0x3c], ecx
fstp dword [0x59a588]
fld dword [esp + 0x20]
mov edx, dword [0x59a588]
fcomp dword [0x4a7898]
mov dword [esp + 0x28], edx
mov dword [esp + 0x40], edx
fld dword [esp + 0x28]
fdiv dword [esp + 0x20]
fld1
fpatan
fnstsw ax
test ah, 0x41
jne 0x41736f
fchs
fsub dword [0x4a78dc]
lea ebx, [esi + 0x38]
mov ecx, ebx
fstp dword [esp + 0xc]
call fcn.004120d0
fld dword [esp + 0xc]
fcos
fst dword [ebx]
fld dword [esp + 0xc]
jmp 0x41738f
mov dword [esi + 0x78], 1
pop edi
pop esi
add esp, 0x78
ret 0xc
fsubr dword [0x4a78dc]
lea ebx, [esi + 0x38]
mov ecx, ebx
fstp dword [esp + 0xc]
call fcn.004120d0
fld dword [esp + 0xc]
fcos
fst dword [ebx]
fld dword [esp + 0xc]
fsin
mov edx, dword [esp + 0x8c]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x38]
push eax
push ecx
push edx
fchs
fst dword [ebx + 8]
fchs
fstp dword [ebx + 0x20]
fstp dword [ebx + 0x28]
call fcn.00444cf9
fld dword [esp + 0x10]
fcomp dword [0x4a7898]
fnstsw ax
test ah, 0x40
jne 0x41741b
fld dword [esp + 0x10]
fchs
push ecx
lea eax, [esp + 0x3c]
fstp dword [esp]
lea ecx, [esp + 0x78]
push eax
push ecx
call fcn.00444efd
mov al, byte [0x59a414]
test al, 1
jne 0x417400
mov dl, al
push fcn.0041a480
or dl, 1
mov byte [0x59a414], dl
call fcn.00476928
add esp, 4
lea edx, [esp + 0x74]
push edx
push 0x59a420
call fcn.0044484e
push 0x59a420
mov ecx, ebx
call fcn.00412290
push edi
mov ecx, ebx
call fcn.00412290
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], ecx
mov dword [ebx + 0x38], edx
pop ebx
test byte [esi + 0xcc], 0x20
je 0x417614
fld dword [esi + 0xdc]
fsub dword [0x4bc270]
fst dword [esi + 0xdc]
fcomp dword [0x4a7898]
fnstsw ax
test ah, 0x41
je 0x4174b5
call fcn.00477706
cdq
mov ecx, 0x64
idiv ecx
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
fmul dword [0x4a79a0]
fstp dword [esi + 0xe0]
call fcn.00477706
cdq
mov ecx, 0x64
pop edi
idiv ecx
mov dword [esp + 8], edx
fild dword [esp + 8]
fmul dword [0x4a79a0]
fmul dword [0x4a79a4]
fstp dword [esi + 0xdc]
pop esi
add esp, 0x78
ret 0xc
fld dword [esi + 0xe0]
fcomp dword [esi + 0xe4]
fnstsw ax
test ah, 0x40
jne 0x417614
fld dword [esi + 0xe0]
fsub dword [esi + 0xe4]
fcom dword [0x4a7898]
fnstsw ax
test ah, 0x41
je 0x4174e7
fchs
fmul dword [0x4bc270]
fld dword [esi + 0xe4]
fcomp dword [esi + 0xe0]
fnstsw ax
test ah, 1
je 0x41750e
fld st(0)
fadd dword [esi + 0xe4]
fstp dword [esi + 0xe4]
fld dword [esi + 0xe4]
fcomp dword [esi + 0xe0]
fnstsw ax
test ah, 0x41
jne 0x41752f
fld dword [esi + 0xe4]
fsub st(1)
fstp dword [esi + 0xe4]
fld dword [esi + 0xe0]
fsub dword [esi + 0xe4]
fcom dword [0x4a7898]
fnstsw ax
test ah, 0x41
je 0x41754a
fchs
fcomp st(1)
fnstsw ax
test ah, 1
fstp st(0)
je 0x417561
mov edx, dword [esi + 0xe0]
mov dword [esi + 0xe4], edx
lea eax, [esp + 0x70]
push edi
push eax
lea ecx, [esi + 0x2c]
call fcn.004147d0
mov ecx, dword [eax]
mov dword [esp + 0x34], ecx
mov ecx, dword [esi + 0xe4]
mov edx, dword [eax + 4]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x38], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x3c], eax
mov al, byte [0x59a56c]
test al, 1
jne 0x4175ae
mov dl, al
push fcn.0041a480
or dl, 1
mov byte [0x59a56c], dl
call fcn.00476928
add esp, 4
fld dword [esp + 0xc]
fmul dword [0x4a7a70]
add esi, 0x38
fst dword [0x59a570]
fld dword [esp + 0xc]
fmul dword [0x4a79a8]
mov edx, dword [0x59a570]
mov dword [esp + 0x40], edx
lea edx, [esp + 0x40]
push edx
fstp dword [0x59a574]
mov eax, dword [0x59a574]
fstp dword [0x59a578]
mov ecx, dword [0x59a578]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov ecx, esi
call fcn.0041a0c0
push edi
mov ecx, esi
call fcn.00412290
lea eax, [esp + 0x34]
mov ecx, esi
push eax
call fcn.00419ff0
pop edi
pop esi
add esp, 0x78
ret 0xc