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

Disassembly:
jmp 0x4e76e0
sub esp, 0x9c
mov eax, dword [esp + 0xa4]
push ebx
push esi
cmp eax, 5
push edi
mov dword [esp + 0x14], 0x43c80000
mov dword [esp + 0x18], 0x43340000
mov dword [esp + 0x1c], 0x3af9096c
mov dword [esp + 0x20], 0x43700000
mov dword [esp + 0x24], 0x43340000
mov dword [esp + 0x28], 0x3af9096c
mov dword [esp + 0x2c], 0x43c80000
mov dword [esp + 0x30], 0x43960000
mov dword [esp + 0x34], 0x3af9096c
mov dword [esp + 0x38], 0x43700000
mov dword [esp + 0x3c], 0x43960000
mov dword [esp + 0x40], 0x3af9096c
mov dword [esp + 0x44], 0x43c80000
mov dword [esp + 0x48], 0x43500000
mov dword [esp + 0x4c], 0x3af9096c
mov dword [esp + 0x50], 0x43700000
mov dword [esp + 0x54], 0x43500000
mov dword [esp + 0x58], 0x3af9096c
jle 0x4e778c
mov eax, 5
jmp 0x4e7791
cmp eax, 2
jle 0x4e77b4
mov dword [esp + 0x10], eax
lea eax, [eax + eax*8 - 0x12]
shl eax, 2
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
fadd dword [0x64634c]
fst dword [esp + 0x30]
fstp dword [esp + 0x3c]
jmp 0x4e77bc
mov dword [esp + 0x10], 2
lea eax, [esp + 0x18]
mov ecx, 6
mov edx, 0x3a51b717
fld dword [esp + 0xb8]
mov dword [eax + 4], edx
fadd dword [eax]
add eax, 0xc
dec ecx
fstp dword [eax - 0xc]
jne 0x4e77ca
mov eax, dword [esp + 0xb4]
push 0xff787878
test eax, eax
push 2
jne 0x4e7aa8
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
sub esp, 0xc
mov ecx, esp
sub esp, 0xc
mov dword [ecx], edx
mov edx, dword [esp + 0x78]
mov dword [ecx + 4], eax
mov eax, esp
mov dword [ecx + 8], edx
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov dword [eax], ecx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
call fcn.00403e68
add esp, 0x20
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
push 0xff787878
push 2
sub esp, 0xc
mov edx, esp
sub esp, 0xc
mov dword [edx], eax
mov eax, dword [esp + 0x60]
mov dword [edx + 4], ecx
mov ecx, esp
sub esp, 0xc
mov dword [edx + 8], eax
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
mov dword [ecx], edx
mov edx, dword [esp + 0x60]
mov dword [ecx + 4], eax
mov eax, esp
sub esp, 0xc
mov dword [ecx + 8], edx
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 4], edx
mov edx, esp
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov dword [edx], eax
mov eax, dword [esp + 0x54]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
call fcn.00403f94
fld dword [esp + 0x58]
fadd dword [0x6444d0]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x80]
mov dword [esp + 0xb4], eax
add esp, 0x38
mov dword [esp + 0x70], 0x3a6bedfa
mov dword [esp + 0x80], 0x3a6bedfa
fstp dword [esp + 0x68]
fld dword [esp + 0x24]
fadd dword [0x6444d0]
mov dword [esp + 0x90], 0x3a6bedfa
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], 0x3a6bedfa
lea eax, [esp + 0x74]
fstp dword [esp + 0x6c]
fld dword [esp + 0x50]
fadd dword [0x6444d0]
fstp dword [esp + 0x78]
fld dword [esp + 0x14]
fsub dword [0x6444d0]
fstp dword [esp + 0x88]
fld dword [esp + 0x18]
fadd dword [0x6444d0]
fstp dword [esp + 0x8c]
fld dword [esp + 0x44]
fsub dword [0x6444d0]
fstp dword [esp + 0x98]
mov ecx, 4
mov dword [eax], 0xc8000000
add eax, 0x10
dec ecx
jne 0x4e794d
lea edx, [esp + 0x68]
push edx
push 4
call fcn.004030fd
add esp, 8
fld dword [esp + 0x50]
fadd dword [0x6444d0]
mov dword [esp + 0x70], 0x3a6bedfa
mov dword [esp + 0x80], 0x3a6bedfa
mov dword [esp + 0x90], 0x3a6bedfa
mov dword [esp + 0xa0], 0x3a6bedfa
lea eax, [esp + 0x74]
mov ecx, 4
fstp dword [esp + 0x68]
fld dword [esp + 0x54]
fadd dword [0x6444d0]
fstp dword [esp + 0x6c]
fld dword [esp + 0x38]
fadd dword [0x6444d0]
fstp dword [esp + 0x78]
fld dword [esp + 0x3c]
fsub dword [0x6444d0]
fstp dword [esp + 0x7c]
fld dword [esp + 0x44]
fsub dword [0x6444d0]
fstp dword [esp + 0x88]
fld dword [esp + 0x48]
fadd dword [0x6444d0]
fstp dword [esp + 0x8c]
fld dword [esp + 0x2c]
fsub dword [0x6444d0]
fstp dword [esp + 0x98]
fld dword [esp + 0x30]
fsub dword [0x6444d0]
fstp dword [esp + 0x9c]
mov dword [eax], 0xc8000078
add eax, 0x10
dec ecx
jne 0x4e7a16
lea eax, [esp + 0x68]
push eax
push 4
call fcn.004030fd
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0xb4]
add esp, 8
xor edi, edi
test eax, eax
mov dword [esp + 0xc], edi
jle 0x4e7b6c
lea esi, [esp + 0x14]
fild dword [esp + 0xc]
mov dword [esi], 0x437c0000
cmp edi, ebx
fmul qword [0x64ab28]
fadd dword [esp + 0xb8]
fadd qword [0x64ab38]
fstp dword [esi + 4]
mov dword [esi + 8], 0x399d4952
jne 0x4e7b28
push 0x3f800000
push 0x42d40000
push 0x3f800000
mov ecx, esi
sub esp, 0xc
mov eax, dword [ecx]
mov edx, esp
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
jmp 0x4e7b4e
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
sub esp, 0xc
mov ecx, esp
sub esp, 0xc
mov dword [ecx], edx
mov edx, dword [esp + 0x60]
mov dword [ecx + 4], eax
mov eax, esp
sub esp, 0xc
mov dword [ecx + 8], edx
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 4], edx
mov edx, esp
sub esp, 0xc
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x8c]
mov dword [edx], eax
mov eax, dword [esp + 0x90]
mov dword [edx + 4], ecx
mov ecx, esp
mov dword [edx + 8], eax
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
mov dword [ecx], edx
mov edx, dword [esp + 0x84]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
call fcn.00403f94
add esp, 0x38
jmp 0x4e7968
push 0x3ecccccd
push 0x42d40000
push 0x3f800000
mov edx, esi
sub esp, 0xc
mov ecx, dword [edx]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
push 0
call fcn.004032dd
mov eax, dword [esp + 0x2c]
add esp, 0x1c
inc edi
add esi, 0xc
cmp edi, eax
mov dword [esp + 0xc], edi
jl 0x4e7a4e
lea eax, [ebx + ebx*8]
mov ecx, dword [0xcd5930]
shl eax, 2
mov dword [esp + 0xc], eax
and ecx, 0xffff
fild dword [esp + 0xc]
mov dword [esp + 0xc], ecx
push 0x3f800000
push 0x42d40000
push ecx
fadd dword [esp + 0xc4]
sub esp, 0xc
mov dword [esp + 0x74], 0x437c0000
mov eax, dword [esp + 0x74]
mov edx, esp
fadd qword [0x64ab38]
mov dword [esp + 0x7c], 0x3951b717
fstp dword [esp + 0x78]
fild dword [esp + 0x24]
mov ecx, dword [esp + 0x78]
fmul qword [0x634248]
fmul qword [0x634268]
fcos
fabs
fstp dword [esp + 0xc]
mov dword [edx], eax
mov eax, dword [esp + 0x7c]
push 1
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
call fcn.004032dd
mov eax, dword [0xcd5930]
add esp, 0x1c
add eax, 0x200
pop edi
pop esi
mov dword [0xcd5930], eax
pop ebx
add esp, 0x9c
ret