Function at 0x6460f7b4
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 0x6460f81f
test byte [eax + 0x1c], 2
je 0x6460f81f
cmp byte [eax + 0x19], 5
jb 0x6460f81f
push dword [eax + 0x14]
mov edx, 0x64602a24
push dword [eax + 0x10]
push 0x11
pop ecx
call fcn.64604453
test ebx, ebx
jne 0x6460f88d
lea eax, [ebp - 0x440]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x6460f881
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x6460faba
test byte [eax + 0x1c], 2
je 0x6460faba
cmp byte [eax + 0x19], 2
jb 0x6460faba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x64617004]
mov edx, 0x64602a24
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x12
pop ecx
call fcn.64604471
jmp 0x6460faba
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 0x6460f8b3
cmp word [eax + 2], cx
jne 0x6460f8b3
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 0x6460f8c5
mov dword [ebp - 0x454], 0x646029fc
mov eax, ecx
mov dword [ebp - 0x458], ecx
test eax, eax
jne 0x6460f90f
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 0x6460f9a5
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 0x646012ec
push ebx
push 0x64602a04
push 0x104
push dword [ebp - 0x45c]
call fcn.64604373
mov ebx, eax
add esp, 0x24
test ebx, ebx
js 0x6460fa7f
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.6460fba9
cmp eax, 0xffffffff
jne 0x6460fa36
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x6460f97c
cmp eax, 0x50
jne 0x6460f9ed
mov eax, dword [ebp - 0x458]
add edi, 1
adc esi, 0
inc eax
mov dword [ebp - 0x458], eax
cmp eax, 0x100
jae 0x6460fa48
mov ebx, dword [ebp - 0x460]
jmp 0x6460f8cd
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x6460faba
test byte [eax + 0x1c], 2
je 0x6460faba
cmp byte [eax + 0x19], 2
jb 0x6460faba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x64617004]
mov edx, 0x64602a24
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x14
pop ecx
call fcn.64604471
jmp 0x6460faba
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x6460faba
test byte [eax + 0x1c], 2
je 0x6460faba
cmp byte [eax + 0x19], 2
jb 0x6460faba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x64617004]
mov edx, 0x64602a24
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x16
pop ecx
call fcn.64604495
jmp 0x6460faba
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x458]
cmp eax, 0x100
jne 0x6460fa79
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x6460fa75
test byte [eax + 0x1c], 2
je 0x6460fa75
cmp byte [eax + 0x19], 2
jb 0x6460fa75
push ebx
push esi
push edi
push 0x100
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.6460f74e
push 4
jmp 0x6460fab4
mov eax, edi
mov edx, esi
jmp 0x6460fabe
mov ecx, dword [0x64617004]
cmp ecx, 0x64617004
je 0x6460fab0
test byte [ecx + 0x1c], 2
je 0x6460fab0
cmp byte [ecx + 0x19], 2
jb 0x6460fab0
movzx eax, bx
mov edx, 0x64602a24
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0x15
pop ecx
call fcn.64604471
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.64615e30
leave
ret 0x10