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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10024afc
mov eax, dword fs:[0]
push eax
sub esp, 0x664
mov eax, dword [0x1002e210]
xor eax, esp
mov dword [esp + 0x65c], eax
push ebx
push esi
mov eax, dword [0x1002e210]
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.10016010
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.1000a1c0
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 0x1000b066
mov ecx, esi
mov eax, edi
call fcn.1000a070
mov eax, dword [edi]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.10015592
add esp, 8
test esi, esi
jl 0x1000b3d3
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x1000b3d3
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.10016010
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.10016010
add esp, 0xc
push 0x104
lea edx, [esp + 0x460]
push edx
push str._systemroot__
call ebx
lea eax, [esp + 0x1c]
push eax
call fcn.1000bdb0
lea ecx, [esp + 0xc]
push ecx
mov ecx, str.system32_
mov dword [esp + 0x67c], 1
call fcn.1000a1c0
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x258]
mov byte [esp + 0x67c], 2
call fcn.1000a1c0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
lea ebx, [esp + 0x44]
mov byte [esp + 0x680], 3
call fcn.1000bc40
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 0x1000b175
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 0x1000b195
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.1000a1c0
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x460]
mov byte [esp + 0x67c], 4
call fcn.1000a1c0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
lea ebx, [esp + 0x44]
mov byte [esp + 0x680], 5
call fcn.1000bc40
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 0x1000b200
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 0x1000b220
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.1000a1c0
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x460]
mov byte [esp + 0x67c], 6
call fcn.1000a1c0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
lea ebx, [esp + 0x44]
mov byte [esp + 0x680], 7
call fcn.1000bc40
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 0x1000b28b
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 0x1000b2ab
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 0x1000b2ce
cmp esi, dword [esp + 0x1c]
je 0x1000b2d3
call fcn.1001516c
cmp dword [esp + 0x10], ebx
je 0x1000b376
test esi, esi
jne 0x1000b32c
call fcn.1001516c
xor eax, eax
mov ecx, dword [esp + 0x10]
cmp ecx, dword [eax + 0x18]
jne 0x1000b2f6
call fcn.1001516c
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 0xc]
test ecx, ecx
je 0x1000b31d
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jl 0x1000b31d
push ecx
push eax
call fcn.10015320
add esp, 8
test eax, eax
je 0x1000b31d
sub eax, dword [edi]
sar eax, 1
je 0x1000b330
lea esi, [esp + 0xc]
call fcn.1000c3e0
mov esi, dword [esp + 0xc]
jmp 0x1000b2c0
mov eax, dword [esi]
jmp 0x1000b2e8
test esi, esi
jne 0x1000b3c8
call fcn.1001516c
xor eax, eax
mov ebx, dword [esp + 0x10]
cmp ebx, dword [eax + 0x18]
jne 0x1000b34d
call fcn.1001516c
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x14], eax
test esi, esi
jne 0x1000b3cf
call fcn.1001516c
cmp ebx, dword [esi + 0x18]
jne 0x1000b367
call fcn.1001516c
mov ecx, dword [esp + 0x14]
mov ebx, dword [ebx + 0xc]
push ecx
push ebx
push edi
call fcn.10006ce0
mov eax, 0x1002a310
mov ebx, edi
call fcn.100078f0
lea esi, [esp + 0x1c]
mov dword [esp + 0x678], 8
call fcn.1000c0c0
mov edx, dword [esp + 0x1c]
push edx
call fcn.10014417
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.10014422
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
jmp 0x1000b33f
mov esi, dword [esi]
jmp 0x1000b35d
push 0x80070057
call fcn.1000a0c0
int3