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

Disassembly:
push 0x54
push 0x49cab0
call fcn.00454630
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 0x422be0
cmp word [ecx], si
je 0x422be0
test edx, edx
je 0x422be0
cmp word [edx], si
je 0x422be0
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 0x422aaf
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 0x422ac0
cmp ecx, 0x20
je 0x422a9c
cmp ecx, 5
jne 0x422aaf
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x38]
jmp 0x422a68
mov eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
jne 0x422ac0
call edi
mov esi, eax
jmp 0x422be3
lea ecx, [ebp - 0x5c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x422ab7
cmp dword [ebp - 0x58], esi
ja 0x422ae6
jb 0x422adc
cmp dword [ebp - 0x5c], 0xd
ja 0x422ae6
mov esi, 0x570
jmp 0x422be3
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 0x422ab7
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 0x422ab7
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 0x422b70
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 0x422b7c
cmp ecx, 0x20
je 0x422b60
cmp ecx, 5
jne 0x422b73
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x3c]
jmp 0x422b2b
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x422ab7
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 0x422ab7
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 0x422ab7
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.00445830
test eax, eax
je 0x422be6
jmp 0x422adc
push 0x57
pop esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x422c10
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x422c1e
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 0x422c2e
push eax
call edi
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x422c39
push eax
call edi
test ebx, ebx
je 0x422c44
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x422c4e
push eax
call edi
mov eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x422c59
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