Function at 0x196bf590
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov byte [ebp - 5], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x196bf5c0
jmp 0x196bf899
mov eax, dword [0x196c8cb8]
add eax, 0x34
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax + 0x10a]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
shl eax, 1
push eax
call fcn.196c3770
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x196bf600
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x196bf899
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, dword [ebp - 0x10]
jbe 0x196bf620
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x196bf899
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x30b96a8f
push 6
push 0x196c4d00
call fcn.196b17f0
add esp, 0xc
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.196b6ec0
add esp, 0x10
movzx ecx, byte [0x196c8a36]
test ecx, ecx
je 0x196bf721
push 0
push 0
push 0xf1725e2c
push 0xb
push 0x196c4d08
call fcn.196b17f0
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x196bf698
jmp 0x196bf899
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
lea ecx, [eax + edx + 0x12d]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
shl edx, 1
push edx
call fcn.196c3770
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x196bf6cc
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x196bf899
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0xf1725e2c
push 0xb
push 0x196c4d08
call fcn.196b17f0
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x196bf6fd
jmp 0x196bf899
push 0x843cbace
push 0x20
push 0x196c4d14
call fcn.196b17f0
add esp, 0xc
push eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x196bf7e7
push 0xcd299614
push 0xc
push 0x196c4d38
call fcn.196b17f0
add esp, 0xc
mov dword [ebp - 0x24], eax
push 0
push 0
push 0xcd299614
push 0xc
push 0x196c4d38
call fcn.196b17f0
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x196bf793
push 0xd2d61642
push 7
push 0x196c4d48
call fcn.196b17f0
add esp, 0xc
mov dword [ebp - 0x24], eax
push 0
push 0
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x196bf793
jmp 0x196bf899
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
lea eax, [edx + ecx + 0x12d]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
shl ecx, 1
push ecx
call fcn.196c3770
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x196bf7c7
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x196bf899
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x196bf7e7
jmp 0x196bf899
push 0xb26f8862
push 0x18
push str._aWVW
call fcn.196b17f0
add esp, 0xc
push eax
push 0
mov edx, dword [ebp - 0xc]
push edx
call fcn.196b6ec0
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0x65162757
push 0xa
push 0x196c487c
call fcn.196b17f0
add esp, 0xc
push eax
call fcn.196c25e0
add esp, 0xc
test eax, eax
setne dl
mov byte [ebp - 5], dl
movzx eax, byte [ebp - 5]
test eax, eax
jne 0x196bf841
jmp 0x196bf899
cmp dword [ebp - 0xc], 0
jne 0x196bf849
jmp 0x196bf899
cmp dword [ebp - 4], 0
jne 0x196bf851
jmp 0x196bf899
mov ecx, dword [ebp - 4]
push ecx
push 0x2a71f758
push 0xa4
push 0x196c4d70
call fcn.196b17f0
add esp, 0xc
push eax
mov edx, dword [ebp - 0xc]
push edx
call fcn.196b6c20
add esp, 0xc
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.196c2850
add esp, 8
test eax, eax
setne dl
mov byte [ebp - 5], dl
xor eax, eax
jne 0x196bf5a8
mov ecx, dword [ebp - 4]
push ecx
call fcn.196c3970
add esp, 4
mov edx, dword [ebp - 0xc]
push edx
call fcn.196c3970
add esp, 4
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret