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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10027b3c
mov eax, dword fs:[0]
push eax
sub esp, 0x664
mov eax, dword [0x10031210]
xor eax, esp
mov dword [esp + 0x65c], eax
push ebx
push esi
mov eax, dword [0x10031210]
xor eax, esp
push eax
lea eax, [esp + 0x670]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x678], eax
push 0x208
push eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x54], edi
mov esi, ecx
call fcn.10015cf0
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
add esp, 0xc
push 0x104
lea ecx, [esp + 0x50]
push ecx
push esi
call ebx
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveArgsW]
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
push edi
lea ecx, [esp + 0x50]
call fcn.10009b30
mov dword [esp + 0x678], 0
mov eax, dword [edi]
mov esi, dword [eax - 0xc]
mov ecx, 1
mov dword [esp + 0x18], ecx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or eax, ecx
jge 0x1000a9a6
mov ecx, esi
mov eax, edi
call fcn.100099e0
mov eax, dword [edi]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.10015132
add esp, 8
test esi, esi
jl 0x1000ad13
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x1000ad13
mov dword [eax - 0xc], esi
mov edx, dword [edi]
xor eax, eax
push 0x208
push eax
lea ecx, [esp + 0x25c]
push ecx
mov word [edx + esi*2], ax
call fcn.10015cf0
add esp, 0xc
push 0x104
lea edx, [esp + 0x258]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [esp + 0x254]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0x208
lea ecx, [esp + 0x460]
push 0
push ecx
call fcn.10015cf0
add esp, 0xc
push 0x104
lea edx, [esp + 0x460]
push edx
push str._systemroot__
call ebx
lea eax, [esp + 0x1c]
push eax
call fcn.1000b8e0
lea ecx, [esp + 0xc]
push ecx
mov ecx, str.system32_
mov dword [esp + 0x67c], 1
call fcn.10009b30
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x258]
mov byte [esp + 0x67c], 2
call fcn.10009b30
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
lea ebx, [esp + 0x44]
mov byte [esp + 0x680], 3
call fcn.1000b770
mov byte [esp + 0x678], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000aab5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000aad5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, str.systemroot_
call fcn.10009b30
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x460]
mov byte [esp + 0x67c], 4
call fcn.10009b30
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
lea ebx, [esp + 0x44]
mov byte [esp + 0x680], 5
call fcn.1000b770
mov byte [esp + 0x678], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000ab40
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000ab60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, str._systemroot_
call fcn.10009b30
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x460]
mov byte [esp + 0x67c], 6
call fcn.10009b30
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
lea ebx, [esp + 0x44]
mov byte [esp + 0x680], 7
call fcn.1000b770
mov byte [esp + 0x678], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000abcb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000abeb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], esi
lea ecx, [ecx]
mov ebx, dword [esp + 0x34]
test esi, esi
je 0x1000ac0e
cmp esi, dword [esp + 0x1c]
je 0x1000ac13
call fcn.10014d0c
cmp dword [esp + 0x10], ebx
je 0x1000acb6
test esi, esi
jne 0x1000ac6c
call fcn.10014d0c
xor eax, eax
mov ecx, dword [esp + 0x10]
cmp ecx, dword [eax + 0x18]
jne 0x1000ac36
call fcn.10014d0c
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 0xc]
test ecx, ecx
je 0x1000ac5d
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jl 0x1000ac5d
push ecx
push eax
call fcn.10014ec0
add esp, 8
test eax, eax
je 0x1000ac5d
sub eax, dword [edi]
sar eax, 1
je 0x1000ac70
lea esi, [esp + 0xc]
call fcn.1000bf10
mov esi, dword [esp + 0xc]
jmp 0x1000ac00
mov eax, dword [esi]
jmp 0x1000ac28
test esi, esi
jne 0x1000ad08
call fcn.10014d0c
xor eax, eax
mov ebx, dword [esp + 0x10]
cmp ebx, dword [eax + 0x18]
jne 0x1000ac8d
call fcn.10014d0c
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x14], eax
test esi, esi
jne 0x1000ad0f
call fcn.10014d0c
cmp ebx, dword [esi + 0x18]
jne 0x1000aca7
call fcn.10014d0c
mov ecx, dword [esp + 0x14]
mov ebx, dword [ebx + 0xc]
push ecx
push ebx
push edi
call fcn.100066f0
mov eax, 0x1002d2f0
mov ebx, edi
call fcn.10007300
lea esi, [esp + 0x1c]
mov dword [esp + 0x678], 8
call fcn.1000bbf0
mov edx, dword [esp + 0x1c]
push edx
call fcn.10013ff7
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x670]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x65c]
xor ecx, esp
call fcn.10014002
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
jmp 0x1000ac7f
mov esi, dword [esi]
jmp 0x1000ac9d
push 0x80070057
call fcn.10009a30
int3