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

Disassembly:
mov eax, 0x610ddb
call fcn.0060bd28
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.005e1780
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 0x4706b5
lea eax, [ebp - 0x244]
push eax
call fcn.005f0038
pop ecx
cmp eax, 8
jb 0x4706b5
push 0x3a
pop eax
cmp ax, word [ebp - 0x242]
jne 0x4706b5
push 0x5c
pop eax
cmp ax, word [ebp - 0x240]
jne 0x4706b5
push 3
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x20]
call fcn.004061d4
lea ecx, [ebp - 0x2c]
call fcn.0046e29f
test eax, eax
jne 0x4705db
push 0x69c9a8
lea ecx, [ebp - 0x14]
call fcn.00406173
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x2c]
call fcn.0046aeb3
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
push 0x69c9b0
lea ecx, [ebp - 0x14]
call fcn.00406173
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x2c]
call fcn.0046aeb3
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
push 0x69c9b8
lea ecx, [ebp - 0x14]
call fcn.00406173
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x2c]
call fcn.0046aeb3
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
push 0x69c9c0
lea ecx, [ebp - 0x14]
call fcn.00406173
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x2c]
call fcn.0046aeb3
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 0x4706b5
push esi
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x20]
call fcn.00470807
pop ecx
test eax, eax
je 0x4706b5
mov esi, dword [ebp - 0x2c]
jmp 0x47065c
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.0046e376
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 0x4706a9
add esi, 4
cmp esi, dword [ebp - 0x28]
jne 0x470606
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.0046e4fa
push str.kinsttemp
lea ecx, [ebp - 0x18]
call fcn.004062d3
lea ecx, [ebp - 0x18]
call fcn.0046e4fa
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4706b8
mov ecx, esi
call fcn.0046e599
jmp 0x4706b8
push dword [esi]
lea ecx, [ebp - 0x18]
call fcn.004060f8
jmp 0x47066d
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.0042a94f
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