Function at 0x10026c50
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10028c91
mov eax, dword fs:[0]
push eax
sub esp, 0x69c
mov eax, dword [0x10032118]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.10024eb0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.10005bf0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x10]
call fcn.10005bb0
movzx ecx, al
test ecx, ecx
jne 0x100270e8
lea ecx, [ebp - 0x1c]
call fcn.10005b90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.10005b90
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.10005bb0
movzx edx, al
test edx, edx
je 0x10026d0f
push 0
push 0x1002e71c
lea ecx, [ebp - 0x10]
call fcn.10003ac0
cmp eax, 1
jne 0x10026d0f
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.10003aa0
lea ecx, [ebp - 0x18]
call fcn.100057e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10026d0f
lea ecx, [ebp - 0x18]
call fcn.10005b20
lea ecx, [ebp - 0x18]
call fcn.10005bb0
movzx ecx, al
test ecx, ecx
je 0x10026e49
cmp dword [ebp + 0xc], 0
jne 0x10026e49
mov word [ebp - 0x234], 0
push 0x20a
push 0
lea edx, [ebp - 0x232]
push edx
call fcn.1000c950
add esp, 0xc
push 0x104
lea eax, [ebp - 0x234]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.10005ab0
push 0x5c
lea ecx, [ebp - 0x1c]
call fcn.10003b40
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0xffffffff
je 0x10026dd4
mov edx, dword [ebp - 0x238]
add edx, 1
push edx
lea eax, [ebp - 0x660]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10005a30
mov dword [ebp - 0x67c], eax
mov ecx, dword [ebp - 0x67c]
mov dword [ebp - 0x680], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x680]
push edx
lea ecx, [ebp - 0x1c]
call fcn.10003aa0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x660]
call fcn.10005bd0
lea ecx, [ebp - 0x1c]
call fcn.10005bb0
movzx eax, al
test eax, eax
jne 0x10026e49
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x664]
push eax
call fcn.10003c00
add esp, 0xc
mov dword [ebp - 0x684], eax
mov ecx, dword [ebp - 0x684]
mov dword [ebp - 0x688], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x688]
push edx
lea ecx, [ebp - 0x18]
call fcn.10003aa0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x664]
call fcn.10005bd0
lea ecx, [ebp - 0x18]
call fcn.100057e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10026e49
lea ecx, [ebp - 0x18]
call fcn.10005b20
lea ecx, [ebp - 0x18]
call fcn.10005bb0
movzx eax, al
test eax, eax
je 0x10026f5d
lea ecx, [ebp - 0x1c]
call fcn.10005b20
mov word [ebp - 0x44c], 0
push 0x208
push 0
lea ecx, [ebp - 0x44a]
push ecx
call fcn.1000c950
add esp, 0xc
push 0x104
lea edx, [ebp - 0x44c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x44c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10005ab0
lea ecx, [ebp - 0x1c]
call fcn.10005bb0
movzx ecx, al
test ecx, ecx
jne 0x10026f5d
push 0x1002e720
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x668]
push eax
call fcn.10003cb0
add esp, 0xc
mov dword [ebp - 0x68c], eax
mov ecx, dword [ebp - 0x68c]
mov dword [ebp - 0x690], ecx
mov byte [ebp - 4], 5
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x690]
push eax
lea ecx, [ebp - 0x66c]
push ecx
call fcn.10003c00
add esp, 0xc
mov dword [ebp - 0x694], eax
mov edx, dword [ebp - 0x694]
mov dword [ebp - 0x698], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x698]
push eax
lea ecx, [ebp - 0x18]
call fcn.10003aa0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x66c]
call fcn.10005bd0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x668]
call fcn.10005bd0
lea ecx, [ebp - 0x18]
call fcn.100057e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10026f5d
lea ecx, [ebp - 0x18]
call fcn.10005b20
lea ecx, [ebp - 0x18]
call fcn.10005bb0
movzx ecx, al
test ecx, ecx
je 0x10027084
lea ecx, [ebp - 0x1c]
call fcn.10005b20
mov word [ebp - 0x65c], 0
push 0x208
push 0
lea edx, [ebp - 0x65a]
push edx
call fcn.1000c950
add esp, 0xc
push 0x104
lea eax, [ebp - 0x65c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [ebp - 0x65c]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.10005ab0
lea ecx, [ebp - 0x18]
call fcn.10005bb0
movzx edx, al
test edx, edx
jne 0x10027084
lea ecx, [ebp - 0x1c]
call fcn.10005bb0
movzx eax, al
test eax, eax
jne 0x10027084
push 0x1002e724
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x670]
push edx
call fcn.10003cb0
add esp, 0xc
mov dword [ebp - 0x69c], eax
mov eax, dword [ebp - 0x69c]
mov dword [ebp - 0x6a0], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x6a0]
push edx
lea eax, [ebp - 0x674]
push eax
call fcn.10003c00
add esp, 0xc
mov dword [ebp - 0x6a4], eax
mov ecx, dword [ebp - 0x6a4]
mov dword [ebp - 0x6a8], ecx
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x6a8]
push edx
lea ecx, [ebp - 0x18]
call fcn.10003aa0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x674]
call fcn.10005bd0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x670]
call fcn.10005bd0
lea ecx, [ebp - 0x18]
call fcn.100057e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10027084
lea ecx, [ebp - 0x18]
call fcn.10005b20
lea ecx, [ebp - 0x18]
call fcn.10005bb0
movzx eax, al
test eax, eax
jne 0x100270b8
lea ecx, [ebp - 0x18]
call fcn.100057e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100270b8
lea ecx, [ebp - 0x18]
call fcn.100057e0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x100270d0
lea ecx, [ebp - 0x10]
call fcn.100057e0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.10005bd0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.10005bd0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x678], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10005bd0
mov eax, dword [ebp - 0x678]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.1000c2ef
mov esp, ebp
pop ebp
ret