Function at 0x477b60
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d088
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x546330]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], ecx
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0xffffffff
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x30], ecx
cmp dword [ebp + 8], 0x200000
ja 0x477c1c
mov dword [ebp - 0x34], 1
mov edx, dword [ebp + 8]
push edx
call fcn.004ea9b7
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x477c1c
mov eax, dword [ebp - 0x40]
add eax, 8
push eax
lea ecx, [ebp - 0x48]
call fcn.004775f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x40]
call fcn.004778a0
mov edx, dword [ebp - 0x3c]
mov dword [eax], edx
mov ecx, dword [ebp - 0x38]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x34]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x30]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 0x2c]
mov dword [eax + 0x10], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00477790
cmp dword [ebp - 0x2c], 0
jne 0x477de4
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x28]
push eax
call fcn.00477f30
add esp, 4
mov dword [ebp - 4], 1
push 0
push 0x4000100
push 2
push 0
push 0
push 0xc0000000
lea ecx, [ebp - 0x28]
call fcn.00405080
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x477c85
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004050b0
jmp 0x477d99
push 0
push 0
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x477cb4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004050b0
jmp 0x477d99
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x477cd6
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004050b0
jmp 0x477d99
push 0
push 0
push 0
push 4
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x477d07
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004050b0
jmp 0x477d99
push 0
push 0
push 0
push 6
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x477d33
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004050b0
jmp 0x477d99
mov eax, dword [ebp - 0x40]
add eax, 8
push eax
lea ecx, [ebp - 0x50]
call fcn.004775f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x40]
call fcn.004778a0
mov edx, dword [ebp - 0x3c]
mov dword [eax], edx
mov ecx, dword [ebp - 0x38]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x34]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x30]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 0x2c]
mov dword [eax + 0x10], edx
mov dword [ebp - 0x44], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.00477790
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004050b0
xor eax, eax
jne 0x477c34
cmp dword [ebp - 0x44], 0
jne 0x477de4
cmp dword [ebp - 0x2c], 0
je 0x477db6
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x2c], 0
cmp dword [ebp - 0x38], 0
je 0x477dcd
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x38], 0
cmp dword [ebp - 0x3c], 0xffffffff
je 0x477de4
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x3c], 0xffffffff
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bd6ac
mov esp, ebp
pop ebp
ret 4