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

Disassembly:
sub esp, 0xb0
push ebx
push ebp
mov ebp, dword [ecx + 8]
push esi
push edi
mov dword [esp + 0x20], ecx
mov ebx, 0x49f7f0
add ebp, 0x14
mov al, byte [ebp - 0x14]
test al, al
mov al, byte [ebx - 8]
je 0x42cc99
test al, al
je 0x42cc9d
mov edi, dword [0x51c08c]
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 8]
xor eax, eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], eax
fild qword [esp + 0x24]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], eax
fisub dword [esp + 0x38]
mov eax, ebx
push 0x3f800000
sub esp, 0xc
mov ecx, dword [eax]
fidiv dword [esp + 0x98]
mov edx, dword [eax + 4]
mov dword [esp + 0x8c], ecx
lea ecx, [ebx + 0x44]
mov dword [esp + 0x90], edx
mov eax, dword [eax + 8]
mov edx, dword [ecx]
mov dword [esp + 0x94], eax
mov dword [esp + 0x80], edx
mov edx, ebx
mov eax, dword [ecx + 4]
mov dword [esp + 0x84], eax
mov eax, dword [edx]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x88], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x60], ecx
mov eax, ebx
mov edx, dword [edx + 8]
mov ecx, dword [eax]
mov dword [esp + 0x64], edx
mov dword [esp + 0x74], ecx
mov ecx, esp
mov edx, dword [eax + 4]
mov dword [esp + 0x78], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x7c], eax
fmul dword [0x4914c8]
fstp dword [esp + 0x20]
fld dword [esp + 0x5c]
fsub dword [esp + 0x80]
fld dword [esp + 0x60]
fsub dword [esp + 0x84]
fstp dword [esp + 0xb0]
fld dword [esp + 0x64]
fsub dword [esp + 0x88]
fstp dword [esp + 0xb4]
fld dword [esp + 0x74]
fsub st(1)
fstp dword [esp + 0x50]
mov esi, dword [esp + 0x50]
fstp st(0)
fld dword [esp + 0x78]
fsub dword [esp + 0xb0]
mov dword [ecx], esi
fstp dword [esp + 0x54]
fld dword [esp + 0x7c]
fsub dword [esp + 0xb4]
mov edx, dword [esp + 0x54]
mov dword [ecx + 4], edx
fstp dword [esp + 0x58]
mov eax, dword [esp + 0x58]
mov dword [ecx + 8], eax
lea ecx, [esp + 0xc4]
push ecx
call fcn.0044ebc0
fld dword [0x491518]
fsub dword [esp + 0x10]
push ecx
sub esp, 0xc
mov edx, esp
fstp dword [esp + 0xc]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov dword [edx], esi
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
lea edx, [esp + 0xb8]
push edx
call fcn.0044ebc0
mov ecx, dword [eax]
fld dword [esp + 0x7c]
mov edx, dword [eax + 4]
mov dword [esp + 0x58], ecx
fsub dword [esp + 0x58]
mov eax, dword [eax + 8]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], eax
lea ecx, [ebp - 0x10]
fstp dword [esp + 0x2c]
fld dword [esp + 0x80]
fsub dword [esp + 0x5c]
mov edx, dword [esp + 0x2c]
mov dword [ecx], edx
fstp dword [esp + 0x30]
fld dword [esp + 0x84]
fsub dword [esp + 0x60]
mov eax, dword [esp + 0x30]
mov dword [ecx + 4], eax
mov eax, edi
fstp dword [esp + 0x34]
mov edx, dword [esp + 0x34]
mov dword [ecx + 8], edx
mov edx, dword [ebp]
mov ecx, dword [ebp - 4]
sub eax, edx
cmp eax, ecx
jbe 0x42cc8b
mov eax, edi
xor edx, edx
shr eax, 7
mov ecx, 0x1b
mov dword [esp + 0x18], 0
div ecx
lea esi, [edx + edx*2]
mov edx, edi
and edx, 0x7f
mov dword [esp + 0x14], edx
fild qword [esp + 0x14]
shl esi, 2
fmul qword [0x491580]
fsubr dword [0x491434]
fmul dword [0x49143c]
fld dword [0x49143c]
fsub st(1)
fild dword [esi + 0x495940]
fmul st(2)
fild dword [esi + 0x49594c]
fmul st(2)
faddp st(1)
fmul dword [0x491438]
call fcn.0044eaa0
fild dword [esi + 0x495944]
mov dword [esp + 0x90], eax
fmul st(2)
fild dword [esi + 0x495950]
fmul st(2)
faddp st(1)
fmul dword [0x491438]
call fcn.0044eaa0
fild dword [esi + 0x495948]
mov dword [esp + 0x94], eax
fmul st(2)
fild dword [esi + 0x495954]
fmul st(2)
faddp st(1)
fmul dword [0x491438]
call fcn.0044eaa0
mov edx, dword [esp + 0x90]
sub esp, 0xc
mov ecx, esp
sub esp, 0xc
fstp st(0)
mov dword [ecx], edx
mov edx, dword [esp + 0xac]
fstp st(0)
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x48]
mov dword [ecx + 8], eax
mov ecx, dword [esp + 0x44]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x38]
lea eax, [ebx - 8]
push eax
call fcn.0042d1f0
mov dword [ebp], edi
mov ecx, dword [ebp + 4]
mov eax, dword [ebp + 8]
sub edi, ecx
cmp edi, eax
jbe 0x42cca1
jmp 0x42cc9d
test al, al
jne 0x42cca1
mov byte [ebp - 0x14], 0
add ebx, 0x120
add ebp, 0x24
cmp ebx, 0x4a09f0
jne 0x42c9b9
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x10], 0x40
mov edx, dword [esp + 0x20]
mov esi, dword [edx]
add esi, eax
mov al, byte [esi + 0x18]
test al, al
je 0x42ce17
push esi
mov ecx, edx
call fcn.0042b2a0
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
call fcn.00449cf0
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
call fcn.0044eaa0
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fcom dword [esi + 8]
fnstsw ax
test ah, 0x41
jne 0x42cd33
fstp dword [esi + 8]
fld dword [esi + 0xc]
fmul dword [0x491720]
fstp dword [esi + 0xc]
fld dword [esi + 0x10]
fmul dword [0x491720]
fstp dword [esi + 0x10]
fld dword [esi + 0x14]
fmul qword [0x491770]
fstp dword [esi + 0x14]
jmp 0x42cd35
fstp st(0)
fld dword [esi]
fadd dword [esi + 0xc]
lea edi, [esi + 0xc]
sub esp, 0xc
mov edx, edi
mov ecx, esp
fstp dword [esi]
fld dword [esi + 0x10]
fadd dword [esi + 4]
fstp dword [esi + 4]
fld dword [esi + 8]
fadd dword [esi + 0x14]
fstp dword [esi + 8]
fld dword [esi + 0x14]
fsub dword [0x49176c]
fstp dword [esi + 0x14]
mov ebx, dword [edx]
mov dword [ecx], ebx
mov ebp, dword [edx + 4]
mov dword [ecx + 4], ebp
mov eax, dword [edx + 8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x28], 0
mov edx, dword [esp + 0x28]
mov dword [ecx + 8], edx
call fcn.0044eb20
fcomp dword [0x491798]
fnstsw ax
test ah, 0x41
je 0x42cdb7
fld dword [esi + 0x14]
fabs
fcomp qword [0x491760]
xor ecx, ecx
mov dword [edi], ecx
mov dword [esi + 0x10], ecx
fnstsw ax
test ah, 1
je 0x42cdb7
mov dword [esi + 0x14], ecx
mov byte [esi + 0x18], cl
jmp 0x42ce17
sub esp, 0xc
mov ecx, dword [esp + 0x28]
mov eax, esp
lea edx, [esp + 0xb4]
push edx
mov dword [eax], ebx
mov dword [eax + 4], ebp
mov dword [eax + 8], ecx
call fcn.0044f1c0
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
fld dword [esp + 0x14]
fmul dword [0x491758]
mov edx, dword [eax + 4]
mov dword [esp + 0x18], edx
fsubr dword [edi]
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], eax
fstp dword [edi]
fld dword [esp + 0x18]
fmul dword [0x491758]
fsubr dword [esi + 0x10]
fstp dword [esi + 0x10]
fld dword [esp + 0x1c]
fmul dword [0x491758]
fsubr dword [esi + 0x14]
fstp dword [esi + 0x14]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x10]
add eax, 0x3c
dec ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x10], ecx
jne 0x42ccc4
cmp eax, 0xf000
jne 0x42ccb8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret