Function at 0x4a5294c4
Capabilities:
Check if file exists
Get file attributes
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4a5294cc
push ebx
push esi
push edi
mov byte [ebp - 9], al
xor eax, eax
push ebp
push 0x4a52981c
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x4c]
call fcn.4a507a20
push 1
mov esi, dword [0x4a5ed494]
mov esi, dword [esi]
mov ecx, 0x7fffffff
mov edx, dword [ebp - 4]
mov eax, 0x4a529838
call esi
mov edx, eax
lea eax, [ebp - 4]
mov ecx, 0x7fffffff
call fcn.4a5086a0
lea eax, [ebp - 0x14]
mov ecx, 0x4a529848
mov edx, dword [ebp - 4]
call fcn.4a5084e8
mov eax, dword [ebp - 0x14]
call fcn.4a5082f8
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4a52973a
cmp byte [ebp - 9], 0
jne 0x4a52973a
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
sub eax, dword [edx + 0x38]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov dword [edx + 0x48c], eax
test eax, eax
jne 0x4a52971b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dword [eax + 0x48c], 0x1000
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4a5295bc
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x4c]
call fcn.4a5082f8
push eax
call sub.kernel32.dll_CreateFileW_1
mov ebx, eax
jmp 0x4a5295f1
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x18]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x4c]
mov ecx, 0
call fcn.4a508124
mov eax, dword [ebp - 0x18]
call fcn.4a507f78
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a52971b
push 0
push 0
push 0
push 2
push 0
push ebx
call sub.kernel32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x4a529715
push 0
push 0
push 0
push 4
push esi
call sub.kernel32.dll_MapViewOfFile
mov edi, eax
test edi, edi
je 0x4a52970f
mov eax, edi
call fcn.4a5169c4
test eax, eax
je 0x4a529709
movzx edx, word [eax + 0x18]
cmp dx, 0x20b
jne 0x4a529653
mov ecx, eax
add ecx, 0x108
mov dword [ebp - 0x10], ecx
jmp 0x4a52965e
mov ecx, eax
add ecx, 0xf8
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
test byte [ecx + 0x24], 0x20
je 0x4a5296ac
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov dword [edx + 0x48c], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov dword [edx + 0x44], eax
add dword [ebp - 0x10], 0x28
mov eax, dword [ebp - 0x10]
test byte [eax + 0x24], 0x20
je 0x4a529709
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
add eax, dword [edx + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov dword [edx + 0x44], eax
jmp 0x4a529709
cmp dx, 0x20b
jne 0x4a5296e2
lea edx, [eax + 0x18]
mov edx, dword [edx + 0x14]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx - 4]
mov dword [ecx + 0x48c], edx
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x48c]
add eax, 0x18
add edx, dword [eax + 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dword [eax + 0x44], edx
jmp 0x4a529709
mov edx, dword [eax + 0x2c]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx - 4]
mov dword [ecx + 0x48c], edx
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x48c]
add edx, dword [eax + 0x1c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dword [eax + 0x44], edx
push edi
call sub.kernel32.dll_UnmapViewOfFile
push esi
call sub.kernel32.dll_CloseHandle_1
push ebx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
mov ecx, 0x4a529848
mov edx, dword [ebp - 4]
call fcn.4a5084e8
mov eax, dword [ebp - 0x1c]
call fcn.4a528410
pop ecx
mov ebx, eax
test bl, bl
jne 0x4a5297e1
cmp byte [ebp - 9], 0
jne 0x4a529778
lea eax, [ebp - 0x20]
mov ecx, 0x4a529860
mov edx, dword [ebp - 4]
call fcn.4a5084e8
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 8]
call fcn.4a525ce0
test al, al
je 0x4a529778
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 8]
call fcn.4a527454
pop ecx
mov bl, 1
jmp 0x4a5297e1
lea eax, [ebp - 0x24]
mov ecx, 0x4a529878
mov edx, dword [ebp - 4]
call fcn.4a5084e8
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 8]
call fcn.4a525ce0
test al, al
je 0x4a5297a8
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 8]
call fcn.4a5268f4
pop ecx
test al, al
jne 0x4a5297ac
xor ebx, ebx
jmp 0x4a5297ae
mov bl, 1
test bl, bl
jne 0x4a5297dd
cmp byte [ebp - 9], 0
jne 0x4a5297d9
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x28]
mov ecx, 0x4a529890
mov edx, dword [ebp - 4]
call fcn.4a5084e8
mov eax, dword [ebp - 0x28]
call fcn.4a527c9c
pop ecx
test al, al
jne 0x4a5297dd
xor eax, eax
jmp 0x4a5297df
mov al, 1
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a529823
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.4a507678
lea eax, [ebp - 0x18]
call fcn.4a50763c
lea eax, [ebp - 0x14]
call fcn.4a507618
lea eax, [ebp - 8]
call fcn.4a50763c
lea eax, [ebp - 4]
call fcn.4a507618
ret