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

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0xe8]
push ebx
mov dword [esp + 0x1c], ebx
call dword [0x53d2c8]
mov edi, dword [esp + 0x20]
mov byte [edi], 0
mov al, byte [esi + 0xc4]
cmp al, 3
je 0x4fea3a
cmp al, 1
jne 0x4fe9cf
xor eax, eax
mov al, byte [esi + 0xd0]
mov ecx, esi
push eax
call fcn.004fd570
mov byte [edi], al
push ebx
mov byte [esi + 0xc4], 2
call dword [0x53d2c4]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 4
cmp al, 2
jne 0x4fea27
mov ecx, dword [esi + 0xc8]
test ecx, ecx
je 0x4fea27
mov ebp, dword [esi + 0xcc]
push edi
lea eax, [esi + 0xcc]
push eax
lea eax, [esp + 0x28]
push eax
mov edx, 0x600
sub edx, ebp
push ecx
mov ecx, esi
mov dword [esp + 0x30], edx
call fcn.004fd520
test al, al
je 0x4fea27
mov ecx, dword [esi + 0xc8]
push ecx
call fcn.00439d00
add esp, 4
mov dword [esi + 0xc8], 0
mov byte [esi + 0xc4], 3
push ebx
call dword [0x53d2c4]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 4
mov al, byte [esi + 0xa4]
test al, al
je 0x4fea68
mov al, byte [esi + 0xb4]
test al, al
jne 0x4fea68
mov eax, dword [esi + 0xa8]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0xbc]
lea ecx, [eax + edx*2]
cmp dword [esi + 0xb0], ecx
ja 0x4fea27
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x14], edi
jne 0x4fec84
lea edx, [esp + 0x13]
push edx
mov ecx, esi
mov byte [esp + 0x17], 0
call fcn.004fde70
mov ecx, eax
cmp ecx, edi
mov dword [esi + 4], ecx
je 0x4fec84
mov dword [esi + 0x88], edi
mov dword [esi + 0x84], edi
mov ebp, dword [ecx + 0x3c]
mov ebx, dword [ecx + 0x48]
mov eax, dword [ecx + 0x44]
sub ebp, ebx
cmp eax, 0x40
jge 0x4feac5
mov byte [esi + 0x80], al
mov dword [esi + 0x88], 1
jmp 0x4feb2e
cmp eax, 0x140
jge 0x4feaeb
mov byte [esi + 0x80], 0
mov dl, byte [ecx + 0x44]
sub dl, 0x40
mov byte [esi + 0x81], dl
mov dword [esi + 0x88], 2
jmp 0x4feb2e
mov byte [esi + 0x80], 1
mov eax, dword [ecx + 0x44]
sub eax, 0x40
and eax, 0x800000ff
jns 0x4feb06
dec eax
or eax, 0xffffff00
inc eax
mov byte [esi + 0x81], al
mov eax, dword [ecx + 0x44]
sub eax, 0x40
cdq
and edx, 0xff
add eax, edx
sar eax, 8
mov byte [esi + 0x82], al
mov dword [esi + 0x88], 3
mov al, byte [esp + 0x13]
test al, al
mov dword [esi + 0x7c], 2
je 0x4fec7d
mov dword [ecx + 0x40], edi
mov edi, dword [esi + 4]
movzx ecx, byte [edi + 0x56]
movzx edx, byte [edi + 0x55]
movzx eax, byte [edi + 0x54]
shl ecx, 8
add ecx, edx
movzx edx, byte [edi + 0x53]
shl ecx, 8
add ecx, eax
mov eax, dword [edi + 0x38]
shl ecx, 8
add ecx, edx
cmp ecx, eax
jne 0x4fec1d
mov eax, dword [edi + 0x48]
test eax, eax
je 0x4fec1d
test ebp, ebp
jl 0x4fec1d
mov eax, dword [edi + 0x34]
movzx edx, byte [eax + 0xb]
xor ecx, ecx
mov ch, byte [eax + 9]
movzx ebx, byte [edi + 0x51]
mov cl, byte [eax + 0xa]
shl ecx, 8
or ecx, edx
xor edx, edx
mov dh, byte [edi + 0x4f]
mov dl, byte [edi + 0x50]
shl edx, 8
or edx, ebx
cmp edx, ecx
jne 0x4febd8
mov cl, byte [edi + 0x52]
cmp cl, byte [eax + 8]
jne 0x4febd8
mov ecx, edi
call fcn.004fd1c0
cmp eax, ebp
je 0x4fec7d
or byte [esi + 0x80], 0x80
push ebp
mov ecx, edi
call fcn.004fd220
jmp 0x4fec84
or byte [esi + 0x80], 0x40
mov edx, dword [edi + 0x34]
mov al, byte [edx + 8]
mov byte [edi + 0x52], al
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x34]
xor edx, edx
mov dh, byte [ecx + 9]
push ebp
mov dl, byte [ecx + 0xa]
movzx ecx, byte [ecx + 0xb]
shl edx, 8
or ecx, edx
mov edx, ecx
sar edx, 0x10
mov byte [eax + 0x4f], dl
mov edx, ecx
sar edx, 8
mov byte [eax + 0x50], dl
mov byte [eax + 0x51], cl
mov ecx, dword [esi + 4]
call fcn.004fd220
jmp 0x4fec84
mov eax, dword [edi + 0x34]
mov cl, byte [eax + 8]
mov byte [edi + 0x52], cl
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x38]
mov byte [ecx + 0x53], al
mov edx, eax
shr edx, 8
mov byte [ecx + 0x54], dl
mov edx, eax
shr edx, 0x10
mov byte [ecx + 0x55], dl
shr eax, 0x18
mov byte [ecx + 0x56], al
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x34]
xor edx, edx
mov dh, byte [ecx + 9]
mov dl, byte [ecx + 0xa]
movzx ecx, byte [ecx + 0xb]
shl edx, 8
or ecx, edx
mov edx, ecx
sar edx, 0x10
mov byte [eax + 0x4f], dl
mov edx, ecx
sar edx, 8
mov byte [eax + 0x50], dl
mov byte [eax + 0x51], cl
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x3c]
push eax
call fcn.004fd220
jmp 0x4fec84
or byte [esi + 0x80], 0xc0
mov eax, dword [esi + 4]
test eax, eax
je 0x4fecd9
cmp dword [esi + 0x7c], 2
jne 0x4fecd9
mov ecx, dword [esp + 0x20]
push ecx
lea edi, [esi + 0x88]
push edi
lea ebp, [esi + 0x84]
push ebp
lea ebx, [esi + 0x80]
push ebx
mov ecx, esi
call fcn.004fd520
test al, al
je 0x4fecd9
mov ecx, dword [esi + 4]
xor edx, edx
mov dl, byte [ebx]
mov dword [esi + 0x7c], 3
mov dword [ebp], 0
and edx, 0xc0
push edx
call fcn.004fd190
mov dword [edi], eax
mov eax, dword [esi + 4]
test eax, eax
mov ebx, 4
je 0x4fed3d
cmp dword [esi + 0x7c], 3
jne 0x4fed3d
mov ecx, dword [esp + 0x20]
push ecx
lea edi, [esi + 0x88]
push edi
lea ebp, [esi + 0x84]
push ebp
add eax, 0x4c
push eax
mov ecx, esi
call fcn.004fd520
test al, al
je 0x4fed3d
mov eax, dword [esi + 4]
xor edx, edx
add eax, 0x4c
mov dword [esi + 0x7c], ebx
mov dword [ebp], 0
mov dh, byte [eax]
xor ecx, ecx
mov dl, byte [eax + 1]
movzx eax, byte [eax + 2]
shl edx, 8
or edx, eax
cmp edx, 0xffffff
setne cl
dec ecx
and ecx, ebx
mov dword [edi], ecx
mov eax, dword [esi + 4]
test eax, eax
mov ebp, 5
je 0x4feda0
cmp dword [esi + 0x7c], ebx
jne 0x4feda0
mov edx, dword [esp + 0x20]
push edx
lea edi, [esi + 0x88]
push edi
lea ebx, [esi + 0x84]
push ebx
add eax, 0x57
push eax
mov ecx, esi
call fcn.004fd520
test al, al
je 0x4feda0
mov eax, dword [esi + 4]
xor ecx, ecx
mov dword [esi + 0x7c], ebp
mov ch, byte [eax + 0x4f]
movzx edx, byte [eax + 0x51]
mov cl, byte [eax + 0x50]
shl ecx, 8
or ecx, edx
sub ecx, dword [eax + 0x40]
mov eax, ecx
mov ecx, dword [esi + 0x90]
cmp ecx, eax
jge 0x4fed98
mov eax, ecx
mov dword [edi], eax
mov dword [ebx], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4fee84
cmp dword [esi + 0x7c], ebp
jne 0x4fee84
mov edx, dword [esp + 0x20]
mov ecx, dword [eax + 0x34]
mov ecx, dword [ecx + 0x14]
mov eax, dword [eax + 0x40]
push edx
lea edx, [esi + 0x88]
push edx
lea edi, [esi + 0x84]
add eax, ecx
push edi
push eax
mov ecx, esi
call fcn.004fd520
test al, al
je 0x4fee84
mov eax, dword [esi + 4]
mov ecx, dword [edi]
add dword [eax + 0x40], ecx
mov eax, dword [esi + 4]
movzx ecx, byte [eax + 0x51]
xor edx, edx
mov dh, byte [eax + 0x4f]
mov dl, byte [eax + 0x50]
shl edx, 8
or edx, ecx
cmp dword [eax + 0x40], edx
jne 0x4fee3c
mov edx, dword [eax + 0x3c]
mov dword [eax + 0x48], edx
mov eax, dword [esi + 4]
cmp dword [eax + 0x44], 2
jne 0x4fee29
mov eax, dword [eax + 0x34]
push eax
mov ecx, esi
call fcn.004fe1f0
mov edx, dword [esi + 4]
mov dword [edx + 0x34], 0
jmp 0x4fee7d
mov ecx, dword [eax + 0x34]
mov edx, dword [esi + 4]
mov dword [esp + 0x14], ecx
mov dword [edx + 0x34], 0
jmp 0x4fee7d
mov ecx, dword [eax + 0x34]
call fcn.004ff030
test eax, eax
jne 0x4fee7d
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x34]
movzx edx, byte [eax + 0xb]
xor ecx, ecx
mov ch, byte [eax + 9]
mov cl, byte [eax + 0xa]
shl ecx, 8
or ecx, edx
mov eax, ecx
cmp eax, 0x400
jl 0x4fee6d
mov eax, 0x400
cmp dword [esi + 0x90], eax
jge 0x4fee7d
push eax
mov ecx, esi
call fcn.004fdfa0
mov dword [esi + 4], 0
mov eax, dword [esp + 0x18]
push eax
call dword [0x53d2c4]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4