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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5898d7
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
mov ebx, dword [esp + 0x78]
cmp dword [ebx + 0x10], 0
push esi
mov esi, ecx
je 0x4f179d
mov ecx, ebx
call fcn.0051a270
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
mov ecx, esi
call edx
test al, al
jne 0x4f17c9
mov ecx, dword [esi + 0x4a]
mov eax, dword [ecx]
mov edx, dword [eax + 0x24]
push 0x2d
call edx
pop esi
pop ebx
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
add esp, 0x68
ret 0xc
mov eax, dword [esi + 0xc]
test eax, 0xfff00000
mov dword [esp + 0xc], esi
jne 0x4f17dd
add eax, 1
mov dword [esi + 0xc], eax
push ebp
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], 0
call fcn.0051d1a0
mov eax, dword [esi + 0x80]
test eax, 0x100000
mov byte [esp + 0x74], 1
je 0x4f1b10
cmp byte [esi + 0x76], 0
jne 0x4f185a
lea ecx, [esp + 0x10]
mov byte [esp + 0x74], 0
call fcn.0051e120
mov eax, dword [esi + 0xc]
test eax, 0xfff00000
mov dword [esp + 0x74], 0xffffffff
jne 0x4f1d3f
add eax, 0xffffffff
mov dword [esi + 0xc], eax
jne 0x4f1d3f
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
pop edi
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
add esp, 0x68
ret 0xc
mov ecx, dword [esp + 0x7c]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
cmp dword [esi + 0x6e], 0x1ff10000
mov edi, eax
jne 0x4f1884
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov edi, eax
test edi, edi
jne 0x4f188c
jmp 0x4f1c08
test edi, edi
je 0x4f1af8
mov ebp, dword [esi + 0x6e]
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x80], ebp
call fcn.004d2ce0
mov eax, dword [edi + 0x1e]
test al, 2
mov byte [esp + 0x74], 2
je 0x4f18cf
cmp ebp, 0x1ff10000
jge 0x4f18cf
cmp ebp, 0x1ff1ffff
jle 0x4f18d5
mov eax, dword [edi]
mov edx, dword [eax + 0x6c]
push ebp
mov ecx, edi
call edx
cmp eax, 5
jne 0x4f1ae3
cmp ebp, 0x1ff1ffff
jne 0x4f1921
lea ecx, [esp + 0x84]
call fcn.00514470
mov eax, dword [edi]
mov edx, dword [eax + 0x88]
lea ecx, [esp + 0x84]
push ecx
mov ecx, edi
mov byte [esp + 0x78], 3
call edx
lea eax, [esp + 0x84]
push eax
mov ecx, ebx
call fcn.0051a580
lea ecx, [esp + 0x84]
mov byte [esp + 0x74], 2
call fcn.005144a0
jmp 0x4f1ac0
cmp ebp, 0x1ff1fffe
jne 0x4f194f
mov edx, dword [edi]
mov eax, dword [edx + 0x84]
push ebx
mov ecx, edi
call eax
cmp dword [ebx + 0x10], 0
jne 0x4f1ac0
push 0
push edi
mov ecx, ebx
call fcn.0051c580
jmp 0x4f1ac0
mov ecx, dword [esp + 0x80]
mov edx, dword [ecx]
xor ebx, ebx
cmp dword [edx + 8], ebx
jbe 0x4f19ad
nop
mov ecx, dword [esp + 0x80]
push ebx
call fcn.0051e9b0
mov ebp, eax
mov eax, dword [ebp + 0x10]
cmp eax, 5
jne 0x4f1998
mov eax, dword [ebp + 8]
cmp dword [eax + 0x4e], 0x2000008d
je 0x4f1998
mov ecx, ebp
call fcn.00519d80
test eax, eax
je 0x4f1998
push 0
push eax
mov ecx, ebp
call fcn.0051c580
mov eax, dword [esp + 0x80]
mov ecx, dword [eax]
add ebx, 1
cmp ebx, dword [ecx + 8]
jb 0x4f1960
mov ebp, dword [esp + 0x7c]
cmp dword [esi + 0x72], edi
je 0x4f19bc
mov dword [esp + 0x7c], 0x1a
jmp 0x4f19fe
mov ecx, dword [esp + 0x84]
mov edx, dword [edi]
mov edx, dword [edx + 0x7c]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x84]
push ecx
push eax
push ebp
mov ecx, edi
call edx
cmp eax, 0x18
mov dword [esp + 0x7c], eax
je 0x4f19e9
cmp eax, 2
jne 0x4f19f5
cmp ebp, 0x1ff10000
je 0x4f1ab9
cmp eax, 0x1a
jne 0x4f1a9f
mov eax, dword [esp + 0x10]
cmp dword [eax], 0
je 0x4f1a13
mov eax, dword [eax]
cmp dword [eax + 0x26], 0
jne 0x4f1aa3
lea ecx, [esp + 0x80]
call fcn.00514470
mov ecx, dword [esi + 0x52]
push ecx
mov ecx, dword [0x639ab4]
lea edx, [esp + 0x1c]
mov bl, 4
push edx
mov byte [esp + 0x7c], bl
call fcn.004d3f80
mov ebp, dword [eax]
mov eax, dword [edi]
mov edx, dword [eax + 0x30]
mov ecx, edi
mov byte [esp + 0x74], 5
add ebp, 0xc
call edx
mov eax, dword [eax]
push ebp
add eax, 0xc
push eax
lea ecx, [esp + 0x88]
push str._ls._ls__
push ecx
call fcn.00517c90
add esp, 0x10
lea ecx, [esp + 0x18]
mov byte [esp + 0x74], bl
call fcn.005144a0
push 1
push 0
lea edx, [esp + 0x88]
push edx
push 0x1a
lea ecx, [esp + 0x20]
call fcn.0051dcb0
lea ecx, [esp + 0x80]
mov byte [esp + 0x74], 2
call fcn.005144a0
jmp 0x4f1aa3
test eax, eax
je 0x4f1ab9
mov eax, dword [esi + 0x52]
mov ecx, dword [esp + 0x7c]
push eax
push ecx
mov ecx, dword [esi + 0x4a]
lea edx, [esp + 0x18]
push edx
call fcn.004cddc0
mov ebx, dword [esp + 0x84]
mov edi, dword [esp + 0x1c]
mov ecx, dword [edi + 8]
test ecx, ecx
mov byte [esp + 0x74], 1
je 0x4f1ad5
call fcn.00520b80
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
jmp 0x4f1cfe
mov eax, dword [esi + 0x52]
push eax
push 0x37
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x4a]
call fcn.004cddc0
jmp 0x4f1ac0
mov ecx, dword [esi + 0x52]
push ecx
mov ecx, dword [esi + 0x4a]
push 0x37
lea edx, [esp + 0x18]
push edx
call fcn.004cddc0
jmp 0x4f1cfe
test eax, 0x80000
je 0x4f1cfe
mov ebp, dword [esi + 0x6a]
test ebp, ebp
je 0x4f1b27
add ebp, 4
jmp 0x4f1b29
xor ebp, ebp
mov ecx, dword [ebp]
test ecx, ecx
mov dword [esp + 0x1c], ebp
je 0x4f1b39
call fcn.00520b70
test dword [esi + 0x80], 0x400
mov edi, dword [esp + 0x7c]
mov bl, 6
mov byte [esp + 0x74], bl
je 0x4f1c3c
mov eax, dword [edi + 0x4e]
mov ecx, dword [esi + 0x6a]
push eax
call fcn.004d4740
test al, al
jne 0x4f1c3c
lea ecx, [esp + 0x84]
call fcn.00514470
mov eax, dword [esi + 0x52]
push eax
lea ecx, [esp + 0x84]
push ecx
mov ecx, dword [0x639ab4]
mov byte [esp + 0x7c], 7
call fcn.004d3f80
mov edi, dword [eax]
mov ecx, dword [esi + 0x6a]
push 0
mov byte [esp + 0x78], 8
add edi, 0xc
call fcn.004d5030
mov edx, dword [eax]
push edi
add edx, 0xc
push edx
lea eax, [esp + 0x8c]
push str._ls._ls__
push eax
call fcn.00517c90
add esp, 0x10
lea ecx, [esp + 0x80]
mov byte [esp + 0x74], 7
call fcn.005144a0
lea ecx, [esp + 0x84]
push ecx
mov ecx, dword [esi + 0x4a]
push 0x1a
lea edx, [esp + 0x18]
push edx
call fcn.004cdd80
lea ecx, [esp + 0x84]
mov byte [esp + 0x74], bl
call fcn.005144a0
mov ecx, dword [ebp]
test ecx, ecx
mov byte [esp + 0x74], 1
je 0x4f1c08
call fcn.00520b80
lea ecx, [esp + 0x10]
mov byte [esp + 0x74], 0
call fcn.0051e120
lea ecx, [esp + 0x14]
mov dword [esp + 0x74], 0xffffffff
call fcn.004d2dc0
pop edi
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
add esp, 0x68
ret 0xc
push edi
lea ecx, [esp + 0x3c]
call fcn.004e8510
xor edi, edi
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov word [esp + 0x34], di
mov ecx, dword [esi + 0x52]
lea eax, [esp + 0x20]
push eax
push ecx
mov ecx, dword [0x639ab4]
mov byte [esp + 0x7c], 0xa
call fcn.004d3da0
mov ecx, dword [esi + 0x4a]
mov eax, dword [esi + 0x6e]
lea edx, [esp + 0x38]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x50], eax
mov dword [esp + 0x68], edx
mov edx, dword [esi + 0x72]
mov dword [esp + 0x64], ecx
mov ecx, dword [esi + 0x6a]
lea eax, [esp + 0x20]
mov dword [esp + 0x5c], eax
push edx
mov dword [esp + 0x64], 0x63616c6c
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
lea edx, [esp + 0x54]
push edx
call eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x74], 9
call fcn.0051ac60
lea ecx, [esp + 0x38]
mov byte [esp + 0x74], bl
call fcn.0051ac60
mov ecx, dword [ebp]
cmp ecx, edi
mov byte [esp + 0x74], 1
je 0x4f1cf7
call fcn.00520b80
mov ebx, dword [esp + 0x84]
mov ecx, dword [esi + 0x4a]
mov edx, dword [ecx]
mov eax, dword [edx + 0xe0]
push 1
push ebx
call eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x74], 0
call fcn.0051e120
mov eax, dword [esi + 0xc]
test eax, 0xfff00000
mov dword [esp + 0x74], 0xffffffff
jne 0x4f1d3f
add eax, 0xffffffff
mov dword [esi + 0xc], eax
jne 0x4f1d3f
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x6c]
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x68
ret 0xc