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

Disassembly:
jne 0x4225b0
add byte gs:[edx], dh
jns 0x4225b6
dec edi
add byte [edx], ah
push 0
add byte gs:[ebx], ah
je 0x4225c2
add byte [eax], al
dec esi
add byte [eax + eax + 0x44], dl
add byte [eax + eax + 0x4c], cl
add byte [esi], ch
add byte [eax + eax + 0x4c], al
add byte [eax + eax], cl
add byte [ebp - 0x75], dl
push ebp
mov ebp, esp
add esp, 0xfffffdc4
push ebx
xor ebx, ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x422815
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.0040a1c4
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileSize
mov ebx, eax
test ebx, ebx
jne 0x4226af
cmp dword [ebp - 0x14], 0
jne 0x4226af
xor edx, edx
mov eax, 6
call fcn.0042b23c
test al, al
je 0x4226af
push 2
push 0x104
lea eax, [ebp - 0x224]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFinalPathNameByHandleW
test eax, eax
jbe 0x4226af
lea eax, [ebp - 0x22c]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.0040af70
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x228]
call fcn.004223b0
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 8]
call fcn.0040a5a4
mov byte [ebp - 9], 1
jmp 0x4227f7
test ebx, ebx
jne 0x4226bd
cmp dword [ebp - 0x14], 0
je 0x4227ab
push 0
push 1
push 0
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3ee
je 0x4227ab
xor eax, eax
push ebp
push 0x4227a4
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42278d
xor eax, eax
push ebp
push 0x422786
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
call sub.kernel32.dll_GetCurrentProcess
lea ecx, [ebp - 0x224]
mov edx, dword [ebp - 0x18]
call fcn.00415574
test eax, eax
jbe 0x42276f
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.0040af70
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x230]
call fcn.004223b0
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 8]
call fcn.0040a5a4
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42278d
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4227ab
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
ret
cmp byte [ebp - 9], 0
jne 0x4227f7
lea edx, [ebp - 0x238]
mov eax, dword [ebp - 4]
call fcn.004224ec
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 8]
call fcn.0040a5a4
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x4227f7
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004223b0
mov edx, dword [ebp - 0x23c]
mov eax, dword [ebp - 8]
call fcn.0040a5a4
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42281c
lea eax, [ebp - 0x23c]
mov edx, 6
call fcn.0040a224
ret