Function at 0x13a651b6
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x13a6e0f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x444], 0
push ebx
mov dword [ebp - 0x450], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x454], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x44c], eax
xor eax, eax
and dword [ebp - 0x440], 0
push 9
mov word [ebp - 0x2c], ax
pop ecx
lea edi, [ebp - 0x2a]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x458], esi
stosw word es:[edi], ax
mov eax, dword [0x13a6e004]
mov edi, 0x13a6e004
cmp eax, edi
je 0x13a6523f
test byte [eax + 0x1c], 2
je 0x13a6523f
cmp byte [eax + 0x19], 5
jb 0x13a6523f
mov ebx, 0x13a02c1c
push ebx
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.13a58cc1
jmp 0x13a65244
mov ebx, 0x13a02c1c
cmp dword [ebp - 0x450], 0
jne 0x13a652a7
lea eax, [ebp - 0x43c]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x13a6529b
mov eax, dword [0x13a6e004]
cmp eax, edi
je 0x13a65292
test byte [eax + 0x1c], 2
je 0x13a65292
cmp byte [eax + 0x19], 2
jb 0x13a65292
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x13a6e004]
push ebx
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.13a5a529
xor eax, eax
xor edx, edx
jmp 0x13a65577
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x450], eax
push 0x5c
push dword [ebp - 0x450]
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x13a652d0
cmp word [eax + 2], 0
jne 0x13a652d0
push 1
push 0
push eax
call dword [sym.imp.msvcrt.dll__wcsnset]
add esp, 0xc
test esi, esi
jne 0x13a652de
mov dword [ebp - 0x458], 0x13a02c2c
cmp dword [ebp - 0x454], 0
jne 0x13a652f1
mov dword [ebp - 0x454], 0x13a01848
cmp dword [ebp + 8], 0
je 0x13a6534d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x13a02c54
lea eax, [ebp - 0x2c]
push 0x14
push eax
call fcn.13a58e45
mov esi, eax
add esp, 0x10
test esi, esi
jge 0x13a6534d
mov eax, dword [0x13a6e004]
cmp eax, edi
je 0x13a6533e
test byte [eax + 0x1c], 2
je 0x13a6533e
cmp byte [eax + 0x19], 2
jb 0x13a6533e
movzx ecx, si
push ecx
push ebx
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.13a5a529
movzx eax, si
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x13a65292
and dword [ebp - 0x448], 0
mov esi, 0x100
jmp 0x13a65360
mov ebx, 0x13a02c1c
cmp dword [ebp - 0x448], 0
jne 0x13a653bc
lea eax, [ebp - 0x470]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x470]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x13a65462
mov eax, dword [ebp - 0x45c]
mov edx, dword [ebp - 0x460]
xor ecx, ecx
shld ecx, eax, 0x18
shl eax, 0x18
shr edx, 8
xor ebx, ebx
or eax, edx
or ecx, ebx
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x440], ecx
push dword [ebp - 0x458]
lea eax, [ebp - 0x2c]
push dword [ebp - 0x440]
push dword [ebp - 0x444]
push eax
push dword [ebp - 0x454]
push dword [ebp - 0x450]
push 0x13a02c34
push dword [ebp + 0x1c]
push dword [ebp - 0x44c]
call fcn.13a58e45
mov ebx, eax
xor eax, eax
add esp, 0x24
cmp ebx, eax
jl 0x13a654a2
push 2
push eax
push 0x80
push 1
push eax
push eax
push 0x40000000
push dword [ebp - 0x44c]
call fcn.13a650e4
cmp eax, 0xffffffff
jne 0x13a6551b
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
je 0x13a6543d
cmp eax, 0x50
jne 0x13a654d5
add dword [ebp - 0x444], 1
adc dword [ebp - 0x440], 0
inc dword [ebp - 0x448]
cmp dword [ebp - 0x448], esi
jb 0x13a6535b
jmp 0x13a65522
mov eax, dword [0x13a6e004]
cmp eax, edi
je 0x13a65292
test byte [eax + 0x1c], 2
je 0x13a65292
cmp byte [eax + 0x19], 2
jb 0x13a65292
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x13a6e004]
push ebx
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.13a5a529
jmp 0x13a65292
mov eax, dword [0x13a6e004]
cmp eax, edi
je 0x13a654cd
test byte [eax + 0x1c], 2
je 0x13a654cd
cmp byte [eax + 0x19], 2
jb 0x13a654cd
movzx ecx, bx
push ecx
push 0x13a02c1c
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.13a5a529
movzx eax, bx
jmp 0x13a65341
mov eax, dword [0x13a6e004]
cmp eax, edi
je 0x13a65292
test byte [eax + 0x1c], 2
je 0x13a65292
cmp byte [eax + 0x19], 2
jb 0x13a65292
call ebx
push eax
push dword [ebp - 0x44c]
mov eax, dword [0x13a6e004]
push 0x13a02c1c
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.13a58ce7
jmp 0x13a65292
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x448], esi
jne 0x13a6556b
mov eax, dword [0x13a6e004]
cmp eax, edi
je 0x13a65564
test byte [eax + 0x1c], 2
je 0x13a65564
cmp byte [eax + 0x19], 2
jb 0x13a65564
push dword [ebp - 0x44c]
push dword [ebp - 0x440]
push dword [ebp - 0x444]
push esi
push 0x13a02c1c
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.13a65022
push 4
jmp 0x13a65342
mov eax, dword [ebp - 0x444]
mov edx, dword [ebp - 0x440]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.13a619a5
leave
ret 0x18