Function at 0x6460fe64
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x646180b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x454], eax
lea edi, [ebp - 0x2c]
mov eax, dword [ebp + 0x10]
mov ebx, edx
push 0xa
mov dword [ebp - 0x458], eax
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x460], edx
mov edi, eax
mov esi, eax
mov eax, dword [0x6461800c]
cmp eax, 0x6461800c
je 0x6460fecf
test byte [eax + 0x1c], 2
je 0x6460fecf
cmp byte [eax + 0x19], 5
jb 0x6460fecf
push dword [eax + 0x14]
mov edx, 0x646037ec
push dword [eax + 0x10]
push 0x11
pop ecx
call fcn.6460534c
test ebx, ebx
jne 0x6460ff3d
lea eax, [ebp - 0x440]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x6460ff31
mov eax, dword [0x6461800c]
cmp eax, 0x6461800c
je 0x64610164
test byte [eax + 0x1c], 2
je 0x64610164
cmp byte [eax + 0x19], 2
jb 0x64610164
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x6461800c]
mov edx, 0x646037ec
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x12
pop ecx
call fcn.64605370
jmp 0x64610164
lea ebx, [ebp - 0x440]
mov dword [ebp - 0x460], ebx
push 0x5c
push ebx
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
xor ecx, ecx
test eax, eax
je 0x6460ff63
cmp word [eax + 2], cx
jne 0x6460ff63
push 1
push ecx
push eax
call dword [sym.imp.msvcrt.dll__wcsnset]
add esp, 0xc
xor ecx, ecx
cmp dword [ebp - 0x454], esi
jne 0x6460ff75
mov dword [ebp - 0x454], 0x646037c4
mov eax, ecx
mov dword [ebp - 0x45c], ecx
test eax, eax
jne 0x6460ffbf
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x64610059
mov esi, dword [ebp - 0x464]
xor edi, edi
or edi, dword [ebp - 0x468]
shrd edi, esi, 8
shr esi, 8
push dword [ebp - 0x454]
lea eax, [ebp - 0x2c]
push esi
push edi
push eax
push 0x646020d4
push ebx
push 0x646037cc
push 0x104
push dword [ebp - 0x458]
call fcn.64605260
mov ebx, eax
add esp, 0x24
test ebx, ebx
js 0x64610129
mov ebx, dword [ebp - 0x458]
mov edx, 0x40000000
push ecx
push ecx
push 0x80
push 1
push ecx
push 0
mov ecx, ebx
call fcn.6461027f
cmp eax, 0xffffffff
jne 0x6461011c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x6461002c
cmp eax, 0x50
jne 0x646100a1
mov eax, dword [ebp - 0x45c]
add edi, 1
mov ecx, edi
adc esi, 0
inc eax
mov dword [ebp - 0x45c], eax
mov edx, esi
cmp eax, 0x100
jae 0x646100e7
mov ebx, dword [ebp - 0x460]
jmp 0x6460ff7d
mov eax, dword [0x6461800c]
cmp eax, 0x6461800c
je 0x64610164
test byte [eax + 0x1c], 2
je 0x64610164
cmp byte [eax + 0x19], 2
jb 0x64610164
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x6461800c]
mov edx, 0x646037ec
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x14
pop ecx
call fcn.64605370
jmp 0x64610164
mov eax, dword [0x6461800c]
cmp eax, 0x6461800c
je 0x64610164
test byte [eax + 0x1c], 2
je 0x64610164
cmp byte [eax + 0x19], 2
jb 0x64610164
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x6461800c]
mov edx, 0x646037ec
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x16
pop ecx
call fcn.6460539a
jmp 0x64610164
mov edi, ecx
mov esi, edx
jne 0x64610123
mov eax, dword [0x6461800c]
cmp eax, 0x6461800c
je 0x64610118
test byte [eax + 0x1c], 2
je 0x64610118
cmp byte [eax + 0x19], 2
jb 0x64610118
push ebx
push edx
push ecx
push 0x100
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.6460fdfc
push 4
jmp 0x6461015e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov edx, esi
jmp 0x64610168
mov ecx, dword [0x6461800c]
cmp ecx, 0x6461800c
je 0x6461015a
test byte [ecx + 0x1c], 2
je 0x6461015a
cmp byte [ecx + 0x19], 2
jb 0x6461015a
movzx eax, bx
mov edx, 0x646037ec
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0x15
pop ecx
call fcn.64605370
movzx eax, bx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
xor edx, edx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.64616f60
leave
ret 0x10