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

Disassembly:
push 0x54
push 0x495b00
call fcn.004508b0
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x44], ecx
xor esi, esi
or eax, 0xffffffff
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x34], esi
or dword [ebp - 0x24], eax
mov dword [ebp - 0x30], esi
mov ebx, esi
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], esi
test ecx, ecx
je 0x4225e3
cmp word [ecx], si
je 0x4225e3
test edx, edx
je 0x4225e3
cmp word [edx], si
je 0x4225e3
push 0xa
pop eax
mov dword [ebp - 0x38], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 1
mov dword [ebp - 0x38], eax
js 0x4224b2
push esi
push esi
push 3
push esi
push 5
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
call edi
mov ecx, eax
mov eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
jne 0x4224c3
cmp ecx, 0x20
je 0x42249f
cmp ecx, 5
jne 0x4224b2
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x38]
jmp 0x42246b
mov eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
jne 0x4224c3
call edi
mov esi, eax
jmp 0x4225e6
lea ecx, [ebp - 0x5c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4224ba
cmp dword [ebp - 0x58], esi
ja 0x4224e9
jb 0x4224df
cmp dword [ebp - 0x5c], 0xd
ja 0x4224e9
mov esi, 0x570
jmp 0x4225e6
push esi
push esi
push esi
push 2
push esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x4224ba
push dword [ebp - 0x5c]
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [ebp - 0x40], ebx
test ebx, ebx
je 0x4224ba
mov ecx, dword [ebx + 5]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebx + 9]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x60], ecx
push 0xa
pop eax
mov dword [ebp - 0x3c], eax
sub eax, 1
mov dword [ebp - 0x3c], eax
js 0x422573
push esi
push esi
push 2
push esi
push esi
push 0xc0000000
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
call edi
mov ecx, eax
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
jne 0x42257f
cmp ecx, 0x20
je 0x422563
cmp ecx, 5
jne 0x422576
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x3c]
jmp 0x42252e
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x4224ba
push esi
push dword [ebp - 0x28]
push dword [ebp - 0x48]
push 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x4224ba
push dword [ebp - 0x28]
push esi
push esi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x4224ba
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x5c]
add eax, 0xfffffff3
mov dword [ebp - 0x4c], eax
push 5
push ebx
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebx + 0xd]
push eax
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x2c]
call fcn.00441140
test eax, eax
je 0x4225e9
jmp 0x4224df
push 0x57
pop esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x422613
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x422621
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x422631
push eax
call edi
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x42263c
push eax
call edi
test ebx, ebx
je 0x422647
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x422651
push eax
call edi
mov eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42265c
push eax
call edi
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret