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

Disassembly:
mov eax, 0x4f27e3
call fcn.004bff58
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ecx + 0x70], eax
push edi
mov esi, ecx
push 0x3c
call fcn.004d9562
mov dword [ebp - 0x10], eax
add esp, 4
mov dword [ebp - 4], 0
mov edi, eax
mov eax, 0
test edi, edi
je 0x4f320e
mov ecx, edi
call fcn.004f4df4
lea ebx, [esi + 0x114]
mov dword [ebp - 4], 0xffffffff
mov dword [ebx], eax
mov eax, dword [eax]
mov dword [eax + 0x3c], 0x7009
mov eax, dword [ebx]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x5c]
mov edi, 1
or byte [edx + 0x14], 0x40
mov eax, dword [ebx]
push 0x40
mov ecx, dword [eax]
mov edx, dword [ecx + 0x5c]
and byte [edx + 0x15], 0xfe
mov eax, dword [ebx]
mov dword [eax + 8], edi
call fcn.004d9562
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
test eax, eax
je 0x4f3263
mov ecx, eax
call fcn.004f537c
jmp 0x4f3265
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [esi + 0x70]
mov dword [esi + 0x74], eax
mov edi, dword [ecx]
push dword [ebx]
call dword [edi + 0xfc]
test eax, eax
jne 0x4f3295
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x5c]
lea ecx, [esi + 0x78]
push dword [edx + 0x10]
call fcn.004dd5e0
mov ecx, dword [esi + 0x74]
mov eax, dword [ebx]
mov edx, dword [eax]
mov edi, dword [edx + 0x5c]
push dword [edi + 0x10]
mov edi, dword [ecx]
call dword [edi + 0x14]
mov ecx, dword [esi + 0x74]
mov edi, 1
mov dword [ecx + 0xc], edi
lea ecx, [esi + 0x78]
mov dword [esi + 0x84], edi
mov eax, dword [esi + 0x78]
call dword [eax + 0x24]
push dword [esi + 0x1c]
call dword [0x51fe44]
mov ecx, dword [esi + 0x74]
push eax
mov dword [ebp - 0x10], eax
mov eax, dword [ecx]
call dword [eax + 0x18]
push dword [ebx]
mov ecx, dword [esi + 0x70]
push dword [esi + 0x74]
mov eax, dword [ecx]
call dword [eax + 0x100]
mov ecx, dword [esi + 0x74]
mov eax, dword [ecx]
call dword [eax + 0x20]
push dword [ebp - 0x10]
push dword [esi + 0x1c]
call dword [0x51fe48]
mov eax, dword [esi + 0x78]
push 0xffffffffffffffff
lea ecx, [esi + 0x78]
call dword [eax + 0x28]
push 0x58
push dword [esi + 0x80]
call dword [0x51f9b8]
push 0x5a
mov dword [esi + 0x104], eax
push dword [esi + 0x80]
call dword [0x51f9b8]
lea ecx, [esi + 0xf8]
mov dword [esi + 0x108], eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x18]
mov dword [ecx], edx
test edx, edx
jne 0x4f3354
mov dword [ecx], edi
jmp 0x4f3360
mov eax, dword [esi + 0xf0]
cmp eax, edx
jae 0x4f3360
mov dword [ecx], eax
mov eax, dword [ecx]
mov edi, 1
mov dword [esi + 0xe8], eax
mov dword [ebp - 0x14], edi
mov eax, 0x4fdf50
mov ecx, esi
push eax
push eax
push edi
push dword [ebp - 0x14]
push edi
call fcn.004df7ef
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 0x5c]
mov ax, word [edx + 0x1e]
cmp ax, 0x8000
jae 0x4f33b5
movzx ecx, ax
movzx eax, word [edx + 0x1c]
mov edx, ecx
sub edx, eax
cmp edx, 0x7fff
ja 0x4f33b5
push 0
push ecx
push eax
mov ecx, esi
push edi
call fcn.004d76d2
jmp 0x4f33c2
push 0
push 1
push dword [esi + 0x1c]
call dword [0x51fe90]
push 1
mov eax, dword [ebx]
mov ecx, esi
push dword [eax + 0x14]
call fcn.004f420b
mov eax, 1
jmp 0x4f3282