Function at 0x6460f734
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 0x6460f79f
test byte [eax + 0x1c], 2
je 0x6460f79f
cmp byte [eax + 0x19], 5
jb 0x6460f79f
push dword [eax + 0x14]
mov edx, 0x64602a24
push dword [eax + 0x10]
push 0x11
pop ecx
call fcn.64604453
test ebx, ebx
jne 0x6460f80d
lea eax, [ebp - 0x440]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x6460f801
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x6460fa3a
test byte [eax + 0x1c], 2
je 0x6460fa3a
cmp byte [eax + 0x19], 2
jb 0x6460fa3a
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 0x6460fa3a
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 0x6460f833
cmp word [eax + 2], cx
jne 0x6460f833
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 0x6460f845
mov dword [ebp - 0x454], 0x646029fc
mov eax, ecx
mov dword [ebp - 0x458], ecx
test eax, eax
jne 0x6460f88f
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 0x6460f925
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 0x6460f9ff
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.6460fb29
cmp eax, 0xffffffff
jne 0x6460f9b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x6460f8fc
cmp eax, 0x50
jne 0x6460f96d
mov eax, dword [ebp - 0x458]
add edi, 1
adc esi, 0
inc eax
mov dword [ebp - 0x458], eax
cmp eax, 0x100
jae 0x6460f9c8
mov ebx, dword [ebp - 0x460]
jmp 0x6460f84d
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x6460fa3a
test byte [eax + 0x1c], 2
je 0x6460fa3a
cmp byte [eax + 0x19], 2
jb 0x6460fa3a
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 0x6460fa3a
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x6460fa3a
test byte [eax + 0x1c], 2
je 0x6460fa3a
cmp byte [eax + 0x19], 2
jb 0x6460fa3a
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 0x6460fa3a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x458]
cmp eax, 0x100
jne 0x6460f9f9
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x6460f9f5
test byte [eax + 0x1c], 2
je 0x6460f9f5
cmp byte [eax + 0x19], 2
jb 0x6460f9f5
push ebx
push esi
push edi
push 0x100
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.6460f6ce
push 4
jmp 0x6460fa34
mov eax, edi
mov edx, esi
jmp 0x6460fa3e
mov ecx, dword [0x64617004]
cmp ecx, 0x64617004
je 0x6460fa30
test byte [ecx + 0x1c], 2
je 0x6460fa30
cmp byte [ecx + 0x19], 2
jb 0x6460fa30
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.64615dc0
leave
ret 0x10