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

Disassembly:
sub esp, 0x60
push ebp
mov ebp, dword [esp + 0x6c]
cmp dword [ebp], 0
jle 0x4f7ba0
mov eax, dword [ebp + 0xc]
test byte [eax], 1
jne 0x4f7ba0
mov eax, 0xfffffffd
pop ebp
add esp, 0x60
ret
lea ecx, [esp + 4]
push 0
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x64]
push ecx
lea eax, [esp + 0x58]
push edx
push eax
call fcn.004f9bb0
add esp, 0x1c
test eax, eax
jne 0x4f7e84
push esi
lea ecx, [esp + 0x48]
push edi
push ecx
push ebp
call fcn.004f8920
mov esi, eax
add esp, 8
test esi, esi
jne 0x4f7e58
mov edi, dword [esp + 0x70]
lea edx, [esp + 0x5c]
push edx
push edi
call fcn.004f8690
mov esi, eax
add esp, 8
test esi, esi
jne 0x4f7e58
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x4c]
push eax
push ecx
call fcn.004f8920
mov esi, eax
add esp, 8
test esi, esi
jne 0x4f7e58
lea edx, [esp + 0x1c]
lea eax, [esp + 0x5c]
push edx
push eax
call fcn.004f8920
mov esi, eax
add esp, 8
test esi, esi
jne 0x4f7e58
lea ecx, [esp + 0xc]
push 1
push ecx
call fcn.004fb300
add esp, 8
mov eax, dword [esp + 0x2c]
test eax, eax
jle 0x4f7cd1
mov edx, dword [esp + 0x38]
test byte [edx], 1
jne 0x4f7cd1
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.004f8ed0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4f7e58
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x4f7cb0
mov edx, dword [esp + 0x48]
mov eax, dword [edx]
and eax, 1
cmp al, 1
jne 0x4f7cb0
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x4c]
push ecx
lea eax, [esp + 0x40]
push edx
push eax
call fcn.004fb400
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4f7e58
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.004f8ed0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4f7e58
jmp 0x4f7c4d
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x4f7d56
mov eax, dword [esp + 0x28]
test byte [eax], 1
jne 0x4f7d56
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.004f8ed0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4f7e58
mov eax, dword [esp + 0xc]
test eax, eax
jle 0x4f7d35
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
and ecx, 1
cmp cl, 1
jne 0x4f7d35
lea edx, [esp + 0xc]
lea eax, [esp + 0x4c]
push edx
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.004fb400
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4f7e58
lea edx, [esp + 0xc]
lea eax, [esp + 0xc]
push edx
push eax
call fcn.004f8ed0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4f7e58
jmp 0x4f7cd1
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.004f8850
add esp, 8
cmp eax, 0xffffffff
je 0x4f7db1
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x30]
push ecx
push edx
call fcn.004fb400
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4f7e58
lea eax, [esp + 0x3c]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x40]
push ecx
push edx
call fcn.004fb400
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4f7e58
jmp 0x4f7def
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.004fb400
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4f7e58
lea eax, [esp + 0xc]
lea ecx, [esp + 0x3c]
push eax
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.004fb400
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4f7e58
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x4f7c4d
lea eax, [esp + 0x1c]
push 1
push eax
call fcn.004f8890
add esp, 8
test eax, eax
je 0x4f7e15
mov esi, 0xfffffffd
jmp 0x4f7e58
mov eax, dword [esp + 0x14]
mov edi, dword [edi + 8]
cmp eax, 1
jne 0x4f7e41
lea ecx, [esp + 0xc]
lea edx, [esp + 0xc]
push ecx
push ebp
push edx
call fcn.004f86c0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4f7e58
cmp dword [esp + 0x14], 1
je 0x4f7e21
mov esi, dword [esp + 0x78]
lea eax, [esp + 0xc]
push esi
push eax
call fcn.004f9350
add esp, 8
mov dword [esi + 8], edi
xor esi, esi
lea ecx, [esp + 0xc]
push 0
lea edx, [esp + 0x40]
push ecx
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x38]
push eax
lea edx, [esp + 0x6c]
push ecx
lea eax, [esp + 0x60]
push edx
push eax
call fcn.004f8820
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x60
ret