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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 1
push 1
push dword [ebp + 8]
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x42241e8e
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 4], 0
mov esi, eax
jne 0x42241e17
test esi, esi
je 0x42241e17
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x42241df4
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x42241dcc
push 0
push 0x42272a6c
push esi
push ebx
call fcn.4224dd50
add esp, 0xc
push eax
push esi
push ebx
call fcn.4224dac0
add esp, 0x10
mov dword [ebp + 8], eax
test eax, eax
je 0x42241d79
mov ecx, dword [ebp - 8]
push eax
call fcn.42242d50
push dword [ebp + 8]
mov esi, eax
call fcn.42252f00
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push edi
call ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
lea eax, [ebp + 8]
push eax
push 0
push 8
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x42241da7
mov ecx, dword [ebp + 8]
call fcn.42241490
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
mov esi, 0x80070008
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push edi
call ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.42241b80
push dword [ebp - 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
call ebx
push edi
call ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.42241b80
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
push edi
call ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
mov esi, eax
lea eax, [ebp + 8]
push eax
push 0
push esi
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
jne 0x42241e5c
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jle 0x42241e80
movzx esi, si
push edi
or esi, 0x80070000
call ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
call fcn.42241490
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
jle 0x42241e7a
movzx esi, si
or esi, 0x80070000
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
mov esi, eax
lea eax, [ebp + 8]
push eax
push 0
push esi
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x42241ec3
mov ecx, dword [ebp + 8]
call fcn.42241490
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
jle 0x42241e83
pop edi
movzx eax, si
pop esi
or eax, 0x80070000
pop ebx
mov esp, ebp
pop ebp
ret 4