Function at 0x101f3e7
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x1077400]
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 [0x1077004]
mov edi, 0x1077004
cmp eax, edi
je 0x101f470
test byte [eax + 0x1c], 2
je 0x101f470
cmp byte [eax + 0x19], 5
jb 0x101f470
mov ebx, 0x10055cc
push ebx
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015bb9
jmp 0x101f475
mov ebx, 0x10055cc
cmp dword [ebp - 0x450], 0
jne 0x101f4d8
lea eax, [ebp - 0x43c]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x101f4cc
mov eax, dword [0x1077004]
cmp eax, edi
je 0x101f4c3
test byte [eax + 0x1c], 2
je 0x101f4c3
cmp byte [eax + 0x19], 2
jb 0x101f4c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1077004]
push ebx
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101e0d7
xor eax, eax
xor edx, edx
jmp 0x101f7a8
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 0x101f501
cmp word [eax + 2], 0
jne 0x101f501
push 1
push 0
push eax
call dword [sym.imp.msvcrt.dll__wcsnset]
add esp, 0xc
test esi, esi
jne 0x101f50f
mov dword [ebp - 0x458], 0x1005610
cmp dword [ebp - 0x454], 0
jne 0x101f522
mov dword [ebp - 0x454], 0x10027e4
cmp dword [ebp + 8], 0
je 0x101f57e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x10056a0
lea eax, [ebp - 0x2c]
push 0x14
push eax
call fcn.010166de
mov esi, eax
add esp, 0x10
test esi, esi
jge 0x101f57e
mov eax, dword [0x1077004]
cmp eax, edi
je 0x101f56f
test byte [eax + 0x1c], 2
je 0x101f56f
cmp byte [eax + 0x19], 2
jb 0x101f56f
movzx ecx, si
push ecx
push ebx
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101e0d7
movzx eax, si
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x101f4c3
and dword [ebp - 0x448], 0
mov esi, 0x100
jmp 0x101f591
mov ebx, 0x10055cc
cmp dword [ebp - 0x448], 0
jne 0x101f5ed
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 0x101f693
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 0x1005680
push dword [ebp + 0x1c]
push dword [ebp - 0x44c]
call fcn.010166de
mov ebx, eax
xor eax, eax
add esp, 0x24
cmp ebx, eax
jl 0x101f6d3
push 2
push eax
push 0x80
push 1
push eax
push eax
push 0x40000000
push dword [ebp - 0x44c]
call fcn.0101efb7
cmp eax, 0xffffffff
jne 0x101f74c
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
je 0x101f66e
cmp eax, 0x50
jne 0x101f706
add dword [ebp - 0x444], 1
adc dword [ebp - 0x440], 0
inc dword [ebp - 0x448]
cmp dword [ebp - 0x448], esi
jb 0x101f58c
jmp 0x101f753
mov eax, dword [0x1077004]
cmp eax, edi
je 0x101f4c3
test byte [eax + 0x1c], 2
je 0x101f4c3
cmp byte [eax + 0x19], 2
jb 0x101f4c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1077004]
push ebx
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101e0d7
jmp 0x101f4c3
mov eax, dword [0x1077004]
cmp eax, edi
je 0x101f6fe
test byte [eax + 0x1c], 2
je 0x101f6fe
cmp byte [eax + 0x19], 2
jb 0x101f6fe
movzx ecx, bx
push ecx
push 0x10055cc
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101e0d7
movzx eax, bx
jmp 0x101f572
mov eax, dword [0x1077004]
cmp eax, edi
je 0x101f4c3
test byte [eax + 0x1c], 2
je 0x101f4c3
cmp byte [eax + 0x19], 2
jb 0x101f4c3
call ebx
push eax
push dword [ebp - 0x44c]
mov eax, dword [0x1077004]
push 0x10055cc
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101ea0b
jmp 0x101f4c3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x448], esi
jne 0x101f79c
mov eax, dword [0x1077004]
cmp eax, edi
je 0x101f795
test byte [eax + 0x1c], 2
je 0x101f795
cmp byte [eax + 0x19], 2
jb 0x101f795
push dword [ebp - 0x44c]
push dword [ebp - 0x440]
push dword [ebp - 0x444]
push esi
push 0x10055cc
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101eeb4
push 4
jmp 0x101f573
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.0101d9bb
leave
ret 0x18