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

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x1cc]
test al, 2
lea ebx, [esi + 0x1cc]
mov ecx, 0
setne cl
mov edx, 0
push edi
inc ecx
test al, 1
setne dl
inc edx
imul ecx, edx
imul ecx, dword [esi + 0x1d0]
shl ecx, 1
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x214]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov edi, dword [esi + 0xc]
test edi, edi
lea ebp, [esi + 0xc]
je 0x4fe756
mov eax, dword [edi + 0x2c]
test eax, eax
jne 0x4fe723
lea ebp, [edi + 0x28]
mov edi, dword [ebp]
test edi, edi
jne 0x4fe710
jmp 0x4fe756
mov ecx, dword [esp + 0x10]
cmp dword [edi + 0x30], ecx
jne 0x4fe735
mov dword [edi + 0x2c], 0
jmp 0x4fe764
mov ecx, dword [esi + 0x214]
mov eax, dword [ebp]
mov edx, dword [ecx]
push eax
call dword [edx + 0x24]
mov eax, dword [ebp]
mov ecx, dword [eax + 0x28]
push eax
mov dword [ebp], ecx
call fcn.0043f0a0
add esp, 4
mov edx, dword [esp + 0x10]
push edx
mov ecx, esi
call fcn.004fde60
mov edi, eax
mov ecx, dword [esi + 0x214]
mov eax, dword [ecx]
call dword [eax + 0x2c]
test edi, edi
je 0x4feba8
mov eax, dword [esi + 0x1d0]
mov ecx, dword [esi + 0x1e8]
mov ebp, dword [ecx]
lea edx, [edi + 0x40]
push eax
push edx
call dword [ebp + 4]
test eax, eax
mov dword [esp + 0x10], eax
jle 0x4febaa
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4fe8d7
mov ecx, dword [eax + 0x50]
mov ebp, dword [eax + 0x54]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 0xd0]
mov edx, dword [ecx + 0xe0]
add eax, 0x658
mov dword [esp + 0x14], eax
mov eax, 0x64
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], eax
xor eax, eax
cmp ebp, eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
je 0x4fe8d7
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4fe808
push eax
lea ecx, [esp + 0x20]
push ecx
mov edx, ecx
push edx
call fcn.0047e190
add esp, 0xc
jmp 0x4fe88d
mov eax, dword [esp + 0x38]
movzx edx, byte [eax + 0x12]
xor ecx, ecx
mov ch, byte [eax + 0x10]
mov cl, byte [eax + 0x11]
shl ecx, 8
or ecx, edx
cmp ecx, 0xffffff
jne 0x4fe84d
mov ebp, dword [eax + 4]
mov eax, dword [eax + 0x14]
sub ebp, 0x14
add eax, ebp
push eax
lea ecx, [esp + 0x20]
push ecx
mov edx, ecx
push edx
call fcn.0047e190
mov ecx, dword [esp + 0x44]
add esp, 0xc
push ebp
call fcn.0051c290
jmp 0x4fe88d
cmp ebp, dword [esp + 0x34]
je 0x4fe88d
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 0x78]
cmp eax, 0x62
je 0x4fe868
cmp eax, 6
je 0x4fe868
cmp eax, 0x61
jne 0x4fe884
mov ecx, dword [ebp + 0x20]
call fcn.00499d40
add eax, 0x34
push eax
lea ecx, [esp + 0x20]
push ecx
mov edx, ecx
push edx
call fcn.0047e190
add esp, 0xc
mov ebp, dword [ebp + 8]
cmp ebp, dword [esp + 0x34]
jne 0x4fe853
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
mov edx, ecx
push edx
call fcn.0047e190
mov eax, dword [ebx]
mov ebp, dword [ebx + 4]
mov edx, eax
lea ecx, [esp + 0x28]
push ecx
push eax
sar edx, 2
and edx, 3
mov ecx, dword [edx*4 + 0x5db958]
sar eax, 2
shl ebp, cl
and eax, 3
mov ecx, dword [eax*4 + 0x5db958]
lea eax, [edi + 0x40]
sar ebp, cl
push ebp
push eax
call fcn.0047e280
add esp, 0x1c
mov ecx, dword [esi + 0x214]
mov eax, dword [ecx]
call dword [eax + 0x28]
fild dword [esi]
lea ebp, [esi + 0x10]
mov ecx, ebp
fstp qword [esp + 0x14]
call fcn.00500ef0
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
fmul qword [str.333333]
fcomp qword [esp + 0x14]
fnstsw ax
test ah, 5
jp 0x4fea48
test byte [ebx], 1
mov dword [esp + 0x34], 0xa
je 0x4fe976
mov ecx, ebp
mov dword [esp + 0x34], 0x80
call fcn.00500ef0
mov ecx, dword [esi]
add eax, 0x4b0
cmp ecx, eax
jle 0x4fe940
mov dword [esp + 0x34], 0x10
jmp 0x4fe976
mov ecx, ebp
call fcn.00500ef0
mov ecx, dword [esi]
add eax, 0x258
cmp ecx, eax
jle 0x4fe95c
mov dword [esp + 0x34], 0x20
jmp 0x4fe976
mov ecx, ebp
call fcn.00500ef0
mov ecx, dword [esi]
add eax, 0x12c
cmp ecx, eax
jle 0x4fe976
mov dword [esp + 0x34], 0x40
mov eax, dword [esi + 0x218]
test eax, eax
jne 0x4fe9bb
test byte [ebx], 1
jne 0x4fe99c
push 0x20
call fcn.0043f080
add esp, 4
test eax, eax
je 0x4fe9b3
mov ecx, eax
call fcn.0050b240
jmp 0x4fe9b5
push 4
call fcn.0043f080
add esp, 4
test eax, eax
je 0x4fe9b3
mov ecx, eax
call fcn.0050b190
jmp 0x4fe9b5
xor eax, eax
mov dword [esi + 0x218], eax
mov ecx, dword [esi + 0x218]
xor ebp, ebp
test ecx, ecx
je 0x4fe9dd
mov eax, dword [esp + 0x34]
mov edx, dword [ecx]
push ebx
push eax
mov eax, dword [esp + 0x18]
push eax
lea eax, [edi + 0x24]
push eax
call dword [edx + 4]
mov ebp, eax
push ebx
call fcn.004fdd40
xor edx, edx
mov ecx, eax
mov eax, ebp
imul eax, eax, 0x3e8
div ecx
mov ecx, dword [esi]
add esp, 4
mov edx, 0
add ecx, eax
mov dword [esi], ecx
mov ebx, dword [ebx]
test bl, 2
setne dl
mov ecx, 0
inc edx
test bl, 1
setne cl
inc ecx
imul edx, ecx
mov ecx, dword [esp + 0x38]
imul edx, ebp
mov dword [edi + 0x34], edx
movzx ebx, byte [ecx + 0xd]
xor edx, edx
mov dh, byte [ecx + 0xf]
mov dl, byte [ecx + 0xc]
movzx ecx, byte [ecx + 0xe]
mov dword [edi + 0x3c], eax
shl edx, 8
or edx, ebx
shl edx, 8
or edx, ecx
add edx, eax
mov dword [edi + 0x38], edx
jmp 0x4feb29
push ebx
call fcn.004fdd40
mov ecx, eax
mov eax, dword [esp + 0x14]
imul eax, eax, 0x3e8
xor edx, edx
div ecx
add esp, 4
mov edx, 0
mov ebp, eax
add dword [esi], ebp
mov eax, dword [ebx]
test al, 2
setne dl
inc edx
test al, 1
mov eax, 0
setne al
xor ecx, ecx
inc eax
imul edx, eax
imul edx, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
mov dword [edi + 0x34], edx
mov ch, byte [eax + 0xf]
movzx edx, byte [eax + 0xd]
mov cl, byte [eax + 0xc]
movzx eax, byte [eax + 0xe]
mov dword [edi + 0x3c], ebp
shl ecx, 8
or ecx, edx
shl ecx, 8
or ecx, eax
add ecx, ebp
mov dword [edi + 0x38], ecx
mov ecx, dword [esi + 0x218]
test ecx, ecx
je 0x4feb29
mov ebp, dword [esp + 0x10]
mov edx, dword [ecx]
push ebx
push 0
push ebp
lea eax, [edi + 0x24]
push eax
call dword [edx + 4]
cmp eax, ebp
jle 0x4feb0f
mov ebp, eax
mov eax, dword [esp + 0x10]
push ebx
sub ebp, eax
call fcn.004fdd40
mov ecx, eax
mov eax, ebp
imul eax, eax, 0x3e8
xor edx, edx
div ecx
mov edx, dword [esi]
add esp, 4
add edx, eax
mov dword [esi], edx
mov ecx, dword [edi + 0x38]
mov edx, dword [edi + 0x3c]
add ecx, eax
mov dword [edi + 0x38], ecx
add edx, eax
mov ecx, ebx
mov dword [edi + 0x3c], edx
call fcn.0044ddb0
imul eax, ebp
add dword [edi + 0x34], eax
mov ecx, dword [esi + 0x218]
test ecx, ecx
je 0x4feb1f
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [esi + 0x218], 0
mov ecx, dword [esi + 0x214]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov eax, dword [edi + 0x3c]
test eax, eax
jbe 0x4feb47
mov ecx, dword [esi + 0x214]
mov edx, dword [ecx]
push edi
call dword [edx + 0x1c]
mov ecx, dword [esi + 0x214]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov eax, dword [esi + 4]
test eax, eax
je 0x4feb8d
lea ecx, [esi + 0x10]
call fcn.00500ef0
cmp dword [esi], eax
jl 0x4feb8d
mov ecx, dword [esi + 0x214]
mov edx, dword [ecx]
call dword [edx + 0x2c]
mov ecx, dword [esi + 0x214]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esi + 0x214]
mov edx, dword [ecx]
call dword [edx + 0x28]
mov dword [esi + 4], 0
mov esi, dword [esi + 0x214]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc