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

Disassembly:
mov eax, 0x611e2f
call fcn.0060cc48
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.005e26d0
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 0x694da4
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 0x471765
lea eax, [ebp - 0x244]
push eax
call fcn.005f0fb8
pop ecx
cmp eax, 8
jb 0x471765
push 0x3a
pop eax
cmp ax, word [ebp - 0x242]
jne 0x471765
push 0x5c
pop eax
cmp ax, word [ebp - 0x240]
jne 0x471765
push 3
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x20]
call fcn.004061d4
lea ecx, [ebp - 0x2c]
call fcn.0046f2dc
test eax, eax
jne 0x47168b
push 0x69dd00
lea ecx, [ebp - 0x14]
call fcn.00406173
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x2c]
call fcn.0046bef0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
push 0x69dd08
lea ecx, [ebp - 0x14]
call fcn.00406173
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x2c]
call fcn.0046bef0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
push 0x69dd10
lea ecx, [ebp - 0x14]
call fcn.00406173
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x2c]
call fcn.0046bef0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
push 0x69dd18
lea ecx, [ebp - 0x14]
call fcn.00406173
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x2c]
call fcn.0046bef0
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 0x471765
push esi
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x20]
call fcn.004718b7
pop ecx
test eax, eax
je 0x471765
mov esi, dword [ebp - 0x2c]
jmp 0x47170c
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.0046f3b3
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 0x471759
add esi, 4
cmp esi, dword [ebp - 0x28]
jne 0x4716b6
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.0046f537
push str.kinsttemp
lea ecx, [ebp - 0x18]
call fcn.004062d3
lea ecx, [ebp - 0x18]
call fcn.0046f537
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x471768
mov ecx, esi
call fcn.0046f5d6
jmp 0x471768
push dword [esi]
lea ecx, [ebp - 0x18]
call fcn.004060f8
jmp 0x47171d
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.0042bb02
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