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

Disassembly:
push 0x150
mov eax, 0x451cbb
call fcn.0042e622
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x13c], eax
call fcn.00425472
push 0x105
mov edi, eax
xor ebx, ebx
lea eax, [ebp - 0x118]
push ebx
push eax
call fcn.00430240
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x128], ebx
mov eax, 0x45fa6a
mov dword [ebp - 0x124], 0xf
je 0x422c0e
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x138]
call fcn.00401bec
cmp dword [ebp - 0x124], 0x10
lea eax, [ebp - 0x138]
push ebx
cmovae eax, dword [ebp - 0x138]
push 0x80
push 4
push edi
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [ebp - 0x138]
mov dword [esi + 4], eax
call fcn.00401bc6
cmp dword [esi + 4], 0xffffffff
jne 0x422c8c
mov eax, dword [0x46ba90]
cmp eax, 0x46ba90
je 0x422df6
test byte [eax + 0x1c], 2
je 0x422df6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x46ba90]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xa
jmp 0x422de8
lea ecx, [ebp - 0x138]
mov byte [ebp - 0x119], bl
mov dword [ebp - 0x120], ebx
call fcn.00401490
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], 8
jb 0x422cae
mov eax, dword [eax]
push ecx
lea ecx, [ebp - 0x120]
push ecx
push eax
call fcn.004209b1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x138]
mov bl, al
call fcn.00401a5a
test bl, bl
jne 0x422d5e
mov eax, dword [0x46ba90]
cmp eax, 0x46ba90
je 0x422d0a
test byte [eax + 0x1c], 2
je 0x422d0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x46ba90]
mov edx, 0x4638dc
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0xb
pop ecx
call fcn.00407e06
add esp, 0xc
cmp dword [ebp - 0x120], 0x800b0109
jne 0x422df6
lea ecx, [ebp - 0x15c]
call fcn.00401490
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x422d34
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x119]
call fcn.00420b5f
lea ecx, [ebp - 0x15c]
mov bl, al
call fcn.00401a5a
test bl, bl
je 0x422df6
mov eax, dword [ebp - 0x13c]
mov byte [eax], 1
xor edi, edi
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
call fcn.00425472
push edi
push edi
push edi
push 2
pop ebx
push ebx
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi], eax
test eax, eax
jne 0x422db0
mov eax, dword [0x46ba90]
cmp eax, 0x46ba90
je 0x422df6
test byte [eax + 0x1c], bl
je 0x422df6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x46ba90]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xc
jmp 0x422de8
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x422dfa
mov eax, dword [0x46ba90]
cmp eax, 0x46ba90
je 0x422df6
test byte [eax + 0x1c], bl
je 0x422df6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x46ba90]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xd
mov edx, 0x4638dc
pop ecx
call fcn.00407e06
add esp, 0xc
xor al, al
jmp 0x422e37
mov ecx, dword [ebp - 0x140]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x144]
mov eax, dword [esi + 8]
mov dword [ecx], eax
mov ecx, dword [0x46ba90]
cmp ecx, 0x46ba90
je 0x422e35
test byte [ecx + 0x1c], bl
je 0x422e35
push dword [ecx + 0x14]
mov edx, 0x4638dc
push dword [ecx + 0x10]
push 0xe
pop ecx
call fcn.00407d99
pop ecx
pop ecx
mov al, 1
call fcn.0042e5d1
ret 0xc