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

Disassembly:
push 0x54
push 0x4b7730
call fcn.00456b60
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 0x423041
cmp word [ecx], si
je 0x423041
test edx, edx
je 0x423041
cmp word [edx], si
je 0x423041
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 0x422f10
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 0x422f21
cmp ecx, 0x20
je 0x422efd
cmp ecx, 5
jne 0x422f10
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x38]
jmp 0x422ec9
mov eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
jne 0x422f21
call edi
mov esi, eax
jmp 0x423044
lea ecx, [ebp - 0x5c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x422f18
cmp dword [ebp - 0x58], esi
ja 0x422f47
jb 0x422f3d
cmp dword [ebp - 0x5c], 0xd
ja 0x422f47
mov esi, 0x570
jmp 0x423044
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 0x422f18
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 0x422f18
mov ecx, dword [ebx + 5]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebx + 9]
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], edx
push 0xa
pop eax
mov dword [ebp - 0x3c], eax
sub eax, 1
mov dword [ebp - 0x3c], eax
js 0x422fd1
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 0x422fdd
cmp ecx, 0x20
je 0x422fc1
cmp ecx, 5
jne 0x422fd4
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x3c]
jmp 0x422f8c
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x422f18
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 0x422f18
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 0x422f18
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.00447810
test eax, eax
je 0x423047
jmp 0x422f3d
push 0x57
pop esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x423071
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x42307f
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 0x42308f
push eax
call edi
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x42309a
push eax
call edi
test ebx, ebx
je 0x4230a5
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4230af
push eax
call edi
mov eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4230ba
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