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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57303d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x5bd250]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
mov dword [ebp - 4], 0
xor eax, eax
push 0x206
mov dword [ebp - 0x2cc], 0
push eax
mov word [ebp - 0x298], ax
lea eax, [ebp - 0x296]
push eax
mov dword [ebp - 0x2d0], esi
call fcn.0053e230
add esp, 0xc
call fcn.00418a50
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp al, 2
jb 0x41805e
lea eax, [ebp - 0x2c4]
mov dword [ebp - 0x2c8], 1
push eax
push 8
mov dword [ebp - 0x2c4], 0
mov dword [ebp - 0x29c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41803c
lea eax, [ebp - 0x29c]
push eax
push 4
lea eax, [ebp - 0x2c8]
push eax
push 0x12
push dword [ebp - 0x2c4]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 0x2c4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], 3
jne 0x41805e
lea ecx, [ebp - 0x298]
call fcn.00415050
push 0x597bd8
lea eax, [ebp - 0x298]
push eax
call edi
xor eax, eax
cmp ax, word [ebp - 0x298]
jne 0x41808a
push 1
push 0x1a
lea eax, [ebp - 0x298]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x597bd8
lea eax, [ebp - 0x298]
push eax
call edi
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x2cc], 1
cmp word [ebp - 0x298], ax
je 0x418295
push 0x7e
push eax
mov word [ebp - 0x90], ax
lea eax, [ebp - 0x8e]
push eax
call fcn.0053e230
add esp, 0xc
mov dword [ebp - 0x29c], 0
test ebx, ebx
je 0x4181a4
lea eax, [ebp - 0x2a8]
mov dword [ebp - 0x2a8], 0
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x2a4], xmm0
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x40
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x2a8]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x298]
push eax
call edi
cmp word [ebp - 0x298], 0
jne 0x418138
xor ecx, ecx
jmp 0x418150
lea ecx, [ebp - 0x298]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418141
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x298]
mov ecx, esi
push eax
call fcn.00420490
cmp dword [esi + 0x14], 8
mov ecx, dword [esi + 0x10]
jb 0x41816c
mov eax, dword [esi]
jmp 0x41816e
mov eax, esi
mov edx, 0x5c
cmp dx, word [eax + ecx*2 - 2]
je 0x418186
push 0x596378
mov ecx, esi
call fcn.0041b930
cmp dword [esi + 0x14], 8
jb 0x418198
mov ecx, dword [esi]
call fcn.00411da0
jmp 0x418295
mov ecx, esi
call fcn.00411da0
jmp 0x418295
lea eax, [ebp - 0x2a0]
mov dword [ebp - 0x2a0], 0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp dword [esi + 0x14], 8
jb 0x4181c5
mov ecx, dword [esi]
jmp 0x4181c7
mov ecx, esi
push 0xa
lea eax, [ebp - 0x90]
push eax
mov eax, dword [ebp - 0x2a0]
add eax, ecx
push eax
call fcn.0053d46f
add esp, 0xc
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x2c0]
push eax
call fcn.00420610
push 4
push str..tmp
lea ecx, [ebp - 0x2c0]
mov dword [ebp - 4], 1
call fcn.0041c100
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x418228
lea ecx, [ebp - 0x298]
call fcn.00411da0
cmp dword [ebp - 0x2ac], 8
lea eax, [ebp - 0x2c0]
cmovae eax, dword [ebp - 0x2c0]
push eax
lea eax, [ebp - 0x298]
push eax
call edi
cmp word [ebp - 0x298], 0
jne 0x418254
xor ecx, ecx
jmp 0x41826f
lea ecx, [ebp - 0x298]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418260
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x298]
mov ecx, esi
push eax
call fcn.00420490
cmp dword [ebp - 0x2ac], 8
jb 0x418295
push dword [ebp - 0x2c0]
call fcn.0053ce3a
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret