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

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
push edi
xor edi, edi
cmp esi, edi
jne 0x4f8cda
pop edi
mov eax, 0xffffff9a
pop esi
add esp, 0xc
ret
cmp dword [esi + 0x2c], edi
je 0x4f8ccf
cmp dword [esi + 0x80], 8
push ebx
push ebp
mov dword [esi + 0x34], edi
jne 0x4f8d36
cmp dword [esi + 0x84], edi
jne 0x4f8d36
lea ebx, [esi + 0x30]
cmp dword [esi + 0x40], 0
jne 0x4f8d13
call fcn.004f8ae0
lea eax, [esi + 0x88]
mov dword [esi + 0x40], 0x4000
mov dword [esi + 0x3c], eax
mov ebp, dword [esi + 0x44]
push 4
push ebx
call fcn.004fbe90
mov ecx, dword [esi + 0x44]
sub ecx, ebp
add dword [esi + 0x6c], ecx
mov edi, eax
add esp, 8
test edi, edi
je 0x4f8cf8
cmp edi, 1
jne 0x4f8d36
xor edi, edi
cmp dword [esi + 0x6c], 0
jbe 0x4f8d4c
test edi, edi
jne 0x4f8d4c
call fcn.004f8ae0
cmp eax, 0xffffffff
jne 0x4f8d4c
or edi, eax
cmp dword [esi + 0x80], 8
jne 0x4f8d73
cmp dword [esi + 0x84], 0
jne 0x4f8d8f
lea edx, [esi + 0x30]
push edx
call fcn.004fc670
add esp, 4
mov edi, eax
mov dword [esi + 0x68], 0
cmp dword [esi + 0x84], 0
jne 0x4f8d8f
mov eax, dword [esi + 0x408c]
mov edx, dword [esi + 0x38]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edx
jmp 0x4f8d97
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov ecx, dword [esi + 0x74]
mov ebx, dword [esi + 0x40a4]
add ebx, dword [esi + 0x44]
mov ebp, eax
add ecx, 0x10
mov byte [ecx], al
shr ebp, 8
mov eax, ebp
mov byte [ecx + 1], al
shr eax, 8
mov byte [ecx + 2], al
shr eax, 8
mov byte [ecx + 3], al
shr eax, 8
je 0x4f8dc9
mov dword [ecx], 0xffffffff
mov ecx, dword [esi + 0x74]
add ecx, 0x14
mov eax, ebx
shr eax, 8
mov dword [esp + 0x10], eax
mov byte [ecx + 1], al
shr eax, 8
mov byte [ecx + 2], al
shr eax, 8
mov byte [ecx + 3], al
shr eax, 8
mov byte [ecx], bl
je 0x4f8df4
mov dword [ecx], 0xffffffff
cmp dword [esi + 0x5c], 1
jne 0x4f8e07
mov eax, dword [esi + 0x74]
add eax, 0x24
mov byte [eax], 1
mov byte [eax + 1], 0
mov ecx, dword [esi + 0x74]
add ecx, 0x18
mov eax, edx
shr eax, 8
mov dword [esp + 0x14], eax
mov byte [ecx + 1], al
shr eax, 8
mov byte [ecx + 2], al
shr eax, 8
mov byte [ecx + 3], al
shr eax, 8
mov byte [ecx], dl
je 0x4f8e32
mov dword [ecx], 0xffffffff
test edi, edi
jne 0x4f8e4c
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x74]
push eax
push ecx
lea edx, [esi + 0x24]
push edx
call fcn.004f82f0
add esp, 0xc
mov edi, eax
mov eax, dword [esi + 0x74]
push eax
call fcn.00418550
add esp, 4
test edi, edi
jne 0x4f8f7d
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0xc]
push ecx
push edx
call eax
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 0x20]
push edi
add ecx, 0xe
push ecx
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x1c]
push edx
push eax
call ecx
add esp, 0x18
or edi, 0xffffffff
test eax, eax
jne 0x4f8f5f
mov dl, byte [esp + 0x28]
mov ecx, dword [esi + 0x20]
mov eax, ebp
mov byte [esp + 0x21], al
shr eax, 8
mov byte [esp + 0x22], al
shr eax, 8
mov byte [esp + 0x23], al
shr eax, 8
mov byte [esp + 0x20], dl
je 0x4f8ebc
mov dword [esp + 0x20], edi
mov edx, dword [esi + 8]
push 4
lea eax, [esp + 0x24]
push eax
push ecx
mov ecx, dword [esi + 0x1c]
push ecx
call edx
add esp, 0x10
cmp eax, 4
jne 0x4f8f5f
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x20]
mov byte [esp + 0x21], al
shr eax, 8
mov byte [esp + 0x22], al
shr eax, 8
mov byte [esp + 0x23], al
shr eax, 8
mov byte [esp + 0x20], bl
je 0x4f8eff
mov dword [esp + 0x20], edi
mov edx, dword [esi + 8]
push 4
lea eax, [esp + 0x24]
push eax
push ecx
mov ecx, dword [esi + 0x1c]
push ecx
call edx
add esp, 0x10
cmp eax, 4
jne 0x4f8f5f
mov al, byte [esp + 0x24]
mov ecx, dword [esi + 0x20]
mov byte [esp + 0x20], al
mov eax, dword [esp + 0x14]
mov byte [esp + 0x21], al
shr eax, 8
mov byte [esp + 0x22], al
shr eax, 8
mov byte [esp + 0x23], al
shr eax, 8
je 0x4f8f42
mov dword [esp + 0x20], edi
mov eax, dword [esi + 0x1c]
push 4
lea edx, [esp + 0x24]
push edx
push ecx
mov ecx, dword [esi + 8]
push eax
call ecx
mov edi, eax
sub edi, 4
add esp, 0x10
neg edi
sbb edi, edi
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
push 0
push edx
mov edx, dword [esi + 0x10]
push eax
push ecx
call edx
add esp, 0x10
test eax, eax
je 0x4f8f7d
or edi, 0xffffffff
add dword [esi + 0x40b0], 1
pop ebp
pop ebx
mov eax, edi
pop edi
mov dword [esi + 0x2c], 0
pop esi
add esp, 0xc
ret