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

Disassembly:
sub esp, 0x40
push ebp
xor ebp, ebp
push edi
mov edi, dword [esp + 0x50]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
cmp edi, 1
jge 0x4fc8d7
pop edi
mov eax, 0x10b
pop ebp
add esp, 0x40
ret
mov ecx, dword [esp + 0x4c]
xor eax, eax
push ebx
push esi
mov esi, dword [esp + 0x5c]
cmp byte [ecx], al
sete al
mov dword [esp + 0x10], eax
cmp edi, dword [esi + 8]
jle 0x4fc921
mov ebx, dword [esi]
call fcn.00561250
test eax, eax
jne 0x4fca42
test edi, edi
sets al
dec eax
and eax, edi
cdq
push edx
push eax
push ebx
call fcn.0053fff0
add esp, 0xc
test eax, eax
je 0x4fca42
mov dword [esi + 8], edi
mov dword [esi], eax
push edi
push dword [esp + 0x58]
lea eax, [esp + 0x28]
mov dword [esi + 4], ebp
push eax
call fcn.005087d0
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x58], ebx
test ebx, ebx
jne 0x4fc9eb
cmp dword [esp + 0x20], 0
je 0x4fc9e7
cmp dword [esi + 4], 0
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
jne 0x4fc9a6
push dword [esp + 0x64]
push dword [esp + 0x64]
push eax
push edi
call fcn.004fbf80
add esp, 0x10
test eax, eax
js 0x4fc9cc
cmp dword [esp + 0x10], 0
jne 0x4fc97e
test eax, eax
je 0x4fc9cc
mov eax, dword [esp + 0x54]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
push ebx
movsx eax, byte [eax]
push ebp
push eax
push esi
call fcn.004fbe10
mov eax, dword [esp + 0x78]
add esp, 0x10
mov dword [eax], ebp
mov dword [eax + 4], ebx
mov eax, dword [esp + 0x3c]
push dword [esp + 0x48]
push dword [esp + 0x48]
push eax
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.004ed4f0
mov ebx, eax
add esp, 0x18
mov dword [esp + 0x58], ebx
test ebx, ebx
jne 0x4fca4f
lea eax, [esp + 0x20]
push eax
call fcn.00508830
mov ebx, eax
add esp, 4
mov dword [esp + 0x58], ebx
test ebx, ebx
je 0x4fc944
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x38]
cmp dword [esi + 4], 0
jne 0x4fca69
mov eax, dword [esp + 0x54]
mov ecx, dword [esi]
mov edx, dword [esp + 0x34]
mov al, byte [eax]
mov byte [ecx], al
mov eax, dword [esp + 0x30]
or eax, edx
je 0x4fca55
mov eax, dword [esi]
mov ebx, dword [esp + 0x30]
inc eax
mov dword [esp + 0x10], eax
mov ecx, eax
mov al, bl
or al, 0x80
shrd ebx, edx, 7
mov byte [ecx], al
inc ecx
shr edx, 7
mov eax, ebx
or eax, edx
jne 0x4fca18
and byte [ecx - 1], 0x7f
sub ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x58]
inc ecx
mov edx, dword [esp + 0x34]
mov dword [esi + 4], ecx
jmp 0x4fca5c
pop esi
pop ebx
pop edi
mov eax, 7
pop ebp
add esp, 0x40
ret
mov ebp, dword [esp + 0x14]
jmp 0x4fc9ef
mov dword [esi + 4], 1
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x30]
mov dword [ecx], eax
mov dword [ecx + 4], edx
test edi, edi
je 0x4fcac2
cmp dword [0x5d72d8], 0
je 0x4fcab8
mov eax, dword [0x5e0280]
test eax, eax
je 0x4fca89
push eax
call dword [0x5d7328]
add esp, 4
push edi
call dword [0x5d7304]
sub dword [0x5e0208], eax
dec dword [0x5e022c]
push edi
call dword [0x5d72fc]
mov eax, dword [0x5e0280]
add esp, 8
test eax, eax
je 0x4fcac7
push eax
call dword [0x5d7330]
jmp 0x4fcabf
push edi
call dword [0x5d72fc]
add esp, 4
mov eax, dword [0x5e0280]
test ebp, ebp
je 0x4fcb26
cmp dword [0x5d72d8], 0
je 0x4fcb1c
test eax, eax
je 0x4fcae2
push eax
call dword [0x5d7328]
add esp, 4
push ebp
call dword [0x5d7304]
sub dword [0x5e0208], eax
dec dword [0x5e022c]
push ebp
call dword [0x5d72fc]
mov eax, dword [0x5e0280]
add esp, 8
test eax, eax
je 0x4fcb26
push eax
call dword [0x5d7330]
add esp, 4
mov eax, ebx
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x40
ret
push ebp
call dword [0x5d72fc]
add esp, 4
pop esi
mov eax, ebx
pop ebx
pop edi
pop ebp
add esp, 0x40
ret