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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
fldz
push ebx
fld st(0)
push esi
fld dword [ebp + 0x10]
push edi
fucom st(1)
mov dword [esp + 0x10], 0
fnstsw ax
fstp st(1)
fld dword [ebp + 0x14]
test ah, 0x44
jp 0x4c8b4a
fucom st(2)
fnstsw ax
fstp st(2)
test ah, 0x44
jp 0x4c8b4c
mov ebx, dword [ebp + 8]
fstp st(0)
fstp st(0)
fld dword [ebx + 0x7c]
fstp dword [esp + 0x44]
fld dword [ebx + 0x84]
jmp 0x4c8b53
fstp st(2)
mov ebx, dword [ebp + 8]
fstp dword [esp + 0x44]
fstp dword [esp + 0x4c]
fld dword [esp + 0x44]
fld st(0)
fld dword [ebp + 0x18]
fld st(0)
fsubp st(2)
fld qword [0x574120]
fdiv st(2), st(0)
fxch st(2)
call fcn.005250c0
fld st(0)
faddp st(3)
mov edi, eax
fxch st(2)
mov dword [esp + 0x20], edi
fdiv st(1)
call fcn.005250c0
fld dword [esp + 0x4c]
fld st(0)
mov dword [esp + 0x18], eax
fsub st(3)
fdiv st(2)
call fcn.005250c0
faddp st(2)
mov esi, eax
fdivp st(1)
call fcn.005250c0
mov edx, eax
mov dword [esp + 0x1c], edx
test edi, edi
jge 0x4c8bb6
mov dword [esp + 0x20], 0
mov ecx, dword [ebx + 0x8c]
mov eax, dword [ecx + 0x2c]
cmp dword [esp + 0x18], eax
jl 0x4c8bca
dec eax
mov dword [esp + 0x18], eax
test esi, esi
jge 0x4c8bd0
xor esi, esi
mov eax, dword [ecx + 0x30]
cmp edx, eax
jl 0x4c8bde
dec eax
mov dword [esp + 0x1c], eax
mov edx, eax
cmp esi, edx
mov edi, esi
mov dword [esp + 0x14], esi
jg 0x4c8dcf
lea esp, [esp]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
cmp ecx, eax
jg 0x4c8dc2
mov esi, ecx
imul esi, esi, 0x124
sub eax, ecx
inc eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x8c]
mov ecx, dword [eax + 0x34]
mov edx, dword [ecx + edi*4]
lea eax, [edx + esi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebx + 0x8c]
mov edx, dword [ecx + 0x34]
mov eax, dword [edx + edi*4]
mov edx, dword [eax + esi + 0x2c]
lea ecx, [eax + esi + 0x2c]
mov eax, dword [edx + 0x78]
test eax, eax
je 0x4c8c4a
lea edi, [eax - 0x74]
jmp 0x4c8c4c
xor edi, edi
mov dword [ecx + 4], edi
cmp edi, edx
je 0x4c8d8a
test edi, edi
je 0x4c8d8a
nop
cmp edi, ebx
je 0x4c8d55
cmp dword [edi + 0x70], 0
je 0x4c8ce9
cmp dword [edi + 0x6c], 0
jne 0x4c8c78
xor eax, eax
jmp 0x4c8cef
mov eax, dword [edi + 0x68]
mov esi, dword [edi + 0x6c]
add esi, eax
cmp eax, esi
jbe 0x4c8c89
call fcn.0051b1ad
mov ebx, dword [edi + 0x50]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], esi
test ebx, ebx
jne 0x4c8cb4
call fcn.0051b1ad
xor eax, eax
xor ecx, ecx
mov ecx, dword [ecx + 0x1c]
add ecx, dword [eax + 0x18]
dec esi
cmp esi, ecx
ja 0x4c8cc1
test ebx, ebx
je 0x4c8cba
mov ebx, dword [ebx]
jmp 0x4c8cbc
mov eax, dword [ebx]
mov ecx, eax
jmp 0x4c8ca1
xor ebx, ebx
cmp esi, dword [ebx + 0x18]
jae 0x4c8cc6
call fcn.0051b1ad
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], esi
call fcn.00425b90
mov eax, dword [eax]
mov eax, dword [eax + 0x48]
mov ebx, dword [ebp + 8]
mov esi, dword [esp + 0x24]
jmp 0x4c8cef
mov eax, dword [edi + 0x1a8]
cmp eax, 2
je 0x4c8d55
fld dword [edi + 0x7c]
push ecx
fsub dword [esp + 0x48]
fstp dword [esp + 0x34]
fld dword [edi + 0x84]
fsub dword [esp + 0x50]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fld dword [esp + 0x34]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fstp dword [esp]
call fcn.0041b8a0
fld dword [ebp + 0x18]
add esp, 4
fcompp
fnstsw ax
test ah, 1
jne 0x4c8d55
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4c8d51
mov ecx, dword [edi + 0xd4]
movzx edx, word [ecx]
cmp eax, edx
jne 0x4c8d55
inc dword [esp + 0x10]
mov eax, dword [ebx + 0x8c]
mov ecx, dword [eax + 0x34]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + edx*4]
mov ecx, dword [eax + esi + 0x30]
mov ecx, dword [ecx + 0x78]
lea eax, [eax + esi + 0x2c]
test ecx, ecx
je 0x4c8d79
lea edi, [ecx - 0x74]
jmp 0x4c8d7b
xor edi, edi
mov dword [eax + 4], edi
cmp edi, dword [eax]
je 0x4c8d8a
test edi, edi
jne 0x4c8c60
mov edx, dword [ebx + 0x8c]
mov eax, dword [edx + 0x34]
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + ecx*4]
lea eax, [edx + esi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [esp + 0x14]
add esi, 0x124
sub dword [esp + 0x28], 1
mov dword [esp + 0x24], esi
jne 0x4c8c13
mov edx, dword [esp + 0x1c]
inc edi
cmp edi, edx
mov dword [esp + 0x14], edi
jle 0x4c8bf0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14