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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52b5f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push ebp
xor ebx, ebx
xor eax, eax
xor edx, edx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x30], 0x53ae08
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], edx
mov ecx, dword [esi + 0x80]
xor ebp, ebp
cmp ecx, ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
jle 0x4cb905
mov eax, dword [esi + 0x7c]
mov edi, dword [eax + ebp*4]
mov eax, dword [edi + 0x18]
cmp eax, 3
jle 0x4cb8f2
mov ecx, dword [edi + 0x24]
cmp ecx, ebx
je 0x4cb8f2
cmp dword [ecx + 8], 7
jl 0x4cb8f2
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx + eax*4 - 4]
mov ecx, dword [eax + 8]
cmp dword [ecx + 0xc0], 3
jne 0x4cb8f2
push edi
push edx
lea ecx, [esp + 0x38]
call fcn.004a6b80
fld qword [edi + 0x58]
fadd qword [esp + 0x1c]
mov edx, dword [esp + 0x38]
fstp qword [esp + 0x1c]
mov eax, dword [esi + 0x80]
inc ebp
cmp ebp, eax
jl 0x4cb8aa
cmp edx, ebx
jne 0x4cb943
mov eax, dword [esp + 0x34]
fld qword [esi + 0x20]
fdiv qword [esi + 0x10]
mov dword [esp + 0x30], 0x53ae08
fstp qword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0x60], 1
je 0x4cb92c
push eax
call fcn.0051aee4
add esp, 4
fld qword [esp + 0x1c]
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4cc160
push 4
push edx
mov edx, dword [esp + 0x40]
push edx
nop
call fcn.0061f4fc
xor ecx, ecx
xor ebp, ebp
add esp, 0x10
mov dword [esp + 0x44], 0x53ae08
mov dword [esp + 0x48], ecx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], ebp
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov byte [esp + 0x60], 2
mov dword [esp + 0x14], ebp
mov eax, dword [edx + eax*4 - 4]
mov dword [esp + 0x18], ebp
fld qword [eax + 0x60]
fld qword [esi + 0x10]
mov eax, dword [esi + 0x80]
fsub st(1)
test eax, eax
fstp qword [esp + 0x24]
fstp st(0)
jle 0x4cba25
mov ecx, dword [esi + 0x7c]
mov edi, dword [ecx + ebx*4]
cmp dword [edi + 0x18], 3
jle 0x4cb9e3
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4cb9e3
mov eax, dword [eax + 8]
cmp eax, 0xa
je 0x4cb9c6
cmp eax, 0xc
jne 0x4cb9e3
mov edx, dword [edi + 0x14]
mov eax, dword [edx]
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 0xc0]
cmp eax, 3
je 0x4cba16
cmp eax, 5
je 0x4cba16
cmp eax, 4
je 0x4cba16
fld qword [edi + 0x60]
fcomp qword [esp + 0x24]
fnstsw ax
test ah, 0x41
jne 0x4cba16
lea edx, [ebp + 1]
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x4c]
call fcn.004ecdd0
mov eax, dword [esp + 0x48]
mov dword [eax + ebp*4], edi
mov ebp, dword [esp + 0x4c]
fld qword [edi + 0x68]
fadd qword [esp + 0x14]
fstp qword [esp + 0x14]
mov eax, dword [esi + 0x80]
inc ebx
cmp ebx, eax
jl 0x4cb9a6
mov ecx, dword [esp + 0x48]
fld qword [esp + 0x14]
fdiv qword [esi + 0x10]
fstp qword [esp + 0x14]
fld qword [esi + 0x20]
fdiv qword [esi + 0x10]
fld qword [esp + 0x14]
fadd qword [esp + 0x1c]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x4cbaa2
fstp qword [esp + 0x24]
mov esi, 0x53ae08
mov dword [esp + 0x44], esi
test ecx, ecx
mov byte [esp + 0x60], 3
je 0x4cba66
push ecx
call fcn.0051aee4
add esp, 4
mov dword [esp + 0x44], 0x53138c
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x34]
mov dword [esp + 0x60], 4
test eax, eax
je 0x4cba8b
push eax
call fcn.0051aee4
add esp, 4
fld qword [esp + 0x24]
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x80]
xor ecx, ecx
xor eax, eax
cmp edx, ecx
fstp st(0)
jle 0x4cbac7
mov edx, dword [esi + 0x7c]
inc eax
mov edx, dword [edx + eax*4 - 4]
mov dword [edx + 0x78], ecx
mov edx, dword [esi + 0x80]
cmp eax, edx
jl 0x4cbab2
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.004cbc50
test al, al
je 0x4cbb5e
mov edi, dword [esi + 0x80]
dec edi
js 0x4cbb2c
mov ebx, dword [0x6233f8]
mov ebp, 1
mov ecx, dword [esi + 0x7c]
mov ecx, dword [ecx + edi*4]
cmp dword [ecx + 0x78], ebp
jne 0x4cbb29
test ecx, ecx
je 0x4cbb03
mov edx, dword [ecx]
push ebp
call dword [edx]
mov eax, dword [esi + 0x80]
sub eax, edi
dec eax
je 0x4cbb23
mov ecx, dword [esi + 0x7c]
shl eax, 2
push eax
lea edx, [ecx + edi*4 + 4]
lea eax, [ecx + edi*4]
push edx
push eax
call ebx
add esp, 0xc
dec dword [esi + 0x80]
dec edi
jns 0x4cbaef
fld qword [0x531cf0]
mov ecx, dword [esp + 0x38]
fst qword [esp + 0x1c]
test ecx, ecx
jle 0x4cbbe8
mov eax, dword [esp + 0x34]
mov edx, dword [eax]
add eax, 4
dec ecx
fadd qword [edx + 0x58]
jne 0x4cbb46
fstp qword [esp + 0x1c]
mov ecx, esi
call fcn.004cb7d0
fstp st(0)
fld qword [esp + 0x14]
fadd qword [esp + 0x1c]
fld qword [esi + 0x20]
fdiv qword [esi + 0x10]
fstp qword [esp + 0x1c]
fcom qword [esp + 0x1c]
fnstsw ax
test ah, 1
je 0x4cbbef
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov esi, 0x53ae08
mov dword [esp + 0x1c], eax
fstp st(0)
mov dword [esp + 0x20], ecx
mov dword [esp + 0x44], esi
mov eax, dword [esp + 0x48]
mov byte [esp + 0x60], 5
test eax, eax
je 0x4cbbac
push eax
call fcn.0051aee4
add esp, 4
mov dword [esp + 0x44], 0x53138c
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x34]
mov dword [esp + 0x60], 6
test eax, eax
je 0x4cbbd1
push eax
call fcn.0051aee4
add esp, 4
fld qword [esp + 0x1c]
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
fstp st(0)
jmp 0x4cbb55
fstp qword [esp + 0x24]
mov esi, 0x53ae08
mov dword [esp + 0x44], esi
mov eax, dword [esp + 0x48]
mov byte [esp + 0x60], 7
test eax, eax
je 0x4cbc12
push eax
call fcn.0051aee4
add esp, 4
mov dword [esp + 0x44], 0x53138c
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x34]
mov dword [esp + 0x60], 8
test eax, eax
je 0x4cbc37
push eax
call fcn.0051aee4
add esp, 4
mov ecx, dword [esp + 0x58]
pop edi
fld qword [esp + 0x20]
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret