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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
mov eax, dword [ebp + 0x1c]
push ebx
push esi
xor esi, esi
lea ecx, [eax + 0x10000]
mov eax, dword [ebp + 0x14]
imul ecx, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], esi
fild qword [esp + 0xc]
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edx
mov ebx, dword [ebp + 0x30]
fmul qword [0x494538]
push edi
mov edi, dword [ebp + 0x2c]
fstp qword [esp + 0x20]
fild qword [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
fstp qword [esp + 0x30]
fild qword [esp + 0x10]
fsubr qword [esp + 0x20]
fmul qword [0x494530]
fild dword [ebp + 0x20]
fmul qword [0x494538]
faddp st(1)
fstp qword [esp + 0x28]
fild dword [ebp + 0x24]
fmul qword [0x494538]
fstp qword [esp + 0x10]
fild dword [ebp + 0x28]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, eax
mov dword [esp + 0x38], eax
fmul qword [0x4944a8]
mov dword [esp + 0x3c], ecx
mov eax, ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
fst qword [esp + 0x18]
fcos
xor eax, eax
fld qword [esp + 0x18]
fsin
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], esi
fild qword [esp + 0x18]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
fmul qword [0x494538]
fild qword [esp + 0x18]
fmul qword [0x494538]
fld qword [esp + 0x28]
fchs
fst qword [esp + 0x78]
fld qword [esp + 0x20]
fsub qword [esp + 0x28]
fsub qword [0x494ef0]
fst qword [esp + 0x80]
fxch st(1)
fstp qword [esp + 0x88]
fld qword [esp + 0x10]
fsub qword [esp + 0x30]
fadd qword [0x494ef0]
fst qword [esp + 0x28]
fstp qword [esp + 0x48]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
fstp qword [esp + 0x90]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
fld st(1)
fmul qword [esp + eax + 0x78]
add eax, 8
cmp eax, 0x20
fst qword [esp + 0x28]
fstp qword [esp + eax + 0x70]
fld st(0)
fmul qword [esp + eax + 0x30]
fld st(0)
fxch st(1)
fstp qword [esp + eax + 0x30]
fld qword [esp + 0x28]
fmul st(5)
fld st(1)
fmul st(5)
fsubp st(1)
fstp qword [esp + eax + 0x50]
fmul st(4)
fld qword [esp + 0x28]
fmul st(4)
faddp st(1)
fstp qword [esp + eax + 0x90]
jl 0x41ba6d
fstp st(0)
fstp st(0)
fstp st(0)
fstp st(0)
fld qword [0x494ee8]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0x41cdcd65
fst qword [esp + 0x30]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0xc1cdcd65
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0xc1cdcd65
xor ecx, ecx
fld qword [esp + 0x18]
fcomp qword [esp + ecx + 0x58]
fnstsw ax
and eax, 0x4100
jne 0x41bb17
mov eax, dword [esp + ecx + 0x58]
mov edx, dword [esp + ecx + 0x5c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
fld qword [esp + 0x20]
fcomp qword [esp + ecx + 0x58]
fnstsw ax
test ah, 5
jp 0x41bb36
mov eax, dword [esp + ecx + 0x58]
mov edx, dword [esp + ecx + 0x5c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
fld qword [esp + 0x10]
fcomp qword [esp + ecx + 0x98]
fnstsw ax
test ah, 5
jp 0x41bb5e
mov eax, dword [esp + ecx + 0x98]
mov edx, dword [esp + ecx + 0x9c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
fcom qword [esp + ecx + 0x98]
fnstsw ax
and eax, 0x4100
jne 0x41bb77
fstp st(0)
fld qword [esp + ecx + 0x98]
add ecx, 8
cmp ecx, 0x20
jl 0x41baf6
mov eax, dword [ebp + 0x34]
fstp qword [esp + 0x30]
cdq
push edx
push eax
push esi
push edi
call fcn.00471220
mov ecx, 0x10
call fcn.00471500
and eax, 0xffff
and edx, esi
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x38]
mov dword [esp + 0x2c], edx
fild qword [esp + 0x28]
cdq
fmul qword [0x494538]
push edx
push eax
push esi
push ebx
fadd qword [esp + 0x30]
fstp qword [esp + 0x30]
call fcn.00471220
mov ecx, 0x10
call fcn.00471500
and eax, 0xffff
and edx, esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
fild qword [esp + 0x28]
fmul qword [0x494538]
fsubr qword [esp + 0x30]
fld qword [esp + 0x18]
fcomp qword [0x4944a0]
fld qword [esp + 0x18]
fnstsw ax
and eax, 0x100
jne 0x41bc13
call fcn.00471114
mov edi, eax
jmp 0x41bc3c
fmul qword [0x494528]
call fcn.00471114
fld qword [esp + 0x18]
mov esi, eax
and esi, 0xffff
add esi, 0xffff
sar esi, 0x10
call fcn.00471114
mov edi, eax
sub edi, esi
fld qword [esp + 0x20]
fcomp qword [0x4944a0]
fld qword [esp + 0x20]
fnstsw ax
and eax, 0x100
jne 0x41bc5c
call fcn.00471114
mov esi, eax
jmp 0x41bc85
fmul qword [0x494528]
call fcn.00471114
fld qword [esp + 0x20]
mov ebx, eax
and ebx, 0xffff
add ebx, 0xffff
sar ebx, 0x10
call fcn.00471114
mov esi, eax
sub esi, ebx
fld qword [esp + 0x10]
fcomp qword [0x4944a0]
fld qword [esp + 0x10]
fnstsw ax
test ah, 5
jp 0x41bca3
call fcn.00471114
mov ebx, eax
jmp 0x41bcca
fmul qword [0x494528]
call fcn.00471114
fld qword [esp + 0x10]
mov ebx, eax
and ebx, 0xffff
add ebx, 0xffff
sar ebx, 0x10
call fcn.00471114
add ebx, eax
fcom qword [0x4944a0]
fnstsw ax
test ah, 5
jp 0x41bcde
call fcn.00471114
jmp 0x41bd0d
fld qword [0x494528]
fmul st(1)
call fcn.00471114
and eax, 0xffff
add eax, 0xffff
sar eax, 0x10
mov dword [esp + 0x20], eax
call fcn.00471114
mov ecx, dword [esp + 0x20]
add ecx, eax
mov dword [esp + 0x20], ecx
mov eax, ecx
mov edx, dword [ebp + 8]
sub esi, edi
inc esi
mov ecx, ebx
mov dword [edx], esi
mov edx, dword [ebp + 0xc]
sub ecx, eax
mov eax, dword [ebp + 0x10]
inc ecx
neg edi
mov dword [edx], ecx
mov dword [eax], edi
pop edi
mov dword [eax + 4], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34