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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102344af
mov eax, dword fs:[0]
push eax
mov eax, 0x2050
call fcn.10231a20
mov eax, dword [0x102d4008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x2040], eax
mov dword [ebp - 0x2034], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x205c], eax
mov dword [ebp - 0x2038], 0
mov dword [ebp - 4], 1
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2030]
mov dword [ebp - 0x2038], 1
call fcn.101031a0
lea eax, [ebp - 0x2030]
mov dword [ebp - 4], 3
push eax
lea ecx, [ebp - 0x2058]
call fcn.1004d850
lea ecx, [ebp - 0x2030]
mov esi, eax
call fcn.1004b070
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x10103e0a
mov edx, dword [eax]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x10103ed4
mov eax, edx
cmp word [eax], 0x25
je 0x10103e2a
add eax, 2
sub ecx, 1
jne 0x10103e17
jmp 0x10103ed4
test eax, eax
je 0x10103ed4
sub eax, edx
sar eax, 1
cmp eax, 0xffffffff
je 0x10103ed4
cmp dword [ebp - 0x201c], 8
lea eax, [ebp - 0x2030]
push 0
cmovae eax, dword [ebp - 0x2030]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x10103ed4
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x1010]
cmp dword [ebp - 0x201c], 8
lea eax, [ebp - 0x2030]
cmovae eax, dword [ebp - 0x2030]
push 0x7ff
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x10103ed4
cmp eax, edi
ja 0x10103ed4
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10103eb2
sub ecx, edx
lea eax, [ebp - 0x1010]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2058]
call fcn.1004b0e0
lea eax, [ebp - 0x2030]
cmp eax, esi
je 0x10103f0f
mov ecx, eax
call fcn.1004b080
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x2030], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x2020], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 0x2038], 1
lea ecx, [ebp - 0x2058]
mov byte [ebp - 4], 4
call fcn.1004b080
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x17c]
push 0x12
xorps xmm0, xmm0
mov dword [ebp - 0x16c], 0
xor eax, eax
mov dword [ebp - 0x168], 0
push str._desktopdirectory_
movlpd qword [ebp - 0x2018], xmm0
mov dword [ebp - 0x16c], 0
mov dword [ebp - 0x168], 7
mov word [ebp - 0x17c], ax
call fcn.1004b0e0
mov byte [ebp - 4], 8
mov dword [ebp - 0x164], 0x10
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x160]
push 0x18
xor eax, eax
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0
push str._commondesktopdirectory_
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 7
mov word [ebp - 0x160], ax
call fcn.1004b0e0
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x148], 0x19
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x144]
push 0xb
xor eax, eax
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
push str._startmenu_
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 7
mov word [ebp - 0x144], ax
call fcn.1004b0e0
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x12c], 0xb
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x128]
push 0x11
xor eax, eax
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
push str._commonstartmenu_
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 7
mov word [ebp - 0x128], ax
call fcn.1004b0e0
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x110], 0x16
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x10c]
push 9
xor eax, eax
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0xf8], 0
push str._appdata_
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0xf8], 7
mov word [ebp - 0x10c], ax
call fcn.1004b0e0
mov byte [ebp - 4], 0x10
mov dword [ebp - 0xf4], 0x1a
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0xf0]
push 0xf
xor eax, eax
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0
push str._commonappdata_
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 7
mov word [ebp - 0xf0], ax
call fcn.1004b0e0
mov byte [ebp - 4], 0x12
mov dword [ebp - 0xd8], 0x23
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0xd4]
push 0xa
xor eax, eax
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 0
push str._programs_
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 7
mov word [ebp - 0xd4], ax
call fcn.1004b0e0
mov byte [ebp - 4], 0x14
mov dword [ebp - 0xbc], 2
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xb8]
push 0x10
xor eax, eax
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
push str._commonprograms_
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 7
mov word [ebp - 0xb8], ax
call fcn.1004b0e0
mov byte [ebp - 4], 0x16
mov dword [ebp - 0xa0], 0x17
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x9c]
push 0xe
xor eax, eax
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
push str._localappdata_
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 7
mov word [ebp - 0x9c], ax
call fcn.1004b0e0
mov byte [ebp - 4], 0x18
mov dword [ebp - 0x84], 0x1c
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x80]
push 9
xor eax, eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
push str._desktop_
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x80], ax
call fcn.1004b0e0
mov byte [ebp - 4], 0x1a
mov dword [ebp - 0x68], 0
mov byte [ebp - 4], 0x1b
mov dword [ebp - 0x54], 0
push 0xa
xor eax, eax
mov dword [ebp - 0x50], 0
push str._system32_
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
call fcn.1004b0e0
mov byte [ebp - 4], 0x1c
mov dword [ebp - 0x4c], 0x25
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x48]
push 0xe
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
push str._localappdata_
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
call fcn.1004b0e0
mov byte [ebp - 4], 0x1e
mov dword [ebp - 0x30], 0x1c
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x2c]
push 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0x102b6740
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.1004b0e0
mov byte [ebp - 4], 0x20
mov dword [ebp - 0x14], 0x24
mov byte [ebp - 4], 0x21
mov dword [ebp - 0x2018], 0
mov dword [ebp - 0x2014], 0
call fcn.10105e40
mov dword [ebp - 0x2018], eax
mov byte [ebp - 4], 0x23
lea edi, [ebp - 0x17c]
nop dword [eax]
mov esi, dword [ebp - 0x2018]
lea ecx, [ebp - 0x2018]
push edi
call fcn.10107db0
push eax
add eax, 0x10
lea ecx, [ebp - 0x2018]
push eax
push esi
lea eax, [ebp - 0x2034]
push eax
call fcn.10107e30
add edi, 0x1c
lea eax, [ebp - 0x10]
cmp edi, eax
jne 0x10104360
push fcn.1004b010
push 0xd
push 0x1c
lea eax, [ebp - 0x17c]
mov byte [ebp - 4], 0x25
push eax
call fcn.1010f94d
mov edi, dword [ebp - 0x2018]
mov esi, dword [edi]
cmp esi, edi
je 0x101044b9
nop dword [eax]
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
mov dword [ebp - 0x203c], eax
mov ecx, eax
jb 0x101043d3
mov ecx, dword [eax]
cmp dword [ebp - 0x201c], 8
lea eax, [ebp - 0x2030]
push ecx
cmovae eax, dword [ebp - 0x2030]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
mov ecx, eax
test ecx, ecx
jne 0x10104438
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], cl
je 0x10104419
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], cl
jne 0x10104415
cmp esi, dword [eax + 8]
jne 0x10104415
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10104405
mov esi, eax
jmp 0x1010442f
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x1010442f
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x10104423
cmp esi, edi
jne 0x101043c0
jmp 0x101044b9
cmp dword [ebp - 0x201c], 8
lea eax, [ebp - 0x2030]
push 0x1000
cmovae eax, dword [ebp - 0x2030]
sub ecx, eax
lea eax, [ebp - 0x2010]
sar ecx, 1
push 0
push eax
mov dword [ebp - 0x2034], ecx
call sub.VCRUNTIME140.dll_memset
mov esi, dword [ebp - 0x203c]
lea eax, [ebp - 0x2010]
add esp, 0xc
push 0
push dword [esi + 0x18]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x101044b9
mov ecx, esi
call fcn.1004b070
lea ecx, [ebp - 0x2010]
mov esi, dword [eax + 0x10]
call fcn.1004b290
push eax
lea eax, [ebp - 0x2010]
push eax
push esi
push dword [ebp - 0x2034]
lea ecx, [ebp - 0x2030]
call fcn.10058250
lea edx, [ebp - 0x2030]
lea ecx, [ebp - 0x2058]
call fcn.10103400
mov esi, eax
mov byte [ebp - 4], 0x26
mov edi, dword [ebp - 0x2040]
cmp edi, esi
je 0x10104502
mov ecx, edi
call fcn.1004d930
movups xmm0, xmmword [esi]
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov byte [ebp - 4], 0x27
mov edx, dword [ebp - 0x2044]
cmp edx, 0x10
jb 0x10104542
mov ecx, dword [ebp - 0x2058]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10104538
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10104538
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1010f5b0
add esp, 8
mov dword [ebp - 0x2048], 0
mov dword [ebp - 0x2044], 0xf
mov byte [ebp - 0x2058], 0
mov byte [ebp - 4], 0x2d
lea ecx, [ebp - 0x2018]
mov esi, dword [ebp - 0x2018]
push dword [esi + 4]
call fcn.10105e60
mov eax, dword [ebp - 0x2018]
push 0x2c
mov dword [eax + 4], esi
mov eax, dword [ebp - 0x2018]
mov dword [eax], esi
mov eax, dword [ebp - 0x2018]
mov dword [eax + 8], esi
mov dword [ebp - 0x2014], 0
mov byte [ebp - 4], 0x2c
push dword [ebp - 0x2018]
call fcn.1010f5b0
add esp, 8
lea ecx, [ebp - 0x2030]
mov dword [ebp - 4], 0x2e
call fcn.1004b080
mov byte [ebp - 4], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010f56f
mov esp, ebp
pop ebp
ret