Function at 0x4cc670
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60b668
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x67e4d0]
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 0x4cc72c
mov dword [ebp - 0x34], 1
mov edx, dword [ebp + 8]
push edx
call fcn.005a866e
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x4cc72c
mov eax, dword [ebp - 0x40]
add eax, 8
push eax
lea ecx, [ebp - 0x48]
call fcn.004cc0e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x40]
call fcn.004cc3b0
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.004cc280
cmp dword [ebp - 0x2c], 0
jne 0x4cc8f4
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x28]
push eax
call fcn.004cca40
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.0040e9d0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x4cc795
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040ebb0
jmp 0x4cc8a9
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 0x4cc7c4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040ebb0
jmp 0x4cc8a9
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4cc7e6
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040ebb0
jmp 0x4cc8a9
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 0x4cc817
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040ebb0
jmp 0x4cc8a9
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 0x4cc843
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040ebb0
jmp 0x4cc8a9
mov eax, dword [ebp - 0x40]
add eax, 8
push eax
lea ecx, [ebp - 0x50]
call fcn.004cc0e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x40]
call fcn.004cc3b0
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.004cc280
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040ebb0
xor eax, eax
jne 0x4cc744
cmp dword [ebp - 0x44], 0
jne 0x4cc8f4
cmp dword [ebp - 0x2c], 0
je 0x4cc8c6
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 0x4cc8dd
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 0x4cc8f4
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.00536569
mov esp, ebp
pop ebp
ret 4