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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.00481600
fst qword [esp + 0x74]
fcomp qword [0x584ab0]
add esp, 4
fnstsw ax
test ah, 0x41
je 0x4c6348
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.00481600
fst qword [esp + 0x64]
fcomp qword [0x584ab0]
add esp, 4
fnstsw ax
test ah, 0x41
je 0x4c6371
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x4c6642
jmp 0x4c637e
mov esi, dword [ebp + 8]
test ebx, ebx
je 0x4c6642
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
test ah, 0x40
je 0x4c63a7
mov edi, esi
and ah, 0xbf
mov dword [ebp + 8], 0
mov dword [esp + 0x1c], edi
mov esi, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x4c63bd
push esi
call fcn.004dc000
add esp, 4
test eax, eax
jne 0x4c6365
mov eax, dword [esi + 0x34]
mov dword [esp + 0x1c], eax
mov edi, eax
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx]
test ah, 0x40
je 0x4c63d4
and ah, 0xbf
mov dword [esp + 0x14], ebx
mov dword [ecx], eax
xor ebx, ebx
jmp 0x4c63e8
push ebx
call fcn.004dc000
add esp, 4
test eax, eax
jne 0x4c6365
mov ecx, dword [ebx + 0x34]
mov dword [esp + 0x14], ecx
test esi, esi
jne 0x4c63fd
test ebx, ebx
jne 0x4c640c
mov ebx, dword [esp + 0x14]
mov dword [ebp + 8], edi
test edi, edi
mov esi, edi
je 0x4c640c
push esi
call fcn.00481600
fstp qword [esp + 0x24]
add esp, 4
jmp 0x4c641c
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
test ebx, ebx
je 0x4c642f
push ebx
call fcn.00481600
fstp qword [esp + 0x2c]
add esp, 4
jmp 0x4c643f
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
fild dword [ebp + 0x10]
fld qword [esp + 0x20]
fdiv qword [esp + 0x70]
fmul st(1)
call fcn.00547c92
fld qword [esp + 0x28]
fdiv qword [esp + 0x60]
mov edi, eax
fmul st(1)
call fcn.00547c92
cmp edi, eax
mov dword [esp + 0x10], edi
fstp st(0)
jg 0x4c6470
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
mov eax, 4
cmp ecx, eax
jge 0x4c6481
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], 0
test eax, eax
fsub qword [0x550f30]
fdivr qword [0x550f30]
fstp qword [esp + 0x78]
jle 0x4c6615
fild dword [esp + 0x18]
test esi, esi
fmul qword [esp + 0x78]
fstp qword [esp + 0x68]
je 0x4c64d9
fld qword [esp + 0x68]
fmul qword [esp + 0x20]
lea edx, [esp + 0x48]
push 0
push edx
sub esp, 8
fstp qword [esp]
push esi
call fcn.00489db0
add esp, 0x14
jmp 0x4c6522
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ecx
mov edx, dword [eax + 0xc]
mov ecx, dword [edx + 0x18]
mov edx, dword [edx + 0x1c]
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x54], edx
push ecx
lea edx, [esp + 0x4c]
push eax
push edx
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
call fcn.004465c0
add esp, 0xc
test ebx, ebx
je 0x4c6546
fld qword [esp + 0x68]
fmul qword [esp + 0x28]
lea eax, [esp + 0x30]
push 0
push eax
sub esp, 8
fstp qword [esp]
push ebx
call fcn.00489db0
add esp, 0x14
jmp 0x4c658f
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
mov edx, dword [eax + 0xc]
mov ecx, dword [edx + 0x18]
mov edx, dword [edx + 0x1c]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x3c], edx
push ecx
lea edx, [esp + 0x34]
push eax
push edx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
call fcn.004465c0
add esp, 0xc
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x4c65d9
mov eax, dword [ebp + 0x14]
lea ecx, [esp + 0x48]
push eax
lea edx, [esp + 0x84]
push ecx
push edx
call fcn.00440210
add esp, 0xc
test eax, eax
je 0x4c6365
mov eax, dword [ebp + 0x18]
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x9c]
push ecx
push edx
call fcn.00440210
add esp, 0xc
test eax, eax
je 0x4c6365
mov eax, dword [esp + 0x18]
mov ecx, 6
lea esi, [esp + 0x48]
lea edi, [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
mov ecx, 6
lea esi, [esp + 0x30]
lea edi, [esp + 0x98]
inc eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x10]
mov esi, dword [ebp + 8]
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x4c64a9
test esi, esi
je 0x4c6622
push esi
call fcn.004888a0
add esp, 4
test ebx, ebx
je 0x4c662f
push ebx
call fcn.004888a0
add esp, 4
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
test eax, eax
mov dword [ebp + 8], eax
jne 0x4c637b
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret