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

Disassembly:
push 0x64
mov eax, 0x100488cb
call fcn.10026412
mov ebx, ecx
mov edi, 0x1005f008
lea ecx, [ebp - 0x5c]
call fcn.100014cb
and dword [ebp - 4], 0
cmp dword [edi], 0xffffffff
jne 0x1000b383
push dword [edi - 8]
lea ecx, [ebp - 0x70]
call fcn.10001421
push str.Temp
push dword [eax]
call fcn.1000594c
pop ecx
pop ecx
mov ecx, dword [ebp - 0x70]
mov esi, eax
add ecx, 0xfffffff0
call fcn.10005108
test esi, esi
jne 0x1000b348
push 0x10060f10
jmp 0x1000b37b
push dword [edi - 8]
lea ecx, [ebp - 0x6c]
call fcn.10001421
push str.PkgDir
push dword [eax]
call fcn.1000594c
pop ecx
pop ecx
mov ecx, dword [ebp - 0x6c]
mov esi, eax
add ecx, 0xfffffff0
call fcn.10005108
test esi, esi
jne 0x1000b53c
push 0x10060f0c
lea ecx, [ebp - 0x5c]
call fcn.100015bb
cmp dword [edi], 0
lea ecx, [ebp - 0x5c]
push 0x104
jne 0x1000b3b5
call fcn.10004eec
push 0x104
lea ecx, [ebp - 0x5c]
mov esi, eax
call fcn.100055b7
push 0x104
push esi
push dword [edi - 4]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x1000b3d7
call fcn.10004eec
push 0x104
lea ecx, [ebp - 0x5c]
mov esi, eax
call fcn.100055b7
push esi
xor eax, eax
push eax
push eax
push dword [edi]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x5c]
call fcn.10005120
push 0x1004b854
lea ecx, [ebp - 0x5c]
call fcn.10005afc
lea ecx, [ebp - 0x5c]
call fcn.10005b75
mov ecx, eax
call fcn.10005a31
push 0x1004b894
push dword [ebp - 0x5c]
call fcn.1000594c
pop ecx
pop ecx
test eax, eax
je 0x1000b4ca
push 0x1004b854
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.100016c0
add esp, 0xc
mov eax, dword [eax]
xor ecx, ecx
and dword [ebp - 0x28], 0
and dword [ebp - 0x18], 0
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x28]
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 7
call fcn.1000babd
mov ecx, dword [ebp - 0x68]
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.10005108
lea eax, [ebp - 0x28]
push eax
lea eax, [edi - 8]
push eax
lea ecx, [ebp - 0x58]
call fcn.10009860
push eax
lea ecx, [ebx + 0x1c]
mov byte [ebp - 4], 4
call fcn.1000a9ed
lea ecx, [ebp - 0x40]
call fcn.1000ba17
lea ecx, [ebp - 0x58]
call fcn.1000ba17
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x1000b4ca
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], ecx
cmp eax, 0x1000
jb 0x1000b4c1
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.1000b745
mov eax, dword [ebp - 0x60]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x64]
push eax
push ecx
call fcn.10026391
pop ecx
pop ecx
cmp dword [edi], 0xffffffff
je 0x1000b53c
and dword [ebp - 0x28], 0
lea ecx, [ebp - 0x28]
push dword [edi - 8]
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.1000babd
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebx + 0x28]
call fcn.1000aa16
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x1000b53c
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], ecx
cmp eax, 0x1000
jb 0x1000b533
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.1000b745
mov eax, dword [ebp - 0x64]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x60]
push eax
push ecx
call fcn.10026391
pop ecx
pop ecx
mov ecx, dword [ebp - 0x5c]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.10005108
add edi, 0x10
cmp edi, 0x1005f228
jl 0x1000b306
push dword [ebx + 0x2c]
lea edi, [ebx + 0x28]
push dword [edi]
call fcn.1000aa3f
mov esi, dword [ebx + 0x2c]
lea eax, [ebp - 0x68]
push esi
push dword [edi]
push eax
call fcn.1000aa7d
add esp, 0x14
mov ecx, edi
push esi
push dword [eax]
lea eax, [ebp - 0x6c]
push eax
call fcn.1000bb62
push dword [ebp - 0x68]
mov eax, dword [ebx + 0x20]
sub eax, dword [ebx + 0x1c]
push 0x30
pop ecx
cdq
idiv ecx
push eax
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
call fcn.1000a766
add esp, 0x10
call fcn.100263c1
ret