Function at 0x1011dbd0
Capabilities:
Check if file exists
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push ebx
mov dword [ebp - 0xc], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1011dbf3
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push edi
mov dword [esi], 0
xor esi, esi
push esi
push 0x80
push 4
push esi
push 1
push SysReAllocString
push ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x1011dc34
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov dword [ebp - 4], eax
call ebx
mov ecx, dword [ebp + 0x18]
push dword [ebp + 0x1c]
cmp byte [ecx], 0
push 1
je 0x1011dd12
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov edi, eax
push 0
test edi, edi
je 0x1011dc7a
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp + 0x1c], eax
test eax, eax
jne 0x1011de80
push edi
call ebx
xor edi, edi
lea esi, [edi + 1]
jmp 0x1011de80
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0x80
push 4
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
call eax
mov dword [ebp + 0x18], eax
cmp eax, 0xffffffff
je 0x1011dce6
push dword [ebp + 0x1c]
push dword [ebp - 4]
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x1011dcda
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 8], eax
test eax, eax
jne 0x1011dcdf
push edi
call ebx
push dword [ebp + 0x18]
xor edi, edi
lea esi, [edi + 2]
call ebx
jmp 0x1011dceb
mov esi, 3
push dword [ebp + 0x18]
call ebx
jmp 0x1011dceb
mov esi, 0xa
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], 1
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
pop edi
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
pop esi
mov dword [eax], ecx
mov eax, dword [ebp - 8]
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov edi, eax
test edi, edi
je 0x1011dda1
push 0
push 0
push 0
push 0xf001f
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [ebp + 8], edx
test edx, edx
jne 0x1011dd84
push edi
call ebx
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push 1
push 4
call eax
mov edi, eax
test edi, edi
je 0x1011dd81
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [ebp + 8], edx
test edx, edx
jne 0x1011dd79
push edi
call ebx
mov edx, dword [ebp + 8]
xor edi, edi
lea esi, [edi + 4]
mov eax, dword [ebp + 0x18]
mov byte [eax], 1
jmp 0x1011dd84
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
pop edi
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
pop esi
mov dword [eax], ecx
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push 1
push 4
call eax
mov edi, eax
push 0
test edi, edi
je 0x1011dddf
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp + 0x1c], eax
test eax, eax
jne 0x1011ddd4
push edi
call ebx
xor edi, edi
lea esi, [edi + 4]
mov eax, dword [ebp + 0x18]
mov byte [eax], 1
jmp 0x1011de80
mov edi, dword [ebp + 8]
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0x80
push 4
push 0
push 3
push 0x10000000
push edi
call eax
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x1011de9e
push dword [ebp + 0x1c]
push dword [ebp - 4]
push 0
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x1011de3f
push 0
push 0
push 0
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp + 0x1c], eax
test eax, eax
jne 0x1011de72
push edi
call ebx
xor edi, edi
lea esi, [edi + 5]
jmp 0x1011de72
push dword [ebp + 0x1c]
push 1
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push 0
push 0
push 0
mov edi, eax
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp + 0x1c], eax
test eax, eax
jne 0x1011de6c
push edi
call ebx
xor edi, edi
lea esi, [edi + 6]
mov eax, dword [ebp + 0x18]
mov byte [eax], 1
push dword [ebp + 8]
call ebx
mov eax, dword [ebp - 0xc]
mov dword [eax], 1
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
pop edi
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
pop esi
mov dword [eax], ecx
mov eax, dword [ebp + 0x1c]
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 0
push 0x80
push 4
push 0
push 1
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x1011df37
push dword [ebp + 0x1c]
mov edi, dword [ebp - 4]
push edi
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp + 0x1c], eax
test eax, eax
je 0x1011df00
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 8], eax
test eax, eax
jne 0x1011df05
mov ecx, dword [ebp + 0x1c]
push ecx
call ebx
mov dword [ebp + 0x1c], esi
mov esi, 0xb
jmp 0x1011df05
mov esi, 0xc
push dword [ebp + 8]
call ebx
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
mov byte [eax], 1
mov eax, dword [ebp - 0xc]
mov dword [eax], 1
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
mov byte [eax], 1
mov eax, dword [ebp - 0xc]
pop edi
mov dword [eax], 1
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
pop esi
mov dword [eax], 0xd
mov eax, dword [ebp + 0x14]
pop ebx
mov dword [eax], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 0x18