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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb8
and dword [ebp - 0x14], 0
push ebx
mov ebx, dword [ebp + 0x2c]
test ebx, ebx
push esi
push edi
mov edi, dword [ebp + 0x30]
mov byte [ebp - 1], 0
jbe 0x4f58dc
lea esi, [edi + 4]
mov eax, dword [esi]
test al, 1
je 0x4f58c0
or eax, 6
mov dword [esi], eax
push dword [esi - 4]
push dword [0x5a6b88]
call fcn.004e07a8
test al, al
je 0x4f58d6
or byte [ebp - 1], 8
add esi, 8
dec ebx
jne 0x4f58b5
mov ebx, dword [ebp + 0x38]
test ebx, ebx
jbe 0x4f592c
mov eax, dword [ebp + 0x3c]
add eax, 8
mov ecx, ebx
mov esi, dword [eax - 8]
cmp esi, dword [0x5a6d34]
jne 0x4f590a
mov edx, dword [eax - 4]
cmp edx, dword [0x5a6d38]
jne 0x4f590a
test byte [eax], 2
je 0x4f590a
or byte [ebp - 1], 1
cmp esi, dword [0x5a6d64]
jne 0x4f5926
mov edx, dword [eax - 4]
cmp edx, dword [0x5a6d68]
jne 0x4f5926
test byte [eax], 2
je 0x4f5926
or byte [ebp - 1], 0x80
add eax, 0xc
dec ecx
jne 0x4f58eb
lea eax, [ebp - 0x28]
push eax
call fcn.0042ec32
xor esi, esi
cmp dword [ebp + 0x40], esi
jne 0x4f596e
mov dword [ebp - 0x14], esi
mov esi, dword [ebp + 0x20]
push esi
call fcn.004f4720
test eax, eax
jl 0x4f5d58
push 0x64546553
push 0x38
push 0
call fcn.00448568
mov edi, eax
test edi, edi
jne 0x4f59c4
mov edi, 0xc000009a
jmp 0x4f5a8f
mov eax, dword [ebp + 0x28]
push dword [eax]
push dword [ebp + 0x40]
call fcn.004e07a8
test al, al
jne 0x4f593c
cmp dword [ebp + 0x2c], 0
mov byte [ebp - 9], al
jbe 0x4f59ba
cmp byte [ebp - 9], 0
jne 0x4f593f
push dword [edi + esi*8]
push dword [ebp + 0x40]
call fcn.004e07a8
test al, al
je 0x4f59ae
test byte [edi + esi*8 + 4], 8
je 0x4f59ba
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
mov byte [ebp - 9], 1
inc esi
cmp esi, dword [ebp + 0x2c]
jb 0x4f5988
cmp byte [ebp - 9], 0
jne 0x4f593f
mov eax, 0xc000005a
jmp 0x4f5d58
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x34]
lea eax, [ebx + ebx*2]
shl eax, 2
mov dword [ebp - 0x1c], eax
add eax, 3
push 0xfffffffffffffffc
pop ebx
and eax, ebx
lea ecx, [ecx*8 + 3]
add edx, 3
mov dword [ebp - 0x20], eax
and ecx, ebx
add ecx, eax
mov eax, dword [ebp + 0x28]
mov eax, dword [eax]
and edx, ebx
add edx, ecx
mov dword [ebp - 8], edx
movzx eax, byte [eax + 1]
push eax
call fcn.004dfa72
mov ecx, dword [ebp - 8]
add eax, 3
and eax, ebx
lea eax, [ecx + eax + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x44]
movzx eax, byte [eax + 1]
push eax
call fcn.004dfa72
mov ecx, dword [ebp + 0x48]
add eax, 3
and eax, ebx
test ecx, ecx
mov dword [ebp + 0x20], eax
je 0x4f5a3b
movzx ecx, word [ecx + 2]
add ecx, 3
and ecx, ebx
add eax, ecx
mov dword [ebp + 0x20], eax
mov ecx, dword [ebp - 8]
add ecx, 0xa0
cmp eax, 0x1f4
mov dword [ebp - 0x18], ecx
jae 0x4f5a56
lea eax, [ecx + 0x1f4]
jmp 0x4f5a58
add eax, ecx
mov dword [ebp + 0x40], eax
lea eax, [ebp + 0x34]
push eax
push 0
push dword [ebp + 0x40]
push ecx
push 0
push 1
push dword [ebp + 0x14]
push dword [0x5a6f04]
push dword [ebp + 0xc]
call 0x4bdfb4
test eax, eax
mov ebx, dword [ebp + 0x34]
mov dword [ebp + 0x14], eax
jge 0x4f5a9c
push 0
push edi
call fcn.00447ee0
mov edi, dword [ebp + 0x14]
push esi
call fcn.004f4a98
mov eax, edi
jmp 0x4f5d58
lea eax, [ebx + 0x30]
push edi
mov dword [eax], edi
call 0x43234a
lea eax, [ebx + 0x10]
push eax
call fcn.0042ec32
xor eax, eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x98], eax
xor ecx, ecx
mov dword [ebx + 0x24], ecx
mov dword [ebx + 0x9c], ecx
mov eax, dword [esi]
mov dword [ebx + 0x18], eax
mov eax, dword [esi + 4]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp + 0x4c]
mov dword [ebx + 0x40], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x44], eax
mov eax, dword [ebp + 0x24]
mov byte [ebx + 0x8c], cl
mov ecx, dword [eax]
mov dword [ebx + 0x28], ecx
mov eax, dword [eax + 4]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x80], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x84], eax
movzx eax, byte [ebp - 1]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x88], eax
mov eax, dword [ebp + 0x40]
sub eax, dword [ebp - 0x18]
xor esi, esi
cmp dword [ebp + 0x54], esi
mov dword [ebx + 0x5c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x64], eax
mov dword [ebx + 0x48], esi
mov dword [ebx + 0x60], esi
mov dword [ebx + 0x7c], esi
mov eax, dword [ebp - 8]
mov dword [ebx + 0x58], eax
lea eax, [ebx + 0x90]
mov dword [ebx + 0x38], esi
mov dword [ebx + 0x3c], esi
mov dword [eax], esi
mov dword [ebx + 0x94], esi
mov dword [ebx + 0x78], esi
je 0x4f5b64
push dword [ebp + 0x54]
push eax
call fcn.004f2c3c
test eax, eax
jge 0x4f5b66
jmp 0x4f5c40
mov dword [eax], esi
cmp dword [ebp + 0x58], esi
je 0x4f5b91
push 0x20206553
push 0xc
push 1
call fcn.00448568
cmp eax, esi
mov dword [ebx + 0x94], eax
je 0x4f5c40
mov esi, dword [ebp + 0x58]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x4f5b97
mov dword [ebx + 0x94], esi
mov ecx, dword [ebp + 0x38]
mov esi, dword [ebp + 0x3c]
mov dword [ebx + 0x54], ecx
mov ecx, dword [ebp - 0x1c]
mov edx, ecx
shr ecx, 2
lea eax, [ebx + 0xa0]
mov dword [ebx + 0x74], eax
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x20]
sub dword [ebp - 8], ecx
mov esi, dword [ebp + 0x2c]
add eax, ecx
lea ecx, [eax + esi*8 + 8]
mov dword [ebp - 0x10], ecx
lea ecx, [esi + 1]
mov dword [ebx + 0x4c], ecx
mov dword [ebx + 0x68], eax
mov edx, dword [ebp - 8]
mov ecx, 0x1fffffff
sub ecx, esi
lea ecx, [edx + ecx*8]
lea edx, [ebp - 8]
push edx
lea edx, [ebp - 0x10]
push edx
push dword [ebp - 0x10]
mov dword [ebp + 0x40], eax
push eax
push ecx
push dword [ebp + 0x28]
mov dword [ebp - 8], ecx
push 1
call fcn.004dfb3e
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
mov eax, dword [ebp + 0x40]
add eax, 8
push eax
push dword [ebp - 8]
push dword [ebp + 0x30]
push esi
call fcn.004dfb3e
push 0x64546553
push dword [ebp + 0x20]
xor esi, esi
push 1
mov dword [ebp + 0x2c], eax
mov dword [ebx + 0x6c], esi
mov dword [ebx + 0x50], esi
call fcn.00448568
cmp eax, esi
mov dword [ebx + 0x78], eax
jne 0x4f5c51
mov ecx, ebx
call fcn.004232ae
mov eax, 0xc0000017
jmp 0x4f5d58
mov edi, eax
mov eax, dword [ebp + 0x44]
mov dword [ebx + 0x70], edi
movzx eax, byte [eax + 1]
push eax
call fcn.004dfa72
push dword [ebp + 0x44]
mov dword [ebp + 0x40], eax
push edi
push eax
call fcn.004dfb06
mov eax, dword [ebp + 0x40]
add eax, 3
and eax, 0xfffffffc
add edi, eax
mov eax, dword [ebp + 0x48]
cmp eax, esi
je 0x4f5c9b
mov dword [ebx + 0x7c], edi
movzx ecx, word [eax + 2]
mov esi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
cmp byte [ebp + 0x50], 0
jne 0x4f5d28
mov eax, dword [0x5a6f04]
add eax, 0x68
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.004ee2ea
cmp eax, esi
mov dword [ebp + 0x2c], eax
jl 0x4f5d1f
mov eax, dword fs:[0x124]
movsx eax, byte [eax + 0x140]
push eax
push dword [0x5a6c90]
push dword [0x5a6c8c]
call fcn.004f5208
test al, al
je 0x4f5d03
push dword [ebp + 8]
lea eax, [ebp - 0xb8]
push esi
push esi
push esi
push eax
push ebx
call 0x4bfbda
mov dword [ebp + 0x2c], eax
jmp 0x4f5d11
mov ecx, ebx
mov dword [ebp + 0x2c], 0xc0000061
call fcn.004232ae
lea eax, [ebp - 0xb8]
push eax
call fcn.004ee0ac
jmp 0x4f5d55
mov ecx, ebx
call fcn.004232ae
jmp 0x4f5d55
mov eax, dword fs:[0x124]
mov eax, dword [eax + 0x44]
cmp dword [eax + 0xc8], esi
je 0x4f5d47
push esi
push esi
push esi
push esi
push esi
push ebx
call 0x4bfbda
mov dword [ebp + 0x2c], eax
cmp dword [ebp + 0x2c], esi
mov eax, dword [ebp + 8]
jl 0x4f5d53
mov dword [eax], ebx
jmp 0x4f5d55
mov dword [eax], esi
mov eax, dword [ebp + 0x2c]
pop edi
pop esi
pop ebx
leave
ret 0x54