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

Disassembly:
sub esp, 0x10
cmp dword [0x7cf900], 0
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x1c]
je 0x4fee7b
cmp dword [0x7cf8f0], 0
jne 0x4fee7b
cmp dword [0x81688c], 0
jne 0x4fe9a5
call fcn.004e8580
cmp dword [0x80f6f8], 0
je 0x4fe9de
cmp dword [0x7cf900], 0
je 0x4fe9de
call fcn.004ea2c0
cmp dword [0x80f6f8], 0
mov eax, 1
mov dword [0x8168b4], eax
je 0x4fe9d4
mov dword [0x8168b0], eax
mov dword [0x80f6f8], 0
push esi
push edi
push 0x20
push 0
push 0
call fcn.004f7cd0
mov edi, dword [0x8e80b0]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
call fcn.004eb0f0
movzx ecx, byte [0x7cfae2]
imul ecx, dword [esp + 0x20]
mov eax, 0x80808081
mul ecx
mov ecx, dword [0x7cfae0]
shr edx, 7
mov esi, edx
movzx edx, ch
imul edx, dword [esp + 0x24]
mov eax, 0x80808081
mul edx
shr edx, 7
shl esi, 8
or esi, edx
movzx edx, cl
imul edx, dword [esp + 0x28]
mov eax, 0x80808081
mul edx
shl esi, 8
shr edx, 7
or esi, edx
and ecx, 0xff000000
add esp, 0x10
or esi, ecx
cmp ebp, ebx
jg 0x4fea6f
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x30]
jle 0x4fea89
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov eax, ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
cmp dword [0x8168b0], 0
fild dword [esp + 0x24]
fstp dword [esp + 0x18]
fild dword [esp + 0x28]
fstp dword [esp + 0x14]
fild dword [esp + 0x2c]
fstp dword [esp + 0x10]
fild dword [esp + 0x30]
fstp dword [esp + 0x1c]
jne 0x4feabb
cmp dword [0x8168b4], 0
je 0x4feacc
push 0
mov eax, 1
xor ecx, ecx
call fcn.004f5fe0
add esp, 4
mov ebx, dword [0x7cfac0]
cmp ebx, 1
mov eax, dword [0x7cfacc]
mov ecx, dword [0x7cfac4]
je 0x4feb02
cmp eax, 4
jne 0x4feb02
mov edx, dword [0x7cfac8]
lea edx, [edx + ebx*2]
add edx, ebx
lea ebp, [ecx + 0x18]
cmp ebp, dword [edx*4 + 0x6a2948]
jl 0x4fec2d
test ecx, ecx
je 0x4fec11
mov edx, dword [0x7cfac8]
lea edx, [edx + ebx*2]
add edx, ebx
mov edx, dword [edx*4 + 0x6a2960]
cmp dword [0x8168e0], edx
je 0x4feb5d
mov eax, dword [0x7cf900]
mov ecx, dword [eax]
push edx
mov edx, dword [ecx + 0x164]
push eax
call edx
mov ebx, dword [0x7cfac0]
mov eax, dword [0x7cfac8]
lea ecx, [eax + ebx*2]
mov eax, dword [0x7cfacc]
add ecx, ebx
mov edx, dword [ecx*4 + 0x6a2960]
mov ecx, dword [0x7cfac4]
mov dword [0x8168e0], edx
test ebx, ebx
je 0x4feb7c
mov edx, 0x6cf538
call fcn.004ea160
mov eax, dword [0x7cfacc]
mov ecx, dword [0x7cfac4]
mov ebx, dword [0x7cfac0]
cmp eax, 4
jne 0x4feb91
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
jmp 0x4febc8
cmp eax, 2
jne 0x4feb9f
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
jmp 0x4febc8
cmp eax, 6
jne 0x4feba9
lea eax, [ecx - 2]
jmp 0x4febc8
cmp eax, 5
jne 0x4febb3
lea eax, [ecx - 2]
jmp 0x4febc8
cmp eax, 3
jne 0x4febbd
lea eax, [ecx - 1]
jmp 0x4febc8
sub eax, 1
neg eax
sbb eax, eax
not eax
and eax, ecx
mov ecx, dword [0x7cfac8]
mov edx, dword [0x7cf900]
lea ecx, [ecx + ebx*2]
add ecx, ebx
mov ebx, dword [edx]
add ecx, ecx
mov ebp, dword [ecx + ecx + 0x6a2978]
add ecx, ecx
mov ecx, dword [ecx + 0x7cfaa8]
push ebp
push ecx
mov ecx, dword [ebx + 0x14c]
push eax
mov eax, dword [0x7cfacc]
push eax
push edx
call ecx
cmp dword [0x7cfac0], 0
je 0x4fec11
mov edx, 0x8e8170
call fcn.004ea160
mov edx, dword [0x7cfac8]
mov dword [0x7cfac4], 0
mov eax, dword [edx*4 + 0x7cfaa8]
mov dword [0x7cfaf4], eax
mov eax, dword [0x7cfaf4]
fld dword [esp + 0x18]
mov dword [0x7cfac0], 0
mov dword [0x7cfacc], 4
fst dword [eax]
fld dword [esp + 0x14]
mov dword [eax + 0x1dc], esi
fst dword [eax + 4]
mov dword [eax + 0x1c8], esi
fld dword [esp + 0x10]
mov dword [eax + 0x1b4], esi
fst dword [eax + 0x14]
mov dword [eax + 0x1a0], esi
fxch st(1)
mov dword [eax + 0x18c], esi
fst dword [eax + 0x18]
mov dword [eax + 0x178], esi
fxch st(2)
mov dword [eax + 0x164], esi
fst dword [eax + 0x28]
mov dword [eax + 0x150], esi
fld st(2)
mov dword [eax + 0x13c], esi
fld1
mov dword [eax + 0x128], esi
fadd st(1), st(0)
mov dword [eax + 0x114], esi
fxch st(1)
mov dword [eax + 0x100], esi
mov dword [eax + 0xec], esi
mov dword [eax + 0xd8], esi
fstp dword [esp + 0x18]
mov dword [eax + 0xc4], esi
fld dword [esp + 0x18]
mov dword [eax + 0xb0], esi
fst dword [eax + 0x2c]
mov dword [eax + 0x9c], esi
fst dword [eax + 0x40]
mov dword [eax + 0x88], esi
fst dword [eax + 0x54]
mov dword [eax + 0x74], esi
fxch st(3)
mov dword [eax + 0x60], esi
fst dword [eax + 0x3c]
mov dword [eax + 0x4c], esi
fst dword [eax + 0x64]
mov dword [eax + 0x38], esi
fxch st(2)
mov dword [eax + 0x24], esi
fst dword [eax + 0x50]
mov dword [eax + 0x10], esi
fxch st(4)
mov dword [eax + 0x1d4], edi
fstp dword [eax + 0x68]
mov dword [eax + 0x1c0], edi
fld st(1)
mov dword [eax + 0x1ac], edi
fsub st(1)
mov dword [eax + 0x198], edi
mov dword [eax + 0x184], edi
mov dword [eax + 0x170], edi
mov dword [eax + 0x15c], edi
fstp dword [esp + 0x18]
mov dword [eax + 0x148], edi
mov dword [eax + 0x134], edi
mov dword [eax + 0x120], edi
mov dword [eax + 0x10c], edi
mov dword [eax + 0xf8], edi
mov dword [eax + 0xe4], edi
mov dword [eax + 0xd0], edi
mov dword [eax + 0xbc], edi
mov dword [eax + 0xa8], edi
mov dword [eax + 0x94], edi
mov dword [eax + 0x80], edi
mov dword [eax + 0x6c], edi
mov dword [eax + 0x58], edi
mov dword [eax + 0x44], edi
mov dword [eax + 0x30], edi
mov dword [eax + 0x1c], edi
mov dword [eax + 8], edi
add eax, 0x78
fld dword [esp + 0x18]
add eax, 0x78
fst dword [eax - 0x78]
add eax, 0x78
fst dword [eax - 0xc8]
pop edi
fxch st(3)
pop esi
fst dword [eax - 0xec]
pop ebp
fst dword [eax - 0xd8]
pop ebx
fxch st(2)
fst dword [eax - 0xdc]
fld dword [esp + 0xc]
fst dword [eax - 0xc4]
fst dword [eax - 0xb0]
fst dword [eax - 0x9c]
fxch st(1)
fst dword [eax - 0xb4]
fstp dword [eax - 0x8c]
fxch st(3)
fst dword [eax - 0xa0]
fxch st(2)
fst dword [eax - 0x88]
fxch st(4)
fst dword [eax - 0x78]
fxch st(4)
fst dword [eax - 0x74]
fld st(4)
fadd st(2)
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fst dword [eax - 0x64]
fst dword [eax - 0x3c]
fst dword [eax - 0x14]
fxch st(1)
fst dword [eax - 0x60]
fstp dword [eax - 0x10]
fxch st(4)
fst dword [eax - 0x50]
fstp dword [eax - 0x28]
fxch st(2)
fst dword [eax - 0x4c]
fst dword [eax - 0x38]
fst dword [eax - 0x24]
fxch st(3)
fst dword [eax]
fld st(3)
fsubrp st(3)
fxch st(2)
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fst dword [eax + 4]
fst dword [eax + 0x18]
fstp dword [eax + 0x68]
fst dword [eax + 0x14]
fst dword [eax + 0x3c]
fstp dword [eax + 0x64]
fst dword [eax + 0x28]
fstp dword [eax + 0x50]
fst dword [eax + 0x2c]
fst dword [eax + 0x40]
fstp dword [eax + 0x54]
add dword [0x7cfaf4], 0x1e0
add dword [0x7cfac4], 0x18
xor eax, eax
add esp, 0x10
ret
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret