Function at 0x6460f83c
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x646170a0]
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 - 0x45c], 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 [0x64617004]
cmp eax, 0x64617004
je 0x6460f8a7
test byte [eax + 0x1c], 2
je 0x6460f8a7
cmp byte [eax + 0x19], 5
jb 0x6460f8a7
push dword [eax + 0x14]
mov edx, 0x64602a14
push dword [eax + 0x10]
push 0x11
pop ecx
call fcn.64604423
test ebx, ebx
jne 0x6460f915
lea eax, [ebp - 0x440]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x6460f909
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x6460fb42
test byte [eax + 0x1c], 2
je 0x6460fb42
cmp byte [eax + 0x19], 2
jb 0x6460fb42
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x64617004]
mov edx, 0x64602a14
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x12
pop ecx
call fcn.64604441
jmp 0x6460fb42
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 0x6460f93b
cmp word [eax + 2], cx
jne 0x6460f93b
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 0x6460f94d
mov dword [ebp - 0x454], 0x646029ec
mov eax, ecx
mov dword [ebp - 0x458], ecx
test eax, eax
jne 0x6460f997
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 0x6460fa2d
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 0x646012dc
push ebx
push 0x646029f4
push 0x104
push dword [ebp - 0x45c]
call fcn.64604343
mov ebx, eax
add esp, 0x24
test ebx, ebx
js 0x6460fb07
mov ebx, dword [ebp - 0x45c]
mov edx, 0x40000000
push ecx
push ecx
push 0x80
push 1
push ecx
push 0
mov ecx, ebx
call fcn.6460fc33
cmp eax, 0xffffffff
jne 0x6460fabe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x6460fa04
cmp eax, 0x50
jne 0x6460fa75
mov eax, dword [ebp - 0x458]
add edi, 1
adc esi, 0
inc eax
mov dword [ebp - 0x458], eax
cmp eax, 0x100
jae 0x6460fad0
mov ebx, dword [ebp - 0x460]
jmp 0x6460f955
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x6460fb42
test byte [eax + 0x1c], 2
je 0x6460fb42
cmp byte [eax + 0x19], 2
jb 0x6460fb42
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x64617004]
mov edx, 0x64602a14
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x14
pop ecx
call fcn.64604441
jmp 0x6460fb42
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x6460fb42
test byte [eax + 0x1c], 2
je 0x6460fb42
cmp byte [eax + 0x19], 2
jb 0x6460fb42
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x64617004]
mov edx, 0x64602a14
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x16
pop ecx
call fcn.64604465
jmp 0x6460fb42
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x458]
cmp eax, 0x100
jne 0x6460fb01
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x6460fafd
test byte [eax + 0x1c], 2
je 0x6460fafd
cmp byte [eax + 0x19], 2
jb 0x6460fafd
push ebx
push esi
push edi
push 0x100
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.6460f775
push 4
jmp 0x6460fb3c
mov eax, edi
mov edx, esi
jmp 0x6460fb46
mov ecx, dword [0x64617004]
cmp ecx, 0x64617004
je 0x6460fb38
test byte [ecx + 0x1c], 2
je 0x6460fb38
cmp byte [ecx + 0x19], 2
jb 0x6460fb38
movzx eax, bx
mov edx, 0x64602a14
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0x15
pop ecx
call fcn.64604441
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.64615f50
mov esp, ebp
pop ebp
ret 0x10