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

Disassembly:
mov eax, 0x61156d
call fcn.0060c3a8
sub esp, 0x238
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov esi, edx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], edi
call fcn.00404f47
push eax
lea ecx, [ebp - 0x18]
call fcn.004065d8
mov dword [ebp - 4], edi
call fcn.00404f47
push eax
lea ecx, [ebp - 0x34]
call fcn.004065d8
push 0x208
lea eax, [ebp - 0x244]
mov byte [ebp - 4], 1
push edi
push eax
call fcn.005e1e60
add esp, 0xc
call fcn.00404f47
push eax
lea ecx, [ebp - 0x30]
call fcn.004065d8
mov byte [ebp - 4], 2
call fcn.00404f47
push eax
lea ecx, [ebp - 0x20]
call fcn.004065d8
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
push 0x693da4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00406173
push 0x103
lea eax, [ebp - 0x244]
mov byte [ebp - 4], 5
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x47185d
lea eax, [ebp - 0x244]
push eax
call fcn.005f06f8
pop ecx
cmp eax, 8
jb 0x47185d
push 0x3a
pop eax
cmp ax, word [ebp - 0x242]
jne 0x47185d
push 0x5c
pop eax
cmp ax, word [ebp - 0x240]
jne 0x47185d
push 3
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x20]
call fcn.004061d4
lea ecx, [ebp - 0x2c]
call fcn.0046f3e0
test eax, eax
jne 0x471783
push 0x69ccd8
lea ecx, [ebp - 0x14]
call fcn.00406173
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x2c]
call fcn.0046bff4
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
push 0x69cce0
lea ecx, [ebp - 0x14]
call fcn.00406173
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x2c]
call fcn.0046bff4
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
push 0x69cce8
lea ecx, [ebp - 0x14]
call fcn.00406173
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x2c]
call fcn.0046bff4
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
push 0x69ccf0
lea ecx, [ebp - 0x14]
call fcn.00406173
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x2c]
call fcn.0046bff4
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x28]
sete al
test al, al
jne 0x47185d
push esi
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x20]
call fcn.004719af
pop ecx
test eax, eax
je 0x47185d
mov esi, dword [ebp - 0x2c]
jmp 0x471804
push esi
lea ecx, [ebp - 0x1c]
call fcn.00406123
push 2
lea ecx, [ebp - 0x1c]
call fcn.0040682a
push 2
lea ecx, [ebp - 0x1c]
mov edi, eax
call fcn.00406601
push edi
lea ecx, [ebp - 0x14]
call fcn.00406173
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call fcn.0046f4b7
mov byte [ebp - 4], 5
mov edi, eax
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00404ea9
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
call fcn.00408f1c
test edi, edi
jne 0x471851
add esi, 4
cmp esi, dword [ebp - 0x28]
jne 0x4717ae
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
call fcn.00406123
lea ecx, [ebp - 0x18]
call fcn.00405fc4
lea ecx, [ebp - 0x18]
call fcn.0046f63b
push str.kinsttemp
lea ecx, [ebp - 0x18]
call fcn.004062d3
lea ecx, [ebp - 0x18]
call fcn.0046f63b
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x471860
mov ecx, esi
call fcn.0046f6da
jmp 0x471860
push dword [esi]
lea ecx, [ebp - 0x18]
call fcn.004060f8
jmp 0x471815
mov esi, dword [ebp - 0x18]
add esi, 0xfffffff0
push esi
call fcn.004067cf
pop ecx
mov ecx, dword [ebp - 0x1c]
add eax, 0x10
mov dword [ebx], eax
lea ecx, [ecx - 0x10]
call fcn.00404ea9
lea ecx, [ebp - 0x2c]
call fcn.0042ba9f
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov ecx, esi
call fcn.00404ea9
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret