Function at 0x11150890
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get file size
Read file via mapping

Disassembly:
sub esp, 0x10c
mov eax, dword [esp + 0x110]
push ebp
mov ebp, dword [esp + 0x118]
push esi
xor esi, esi
cmp eax, esi
mov dword [esp + 8], esi
jne 0x111508c6
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, esi
mov dword [esp + 0x118], eax
je 0x11150b1e
cmp ebp, esi
je 0x11150b1e
cmp dword [esp + 0x120], esi
je 0x11150b1e
cmp dword [esp + 0x124], esi
je 0x11150b1e
cmp dword [esp + 0x128], esi
je 0x11150b1e
push ebx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x103
lea eax, [esp + 0x1c]
push ebp
push eax
mov dword [esp + 0x20], esi
call fcn.111416c0
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
call ebx
cmp eax, 0xffffffff
jne 0x11150a70
push 0x5c
push ebp
call fcn.11144830
add esp, 8
test eax, eax
jne 0x11150a70
lea edx, [esp + 0x18]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x111509ce
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x17], 0x5c
je 0x111509a3
mov edi, 0x111c09d4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x18]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x11150a70
lea ecx, [esp + 0x18]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x11150a60
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x17], 0x5c
je 0x11150a35
mov edi, 0x111c09d4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x18]
push eax
call ebx
cmp eax, 0xffffffff
je 0x11150b0f
push 0
push 0x80
push 3
push 0
push 7
lea ecx, [esp + 0x2c]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x11150b0f
lea edx, [esp + 0x14]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov eax, dword [esp + 0x14]
push 0
push esi
push eax
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, eax
test ebp, ebp
je 0x11150b0c
push esi
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x11150b09
mov ecx, dword [esp + 0x130]
mov edx, dword [esp + 0x12c]
mov eax, dword [esp + 0x128]
push ecx
mov ecx, dword [esp + 0x124]
push edx
push eax
push esi
push ecx
call fcn.111506c0
add esp, 0x14
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call ebx
push edi
call ebx
mov eax, dword [esp + 0x10]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x10c
ret
pop esi
xor eax, eax
pop ebp
add esp, 0x10c
ret