Function at 0x8f86e72
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x8f8c1c4]
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 [0x8f8c004]
mov edi, 0x8f8c004
cmp eax, edi
je 0x8f86efb
test byte [eax + 0x1c], 2
je 0x8f86efb
cmp byte [eax + 0x19], 5
jb 0x8f86efb
mov ebx, 0x8f72a1c
push ebx
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f72d19
jmp 0x8f86f00
mov ebx, 0x8f72a1c
cmp dword [ebp - 0x450], 0
jne 0x8f86f63
lea eax, [ebp - 0x43c]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x8f86f57
mov eax, dword [0x8f8c004]
cmp eax, edi
je 0x8f86f4e
test byte [eax + 0x1c], 2
je 0x8f86f4e
cmp byte [eax + 0x19], 2
jb 0x8f86f4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x8f8c004]
push ebx
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f72d3f
xor eax, eax
xor edx, edx
jmp 0x8f87233
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 0x8f86f8c
cmp word [eax + 2], 0
jne 0x8f86f8c
push 1
push 0
push eax
call dword [sym.imp.msvcrt.dll__wcsnset]
add esp, 0xc
test esi, esi
jne 0x8f86f9a
mov dword [ebp - 0x458], 0x8f72a48
cmp dword [ebp - 0x454], 0
jne 0x8f86fad
mov dword [ebp - 0x454], 0x8f71600
cmp dword [ebp + 8], 0
je 0x8f87009
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x8f72aa4
lea eax, [ebp - 0x2c]
push 0x14
push eax
call fcn.08f7fa82
mov esi, eax
add esp, 0x10
test esi, esi
jge 0x8f87009
mov eax, dword [0x8f8c004]
cmp eax, edi
je 0x8f86ffa
test byte [eax + 0x1c], 2
je 0x8f86ffa
cmp byte [eax + 0x19], 2
jb 0x8f86ffa
movzx ecx, si
push ecx
push ebx
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f72d3f
movzx eax, si
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x8f86f4e
and dword [ebp - 0x448], 0
mov esi, 0x100
jmp 0x8f8701c
mov ebx, 0x8f72a1c
cmp dword [ebp - 0x448], 0
jne 0x8f87078
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 0x8f8711e
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 0x8f72a84
push dword [ebp + 0x1c]
push dword [ebp - 0x44c]
call fcn.08f7fa82
mov ebx, eax
xor eax, eax
add esp, 0x24
cmp ebx, eax
jl 0x8f8715e
push 2
push eax
push 0x80
push 1
push eax
push eax
push 0x40000000
push dword [ebp - 0x44c]
call fcn.08f86ac9
cmp eax, 0xffffffff
jne 0x8f871d7
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
je 0x8f870f9
cmp eax, 0x50
jne 0x8f87191
add dword [ebp - 0x444], 1
adc dword [ebp - 0x440], 0
inc dword [ebp - 0x448]
cmp dword [ebp - 0x448], esi
jb 0x8f87017
jmp 0x8f871de
mov eax, dword [0x8f8c004]
cmp eax, edi
je 0x8f86f4e
test byte [eax + 0x1c], 2
je 0x8f86f4e
cmp byte [eax + 0x19], 2
jb 0x8f86f4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x8f8c004]
push ebx
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f72d3f
jmp 0x8f86f4e
mov eax, dword [0x8f8c004]
cmp eax, edi
je 0x8f87189
test byte [eax + 0x1c], 2
je 0x8f87189
cmp byte [eax + 0x19], 2
jb 0x8f87189
movzx ecx, bx
push ecx
push 0x8f72a1c
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f72d3f
movzx eax, bx
jmp 0x8f86ffd
mov eax, dword [0x8f8c004]
cmp eax, edi
je 0x8f86f4e
test byte [eax + 0x1c], 2
je 0x8f86f4e
cmp byte [eax + 0x19], 2
jb 0x8f86f4e
call ebx
push eax
push dword [ebp - 0x44c]
mov eax, dword [0x8f8c004]
push 0x8f72a1c
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f7392a
jmp 0x8f86f4e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x448], esi
jne 0x8f87227
mov eax, dword [0x8f8c004]
cmp eax, edi
je 0x8f87220
test byte [eax + 0x1c], 2
je 0x8f87220
cmp byte [eax + 0x19], 2
jb 0x8f87220
push dword [ebp - 0x44c]
push dword [ebp - 0x440]
push dword [ebp - 0x444]
push esi
push 0x8f72a1c
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f86956
push 4
jmp 0x8f86ffe
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.08f82466
leave
ret 0x18