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

Disassembly:
mov eax, 0x4b9aa7
call fcn.004b5be0
sub esp, 0x240
and dword [ebp - 0x38], 0
mov eax, dword [0x4ea5f8]
push ebx
push esi
mov ebx, 0x4ea5f8
push edi
mov ecx, ebx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
and dword [ebp - 4], 0
mov eax, dword [0x4ea5f8]
mov ecx, ebx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x38], edi
push 0x206
lea eax, [ebp - 0x24a]
push 0
mov byte [ebp - 4], 1
and word [ebp - 0x24c], 0
push eax
call fcn.00482db0
mov eax, dword [0x4ea5f8]
add esp, 0xc
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 2
mov eax, dword [0x4ea5f8]
mov ecx, ebx
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x20], ebx
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
push 0x4c3cb8
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 4
call fcn.00427bb4
push 0x103
lea eax, [ebp - 0x24c]
push eax
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x47427e
lea eax, [ebp - 0x24c]
push eax
call fcn.004833d5
cmp eax, 8
pop ecx
jb 0x47427e
cmp word [ebp - 0x24a], 0x3a
jne 0x47427e
cmp word [ebp - 0x248], 0x5c
jne 0x47427e
lea eax, [ebp - 0x24c]
push eax
push 3
pop ebx
lea eax, [ebp - 0x20]
call fcn.00427a93
lea eax, [ebp - 0x34]
push eax
call fcn.00472046
test eax, eax
pop ecx
jne 0x47408a
push 0x4cdda8
lea eax, [ebp - 0x14]
push eax
call fcn.00427bb4
lea eax, [ebp - 0x14]
push eax
lea edi, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.00466380
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040d60b
push 0x4cddb0
lea eax, [ebp - 0x14]
push eax
call fcn.00427bb4
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 7
call fcn.00466380
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040d60b
push 0x4cddb8
lea eax, [ebp - 0x14]
push eax
call fcn.00427bb4
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 8
call fcn.00466380
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040d60b
push 0x4cddc0
lea eax, [ebp - 0x14]
push eax
call fcn.00427bb4
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 9
call fcn.00466380
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040d60b
mov edi, dword [ebp - 0x38]
cmp dword [ebp - 0x30], 0
je 0x47409b
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x30]
sar eax, 2
jne 0x4740e5
lea ebx, [esi - 0x10]
mov eax, ebx
call fcn.00427b00
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.0040d60b
lea esi, [ebp - 0x34]
call fcn.0042d311
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.0040d60b
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.0040d60b
lea eax, [edi - 0x10]
call fcn.0040d60b
mov eax, ebx
jmp 0x4742c2
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
lea ebx, [ebp - 0x34]
call fcn.0047437c
test eax, eax
pop ecx
pop ecx
je 0x47409b
mov esi, dword [ebp - 0x30]
cmp esi, dword [ebp - 0x2c]
jbe 0x474107
call fcn.00484455
lea eax, [ebp - 0x34]
mov ebx, eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], esi
mov esi, dword [ebp - 0x2c]
cmp dword [ebp - 0x30], esi
jbe 0x47411f
call fcn.00484455
test ebx, ebx
je 0x47412a
lea eax, [ebp - 0x34]
cmp ebx, eax
je 0x47412f
call fcn.00484455
cmp dword [ebp - 0x3c], esi
je 0x4741eb
lea esi, [ebp - 0x40]
call fcn.00417bbd
lea edi, [ebp - 0x18]
call fcn.00427b58
push 2
pop edi
push edi
lea esi, [ebp - 0x18]
call fcn.00427923
mov ecx, dword [ebp - 0x18]
cmp dword [ecx - 8], edi
jl 0x4741cc
push eax
mov dword [ecx - 0xc], edi
mov ecx, dword [ebp - 0x18]
and word [ecx + 4], 0
lea eax, [ebp - 0x14]
push eax
call fcn.00427bb4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call fcn.0047212b
mov esi, eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040d60b
cmp dword [ebp - 0x18], 0
jne 0x474198
xor eax, eax
jmp 0x4741a1
push dword [ebp - 0x18]
call fcn.004833d5
pop ecx
lea edx, [ebp - 0x18]
call fcn.0041473f
test esi, esi
jne 0x4741d6
test ebx, ebx
jne 0x4741b6
call fcn.00484455
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebx + 8]
jb 0x4741c3
call fcn.00484455
add dword [ebp - 0x3c], 4
jmp 0x474112
push 0x80070057
call fcn.0041486b
lea esi, [ebp - 0x40]
call fcn.00417bbd
push dword [eax]
lea eax, [ebp - 0x1c]
push eax
call fcn.00427a6d
jmp 0x4741f6
lea eax, [ebp - 0x20]
lea edi, [ebp - 0x1c]
call fcn.00427b58
lea eax, [ebp - 0x1c]
call fcn.0044324b
lea esi, [ebp - 0x1c]
call fcn.00472206
push str.kinsttemp
mov eax, esi
push eax
call fcn.00427746
call fcn.00472206
mov esi, dword [ebp - 0x1c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47422d
push esi
call fcn.00472324
pop ecx
lea edi, [esi - 0x10]
mov eax, edi
call fcn.00427b00
mov ebx, dword [ebp + 8]
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.0040d60b
lea esi, [ebp - 0x34]
call fcn.0042d311
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.0040d60b
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.0040d60b
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
call fcn.0040d60b
mov eax, edi
call fcn.0040d60b
mov eax, ebx
jmp 0x4742ca
lea eax, [esi - 0x10]
mov dword [ebp - 0x14], eax
call fcn.00427b00
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.0040d60b
lea esi, [ebp - 0x34]
call fcn.0042d311
lea eax, [ebx - 0x10]
call fcn.0040d60b
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.0040d60b
lea eax, [edi - 0x10]
call fcn.0040d60b
mov eax, dword [ebp - 0x14]
call fcn.0040d60b
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret