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

Disassembly:
sub esp, 0x74
mov eax, dword [0x571134]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x78]
push ebx
push ebp
push esi
mov ebx, dword [eax]
push edi
mov dword [esp + 0x10], ebx
test byte [ebx + 0x28], 0x20
jne 0x4f0810
mov ecx, dword [ebx + 4]
mov dword [esp + 0x1c], ecx
mov esi, dword [ecx + 0x18]
cmp byte [esi + 0x2b], 1
je 0x4f0810
test byte [ecx + 0x30], 3
jne 0x4f0810
mov ebp, dword [eax + 8]
lea edx, [ebx + 0x50]
mov ecx, dword [ecx + 0x34]
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov word [ebp + 0x32], ax
mov dword [esp + 0x30], eax
or eax, 0xffffffff
mov word [esp + 0x68], ax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [ebp + 0x2c], 0
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov word [esp + 0x3c], 0x100
mov dword [esp + 0x38], 0x82
mov dword [esp + 0x40], ecx
mov byte [esp + 0x3e], 1
call fcn.004f0340
mov edx, eax
add esp, 4
mov edi, 1
test edx, edx
je 0x4f068f
nop
mov ecx, dword [edx + 0x20]
or ecx, dword [edx + 0x24]
je 0x4f071b
lea eax, [esp + 0x20]
push eax
call fcn.004f0340
mov edx, eax
add esp, 4
test edx, edx
jne 0x4f0670
mov esi, dword [esi + 8]
test esi, esi
je 0x4f07a6
nop word [eax + eax]
cmp byte [esi + 0x36], 0
je 0x4f0751
cmp dword [esi + 0x24], 0
jne 0x4f0751
movzx eax, word [esi + 0x32]
cmp eax, 3
ja 0x4f0751
mov ebx, dword [esi + 0x38]
xor ecx, ecx
shr ebx, 3
xor edi, edi
and ebx, 1
shl ebx, 7
or ebx, 2
cmp cx, ax
jae 0x4f0749
nop dword [eax]
push esi
push ebx
push edi
push dword [esp + 0x20]
lea eax, [esp + 0x30]
push dword [esp + 0x28]
push eax
call fcn.004f0230
add esp, 0x18
test eax, eax
je 0x4f0749
nop dword [eax]
mov ecx, dword [eax + 0x20]
or ecx, dword [eax + 0x24]
je 0x4f073a
lea eax, [esp + 0x20]
push eax
call fcn.004f0340
add esp, 4
test eax, eax
jne 0x4f0700
jmp 0x4f0749
mov eax, dword [ebp + 0x38]
mov dword [ebp + 0x2c], 0x1101
mov dword [eax], edx
mov eax, 0x21
mov word [ebp + 0x30], di
mov word [ebp + 0x18], di
mov word [ebp + 0x14], ax
jmp 0x4f07a6
mov ecx, dword [ebp + 0x38]
mov dword [ecx + edi*4], eax
inc edi
movzx eax, word [esi + 0x32]
cmp edi, eax
jl 0x4f06e0
movzx eax, word [esi + 0x32]
cmp edi, eax
je 0x4f075e
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x4f06a0
jmp 0x4f079d
mov dword [ebp + 0x2c], 0x1201
test byte [esi + 0x38], 0x20
jne 0x4f077f
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x40]
mov eax, dword [eax + 0x44]
and ecx, dword [esi + 0x40]
and eax, dword [esi + 0x44]
or ecx, eax
jne 0x4f0786
mov dword [ebp + 0x2c], 0x1241
movzx eax, di
mov word [ebp + 0x30], ax
mov word [ebp + 0x18], ax
mov eax, 0x27
mov dword [ebp + 0x20], esi
mov word [ebp + 0x14], ax
mov ebx, dword [esp + 0x10]
mov edi, 1
cmp dword [ebp + 0x2c], 0
je 0x4f0810
mov eax, dword [esp + 0x14]
mov word [ebp + 0x16], di
mov dword [ebx + 0x348], ebp
mov dword [ebp + 8], 1
mov dword [ebp + 0xc], 0
mov dword [ebx + 0x2fc], eax
mov eax, dword [ebx + 8]
mov word [ebx + 0x34], di
test eax, eax
je 0x4f07de
mov al, byte [eax]
mov byte [ebx + 0x2d], al
mov eax, 0x100
test word [ebx + 0x28], ax
je 0x4f07ed
mov byte [ebx + 0x2f], 1
cmp byte [esp + 0x39], 1
jbe 0x4f07fb
or dword [ebp + 0x2c], 0x200000
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004fb4f7
add esp, 0x74
ret
mov ecx, dword [esp + 0x80]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004fb4f7
add esp, 0x74
ret