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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad5c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
push 0
push 0x8000000
push 3
push 0
push 1
push SysReAllocStringLen
mov eax, dword [ebp + 0x10]
add eax, 0x18
push eax
call dword [0x54b4dc]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x30], 0xffffffff
jne 0x4867fa
or eax, 0xffffffff
jmp 0x4869ea
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push 0x8000002
push 0
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x48683d
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x4869ea
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x486874
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x4869ea
mov eax, dword [ebp - 0x38]
push eax
call fcn.0042e5a0
add esp, 4
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x4868a5
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x4869ea
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x3c]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x38]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x38]
lea edx, [ecx + eax + 9]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x44], eax
jmp 0x4868e7
mov ecx, dword [ebp - 0x44]
add ecx, 1
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp - 0x34]
jae 0x4869bb
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov dl, byte [ecx]
cmp edx, 0xe9
jne 0x4869b6
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x38]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x38]
sub ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x18]
add eax, dword [edx]
lea ecx, [ecx + eax + 5]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x38]
add edx, dword [ebp - 0x48]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x28]
push eax
push 0x54293f
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.ntdll.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x4869b6
cmp dword [ebp + 8], 0
je 0x4869b6
mov edx, dword [ebp + 0x10]
mov dword [edx + 4], 1
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x38]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp + 0xc]
push edx
push 0x78
mov eax, dword [ebp + 0x10]
add eax, 0x18
push eax
mov ecx, dword [ebp - 0x50]
push ecx
call dword [ebp + 8]
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x4869ea
jmp 0x4868de
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4869e1
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc