Function at 0x4fe6b0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x60857e
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0xbc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6aae14]
xor eax, esp
push eax
lea eax, [esp + 0xd4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x100]
mov edi, dword [esp + 0x108]
mov edx, dword [esp + 0x110]
mov ebp, ecx
mov ecx, dword [esp + 0x10c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], edx
xor ebx, ebx
mov ecx, 0xf
mov dword [esp + 0xdc], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
mov byte [esp + 0xdc], 1
cmp eax, ebx
je 0x4fe905
mov byte [eax], bl
xor eax, eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], eax
cmp edi, ebx
jne 0x4fe79e
cmp dword [esp + 0xfc], 0x10
mov eax, dword [esp + 0xe8]
jae 0x4fe783
lea eax, [esp + 0xe8]
push ebx
push 0x8000080
push 3
push ebx
push 3
push connect
push eax
call fcn.004e0400
add esp, 0x1c
mov edi, eax
mov dword [esp + 0x14], edi
cmp edi, 0xffffffff
je 0x4fe8be
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push ebx
push 2
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x4fe8ae
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
je 0x4fe8a4
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
je 0x4fe804
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4fe804
push eax
push ecx
push esi
mov dword [eax], ebx
push edi
mov byte [ecx], bl
call fcn.004f43c0
add esp, 0x10
mov edx, dword [ebp]
lea eax, [esp + 0x68]
push eax
mov ecx, edx
call fcn.004dd960
sub esi, dword [esp + 0x104]
lea ecx, [esp + 0x68]
push esi
push edi
push ecx
mov ecx, edx
call fcn.004eb920
mov esi, eax
push edi
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp esi, 1
jne 0x4fe8a4
mov ecx, dword [ebp]
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0xc4]
push eax
call fcn.004eba50
lea ecx, [esp + 0xc0]
push ecx
lea edx, [esp + 0x34]
push edx
mov ecx, ebp
call fcn.004f4240
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0xe8], 2
call fcn.00401280
lea ecx, [esp + 0x30]
mov byte [esp + 0xdc], 1
call fcn.005410f0
cmp dword [esp + 0x64], 0x10
mov eax, dword [esp + 0x50]
jae 0x4fe898
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x1c]
push ecx
call fcn.004dca10
cmp dword [esp + 0x20], ebx
jne 0x4fe8be
lea edx, [esp + 0x14]
push edx
call fcn.004dca10
mov esi, 0x10
cmp dword [esp + 0x64], esi
jb 0x4fe8d6
mov eax, dword [esp + 0x50]
push eax
call fcn.005e0d9a
add esp, 4
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
cmp dword [esp + 0xfc], esi
jb 0x4fe8ff
mov ecx, dword [esp + 0xe8]
push ecx
call fcn.005e0d9a
add esp, 4
mov eax, dword [esp + 0x18]
jmp 0x4fe92d
cmp dword [esp + 0xfc], 0x10
mov dword [esp + 0x64], ecx
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
jb 0x4fe92b
mov edx, dword [esp + 0xe8]
push edx
call fcn.005e0d9a
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xd4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xbc]
xor ecx, esp
call fcn.005dfbbe
add esp, 0xcc
ret 0x30