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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x16c
push ebx
push esi
mov esi, dword [ecx + 0x18]
mov dword [esp + 0x20], ecx
push edi
lea ecx, [esp + 0x80]
add esi, 0x28
call fcn.00479c40
lea ecx, [esp + 0x70]
call fcn.00479c40
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov ecx, dword [esp + 0x24]
push edi
push ebx
call fcn.004bc890
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x2c]
push ebx
push edx
mov eax, dword [eax + 0x18]
fld dword [eax + 0x20]
fmul dword [0x5cb160]
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x50]
fstp dword [esp + 0x30]
fld dword [eax + 0x1c]
fmul dword [0x5cb160]
fstp dword [esp + 0x84]
fld dword [eax + 0x20]
fmul dword [0x5cb164]
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
fstp dword [esp + 0x3c]
fld dword [esp + 0x94]
push 0
sub esp, 8
fstp qword [esp]
call fcn.0041e260
lea ecx, [esp + 0x9c]
push eax
push ecx
mov ecx, esi
call fcn.0043dfb0
fld dword [esp + 0x18]
fmul dword [0x5cb164]
push eax
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x30]
sub esp, 8
fstp qword [esp]
call fcn.0041e260
lea edx, [esp + 0x68]
push eax
push edx
mov ecx, esi
call fcn.0043dfb0
push eax
mov ecx, edi
call fcn.004cebe0
fld dword [esp + 0x28]
fsub dword [0x5d3790]
push 0
push 0
fstp qword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
push 0xbfc33333
push 0x40000000
lea ecx, [esp + 0x70]
call fcn.0041e260
lea edx, [esp + 0x48]
push eax
push edx
mov ecx, esi
call fcn.0043dfb0
push eax
lea ecx, [esp + 0x84]
call fcn.0041e610
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0
push 0
push eax
push ecx
push 0x3fc33333
push 0x40000000
lea ecx, [esp + 0x70]
call fcn.0041e260
lea edx, [esp + 0x48]
push eax
push edx
mov ecx, esi
call fcn.0043dfb0
push eax
lea ecx, [esp + 0x74]
call fcn.0041e610
lea eax, [esp + 0x2c]
push ebx
lea ecx, [esp + 0x38]
push eax
lea edx, [esp + 0x78]
push ecx
lea eax, [esp + 0x8c]
push edx
push eax
mov ecx, edi
call fcn.004cebe0
fld dword [esp + 0x24]
fadd dword [0x5d3790]
push 0
push 0
fstp qword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
push 0xbfc33333
push 0x40000000
lea ecx, [esp + 0x70]
call fcn.0041e260
push eax
lea eax, [esp + 0x4c]
push eax
mov ecx, esi
call fcn.0043dfb0
push eax
lea ecx, [esp + 0x84]
call fcn.0041e610
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 0
push 0
push ecx
push edx
push 0x3fc33333
push 0x40000000
lea ecx, [esp + 0x70]
call fcn.0041e260
push eax
lea eax, [esp + 0x4c]
push eax
mov ecx, esi
call fcn.0043dfb0
push eax
lea ecx, [esp + 0x74]
call fcn.0041e610
push ebx
lea ecx, [esp + 0x30]
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x78]
push edx
lea ecx, [esp + 0x8c]
push eax
push ecx
mov ecx, edi
call fcn.004cebe0
fld dword [esp + 0x28]
fsub dword [0x5d3760]
push 0
push 0
lea ecx, [esp + 0x60]
fstp qword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
push 0xbff80000
push 0
call fcn.0041e260
lea ecx, [esp + 0x48]
push eax
push ecx
mov ecx, esi
call fcn.0043dfb0
push eax
lea ecx, [esp + 0x84]
call fcn.0041e610
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 0
push 0
push edx
push eax
push 0x3ff80000
push 0
lea ecx, [esp + 0x70]
call fcn.0041e260
lea ecx, [esp + 0x48]
push eax
push ecx
mov ecx, esi
call fcn.0043dfb0
push eax
lea ecx, [esp + 0x74]
call fcn.0041e610
lea edx, [esp + 0x2c]
push ebx
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x78]
push eax
lea edx, [esp + 0x8c]
push ecx
push edx
mov ecx, edi
call fcn.004cebe0
fld dword [esp + 0x24]
fadd dword [0x5d3760]
push 0
push 0
fstp qword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
push 0xbff80000
push 0
lea ecx, [esp + 0x70]
call fcn.0041e260
lea edx, [esp + 0x48]
push eax
push edx
mov ecx, esi
call fcn.0043dfb0
push eax
lea ecx, [esp + 0x84]
call fcn.0041e610
push 0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0
push eax
push ecx
push 0x3ff80000
push 0
lea ecx, [esp + 0x70]
call fcn.0041e260
lea edx, [esp + 0x48]
push eax
push edx
mov ecx, esi
call fcn.0043dfb0
push eax
lea ecx, [esp + 0x74]
call fcn.0041e610
lea eax, [esp + 0x2c]
push ebx
lea ecx, [esp + 0x38]
push eax
lea edx, [esp + 0x78]
push ecx
lea eax, [esp + 0x8c]
push edx
push eax
mov ecx, edi
call fcn.004cebe0
fld qword [0x5d3788]
fld qword [0x5d3748]
fpatan
lea ecx, [esp + 0x64]
mov dword [esp + 0x10], 0x54442d18
mov dword [esp + 0x14], 0x3ff921fb
fst qword [esp + 0x90]
fstp qword [esp + 0x48]
call fcn.00479c40
lea ecx, [esp + 0x3c]
call fcn.00479c40
fld qword [esp + 0x90]
fmul qword [0x5cb320]
mov dword [esp + 0x28], 0
fstp qword [esp + 0x90]
fld qword [esp + 0x90]
fadd qword [esp + 0x10]
push 0
push 0
sub esp, 8
lea ecx, [esp + 0x68]
fld st(0)
fsin
sub esp, 8
fmul qword [0x5d3748]
fadd dword [esp + 0x3c]
fstp qword [esp + 8]
fcos
fmul qword [0x5d3748]
fadd qword [0x5cb200]
fstp qword [esp]
call fcn.0041e260
push eax
lea ecx, [esp + 0x68]
call fcn.0041e610
fld qword [esp + 0x10]
fsub qword [esp + 0x90]
push 0
push 0
sub esp, 8
lea ecx, [esp + 0x158]
fld st(0)
fsin
sub esp, 8
fmul qword [0x5d3748]
fadd dword [esp + 0x3c]
fstp qword [esp + 8]
fcos
fmul qword [0x5d3748]
fadd qword [0x5cb200]
fstp qword [esp]
call fcn.0041e260
push eax
lea ecx, [esp + 0x40]
call fcn.0041e610
fld dword [esp + 0x3c]
fcomp dword [esp + 0x7c]
fnstsw ax
test ah, 1
je 0x4c2520
fld dword [esp + 0x40]
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 0x41
jne 0x4c2520
fld qword [esp + 0x10]
fcomp qword [0x5cb1a8]
fnstsw ax
test ah, 0x41
jne 0x4c2520
fld dword [esp + 0x68]
lea edx, [esp + 0x2c]
push ebx
lea eax, [esp + 0x38]
push edx
mov ecx, dword [esp + 0x6c]
push eax
fstp dword [esp + 0x18]
fld dword [esp + 0x4c]
push 0
push 0
sub esp, 8
mov dword [esp + 0xc4], ecx
fstp qword [esp]
fld dword [esp + 0x58]
sub esp, 8
lea ecx, [esp + 0x13c]
fstp qword [esp]
call fcn.0041e260
lea ecx, [esp + 0xdc]
push eax
push ecx
mov ecx, esi
call fcn.0043dfb0
fld dword [esp + 0x18]
push eax
push 0
push 0
lea ecx, [esp + 0xc4]
sub esp, 8
fstp qword [esp]
fld dword [esp + 0xc8]
sub esp, 8
fstp qword [esp]
call fcn.0041e260
lea edx, [esp + 0xf8]
push eax
push edx
mov ecx, esi
call fcn.0043dfb0
push eax
mov ecx, edi
call fcn.004cebe0
fld dword [esp + 0x68]
lea ecx, [esp + 0x2c]
push ebx
lea edx, [esp + 0x38]
push ecx
push edx
push 0
fstp dword [esp + 0x1c]
fld dword [esp + 0x50]
push 0
mov eax, dword [esp + 0x78]
sub esp, 8
lea ecx, [esp + 0x14c]
fstp qword [esp]
fld dword [esp + 0x58]
sub esp, 8
mov dword [esp + 0xc8], eax
fchs
fstp qword [esp]
call fcn.0041e260
push eax
lea eax, [esp + 0x110]
push eax
mov ecx, esi
call fcn.0043dfb0
fld dword [esp + 0x18]
push eax
push 0
push 0
sub esp, 8
fstp qword [esp]
fld dword [esp + 0xc4]
fchs
sub esp, 8
fstp qword [esp]
lea ecx, [esp + 0x188]
call fcn.0041e260
lea ecx, [esp + 0xc8]
push eax
push ecx
mov ecx, esi
call fcn.0043dfb0
push eax
mov ecx, edi
call fcn.004cebe0
fld dword [esp + 0x68]
lea eax, [esp + 0x2c]
push ebx
lea ecx, [esp + 0x38]
push eax
fstp dword [esp + 0x14]
fld dword [esp + 0x48]
push ecx
push 0
push 0
mov edx, dword [esp + 0x78]
sub esp, 8
lea ecx, [esp + 0xe0]
fchs
fstp qword [esp]
fld dword [esp + 0x58]
sub esp, 8
mov dword [esp + 0xc4], edx
fchs
fstp qword [esp]
call fcn.0041e260
lea edx, [esp + 0xe8]
push eax
push edx
mov ecx, esi
call fcn.0043dfb0
fld dword [esp + 0x18]
push eax
push 0
push 0
lea ecx, [esp + 0x10c]
sub esp, 8
fchs
fstp qword [esp]
fld dword [esp + 0xc0]
sub esp, 8
fchs
fstp qword [esp]
call fcn.0041e260
push eax
lea eax, [esp + 0x120]
push eax
mov ecx, esi
call fcn.0043dfb0
push eax
mov ecx, edi
call fcn.004cebe0
fld dword [esp + 0x68]
lea edx, [esp + 0x2c]
push ebx
lea eax, [esp + 0x38]
push edx
fstp dword [esp + 0x14]
fld dword [esp + 0x48]
push eax
mov ecx, dword [esp + 0x70]
push 0
push 0
sub esp, 8
mov dword [esp + 0xa8], ecx
fchs
fstp qword [esp]
fld dword [esp + 0x58]
sub esp, 8
lea ecx, [esp + 0x148]
fstp qword [esp]
call fcn.0041e260
lea ecx, [esp + 0x148]
push eax
push ecx
mov ecx, esi
call fcn.0043dfb0
fld dword [esp + 0x18]
push eax
push 0
push 0
lea ecx, [esp + 0x16c]
sub esp, 8
fchs
fstp qword [esp]
fld dword [esp + 0xac]
sub esp, 8
fstp qword [esp]
call fcn.0041e260
lea edx, [esp + 0x17c]
push eax
push edx
mov ecx, esi
call fcn.0043dfb0
push eax
mov ecx, edi
call fcn.004cebe0
jmp 0x4c2528
mov dword [esp + 0x28], 1
fld qword [esp + 0x10]
fsub qword [esp + 0x48]
cmp word [esp + 0x28], 0
fstp qword [esp + 0x10]
je 0x4c21f2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8