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

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0xac
movsx eax, word [ecx + 4]
mov ebp, eax
test eax, eax
jle 0x4fcde8
cmp eax, dword [0x5b508c]
jg 0x4fcde8
sub eax, 1
imul eax, dword [0x5b5090]
mov edx, dword [0x5b5099]
mov eax, dword [edx + eax]
mov dword [esp + 0x24], eax
movsx ecx, word [ebx + 0x298]
sub ecx, 1
js 0x4fce23
mov eax, dword [0x5b5050]
mov esi, dword [0x5b504c]
mov dword [esp + 0x28], ecx
mov edx, ecx
mov dword [esp + 0x1c], 0
mov edi, dword [0x5b5059]
mov dword [esp + 0x20], eax
mov ecx, eax
lea esi, [esi]
movsx eax, word [ebx + edx*2 + 0x29c]
test eax, eax
jle 0x4fce60
cmp eax, esi
jg 0x4fce60
sub eax, 1
imul eax, ecx
mov eax, dword [edi + eax]
cmp byte [eax + 4], 5
jne 0x4fcb01
cmp bp, word [eax + 0xf]
jne 0x4fcb01
cmp byte [eax + 0x34], 0
jne 0x4fccf3
cmp byte [eax + 0x145], 0
jne 0x4fccf3
add dword [esp + 0x1c], 1
sub edx, 1
jae 0x4fcab8
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
test eax, eax
je 0x4fcd00
mov eax, dword [0x5b522c]
fldz
fstp qword [esp + 0x80]
mov dword [esp + 0x1c], eax
mov eax, dword [0x5b5239]
mov dword [esp + 0x28], eax
mov eax, dword [0x5b5230]
mov dword [esp + 0x2c], eax
lea esi, [esi]
movsx eax, word [ebx + ecx*2 + 0x29c]
test eax, eax
jle 0x4fce57
cmp eax, esi
jg 0x4fce57
sub eax, 1
imul eax, dword [esp + 0x20]
mov eax, dword [edi + eax]
cmp bp, word [eax + 0xf]
jne 0x4fcb73
cmp byte [eax + 4], 5
je 0x4fcd28
sub ecx, 1
jae 0x4fcb40
mov edi, dword [esp + 0x24]
movsx ax, byte [edi + 0x739]
mov word [esp + 0x1c], ax
fild word [esp + 0x1c]
fstp qword [esp + 0x48]
movsx ax, byte [edi + 0x73c]
mov word [esp + 0x1c], ax
fild word [esp + 0x1c]
fstp qword [esp + 0x50]
fld dword [0x5aa444]
fsub qword [esp + 0x50]
fstp qword [esp + 0x58]
fld qword [esp + 0x48]
fadd qword [esp + 0x58]
fstp qword [esp + 0x90]
fild word [ebx + 0x5e]
fstp qword [esp + 0x60]
fld dword [0x5aa448]
fdivr qword [esp + 0x90]
fstp qword [esp + 0x68]
fld dword [0x5aa44c]
fmul qword [esp + 0x68]
fstp qword [esp + 0x70]
fld dword [0x5aa450]
fsub qword [esp + 0x70]
fstp qword [esp + 0x78]
fld qword [esp + 0x60]
fdiv qword [esp + 0x78]
fstp qword [esp + 0x98]
fld qword [esp + 0x80]
fld qword [esp + 0x98]
fcompi st(1)
fstp st(0)
jbe 0x4fcc2c
mov eax, dword [0x5b4640]
add eax, 0xb4
cmp dword [0x5b4644], eax
jg 0x4fcc95
mov ecx, ebx
call fcn.004fc590
mov ecx, ebx
mov esi, eax
call fcn.004fc660
cmp esi, eax
jle 0x4fccf3
movsx edx, word [ebx + 4]
test edx, edx
jle 0x4fce1c
cmp edx, dword [0x5b508c]
jg 0x4fce1c
sub edx, 1
imul edx, dword [0x5b5090]
mov ecx, dword [0x5b5099]
mov ecx, dword [ecx + edx]
mov edi, dword [ecx + 0x5a0]
test esi, esi
jle 0x4fccb9
test eax, eax
jne 0x4fccb9
cmp edi, 0xf
jle 0x4fcdf5
mov esi, 1
cmp byte [ebx + 0x12], 0
je 0x4fce00
mov dword [esp + 4], 0
mov ecx, ebx
mov dword [esp], 5
call fcn.004fc7c0
sub esp, 8
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, esi
lea ebp, [edi - 7]
sub edx, eax
imul eax, edx, 0x64
cdq
idiv esi
movsx edx, byte [ecx + 0x739]
mov esi, 0x64
sub esi, eax
mov eax, 0xc8
sub eax, edx
mov edx, 0x51eb851f
imul esi, eax
mov eax, esi
sar esi, 0x1f
imul edx
sar edx, 6
sub edx, esi
cmp ebp, edx
jg 0x4fcc7d
add esp, 0xac
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
cmp byte [ebx + 0x12], 0
je 0x4fcb16
mov eax, dword [esp + 0x24]
cmp word [eax + 0x6e5], 2
jle 0x4fcc95
jmp 0x4fcb16
movsx edx, byte [eax + 0x4a]
test dl, dl
jle 0x4fcb73
mov dword [esp + 0x34], ebx
lea edx, [eax + edx*2]
fldz
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0x3c], edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x30], ecx
mov ecx, edx
fstp qword [esp + 0x88]
nop
movsx edx, word [eax + 0x79]
test edx, edx
jle 0x4fce69
cmp edx, ebx
jg 0x4fce69
sub edx, 1
imul edx, edi
mov edx, dword [esi + edx]
cmp bp, word [edx + 4]
jne 0x4fcd93
fld1
fadd qword [esp + 0x88]
fstp qword [esp + 0x88]
add eax, 2
cmp ecx, eax
jne 0x4fcd60
fldz
fld qword [esp + 0x88]
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
fcompi st(1)
fstp st(0)
jbe 0x4fcb73
fld1
fdiv qword [esp + 0x88]
fstp qword [esp + 0x40]
fld qword [esp + 0x80]
fadd qword [esp + 0x40]
fstp qword [esp + 0x80]
jmp 0x4fcb73
mov dword [esp + 0x24], 0
jmp 0x4fca7d
xor esi, esi
cmp edi, 7
jg 0x4fcc8b
movzx eax, byte [ebx + 0x27]
mov dword [esp], eax
call fcn.004072f0
sub esp, 4
or eax, esi
jne 0x4fcc95
jmp 0x4fccf3
xor ecx, ecx
jmp 0x4fcc6f
cmp byte [ebx + 0x12], 0
jne 0x4fce37
fldz
fstp qword [esp + 0x80]
jmp 0x4fcb78
mov eax, dword [esp + 0x24]
cmp word [eax + 0x6e5], 2
jle 0x4fcc95
fldz
fstp qword [esp + 0x80]
jmp 0x4fcb78
movzx eax, word [0xf]
ud2
movzx eax, byte [4]
ud2
movzx eax, word [4]
ud2