Function at 0x100169c0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027c0c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2a0
mov eax, dword [0x1086c040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebx + 8]
push 0
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x120]
push 0x25
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x10016a33
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
xor al, al
jmp 0x10016ea6
lea eax, [ebp - 0x228]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x10016a23
xorps xmm0, xmm0
mov dword [ebp - 0x230], 0
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x22c], 0
movups xmmword [ebp - 0x240], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10016a70
sub ecx, edx
lea eax, [ebp - 0x120]
push ecx
push eax
lea ecx, [ebp - 0x240]
call fcn.1001aba0
mov dword [ebp - 4], 0
mov ch, 0xf
mov cl, 0x66
mov byte [ebp - 0x248], ch
mov dl, 0x62
mov byte [ebp - 0x243], 0
xor cl, ch
mov byte [ebp - 0x243], 0
xor dl, ch
mov byte [ebp - 0x246], cl
mov al, 0x21
mov byte [ebp - 0x245], dl
xor al, ch
mov dword [ebp - 0x284], 0
mov ah, 0x6a
mov byte [ebp - 0x247], al
xor ah, ch
mov dword [ebp - 0x280], 0
xorps xmm0, xmm0
mov byte [ebp - 0x244], ah
lea ecx, [ebp - 0x247]
movups xmmword [ebp - 0x294], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10016af8
sub ecx, edx
lea eax, [ebp - 0x247]
push ecx
push eax
lea ecx, [ebp - 0x294]
call fcn.1001aba0
mov dh, 0x5d
mov byte [ebp - 4], 1
mov cl, 0xb
mov byte [ebp - 0x248], dh
mov dl, 0x2f
mov byte [ebp - 0x242], 0
xor cl, dh
mov byte [ebp - 0x242], 0
mov al, 0x19
mov byte [ebp - 0x246], cl
mov ah, 0x1b
mov dword [ebp - 0x254], 0
mov ch, 0x69
mov dword [ebp - 0x250], 0
xor al, dh
xor dl, dh
xor ah, dh
mov byte [ebp - 0x245], dl
xor ch, dh
mov byte [ebp - 0x247], al
mov byte [ebp - 0x243], ch
xorps xmm0, xmm0
lea ecx, [ebp - 0x247]
mov byte [ebp - 0x244], ah
movups xmmword [ebp - 0x264], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10016b87
sub ecx, edx
lea eax, [ebp - 0x247]
push ecx
push eax
lea ecx, [ebp - 0x264]
call fcn.1001aba0
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x250]
mov eax, edi
mov ecx, dword [ebp - 0x254]
sub eax, ecx
cmp eax, 1
jb 0x10016c40
cmp edi, 0xf
lea esi, [ebp - 0x264]
lea edx, [ecx + 1]
cmova esi, dword [ebp - 0x264]
mov dword [ebp - 0x254], edx
cmp esi, 0x10860625
jae 0x10016c01
lea eax, [esi + ecx]
cmp eax, 0x10860624
jb 0x10016c01
cmp esi, 0x10860624
ja 0x10016bf7
xor edi, edi
jmp 0x10016c06
mov edi, esi
sub edi, 0x10860624
jmp 0x10016c06
mov edi, 1
push edx
lea eax, [esi + 1]
push esi
push eax
call sub.VCRUNTIME140.dll_memmove
push edi
push 0x10860624
push esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, 1
lea ecx, [esi + edi]
sub eax, edi
push eax
lea eax, [edi + 0x10860625]
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x24
lea eax, [ebp - 0x264]
jmp 0x10016c5f
push 1
sub esp, 8
mov byte [ebp - 0x245], 0
lea ecx, [ebp - 0x264]
push dword [ebp - 0x245]
push 1
call fcn.1001b1a0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2ac], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x29c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x294]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x2ac]
push eax
push dword [ebp - 0x24c]
lea ecx, [ebp - 0x27c]
call fcn.1001afb0
mov byte [ebp - 4], 4
lea edx, [ebp - 0x27c]
cmp dword [ebp - 0x268], 0xf
mov edi, dword [ebp - 0x27c]
mov eax, dword [ebp - 0x22c]
cmova edx, edi
mov esi, dword [ebp - 0x230]
sub eax, esi
mov ecx, dword [ebp - 0x26c]
push ecx
push edx
cmp ecx, eax
ja 0x10016d12
cmp dword [ebp - 0x22c], 0xf
lea eax, [esi + ecx]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x240]
cmova eax, dword [ebp - 0x240]
add esi, eax
push esi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x26c]
add esp, 0xc
mov byte [eax + esi], 0
jmp 0x10016d31
mov byte [ebp - 0x245], 0
push dword [ebp - 0x245]
push ecx
lea ecx, [ebp - 0x240]
call fcn.1001ae40
mov edi, dword [ebp - 0x27c]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x268]
cmp eax, 0xf
jbe 0x10016d6b
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x10016d61
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016e2e
push ecx
push edi
call fcn.1001b8bb
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x298]
cmp ecx, 0xf
jbe 0x10016da9
mov edx, dword [ebp - 0x2ac]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10016d9f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016e2e
push ecx
push edx
call fcn.1001b8bb
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x250]
cmp ecx, 0xf
jbe 0x10016de3
mov edx, dword [ebp - 0x264]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10016dd9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016e2e
push ecx
push edx
call fcn.1001b8bb
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x280]
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0xf
mov byte [ebp - 0x264], 0
cmp ecx, 0xf
jbe 0x10016e3e
mov edx, dword [ebp - 0x294]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10016e34
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10016e34
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1001b8bb
add esp, 8
mov ecx, dword [ebp - 0x24c]
lea eax, [ebp - 0x240]
cmp ecx, eax
je 0x10016e68
cmp dword [ebp - 0x22c], 0xf
push dword [ebp - 0x230]
cmova eax, dword [ebp - 0x240]
push eax
call fcn.1001aa60
mov ecx, dword [ebp - 0x22c]
cmp ecx, 0xf
jbe 0x10016ea4
mov edx, dword [ebp - 0x240]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10016e9a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10016e9a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1001b8bb
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1001b32c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4