Function at 0x108d7b5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x10a6184]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 0x206
push eax
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x20a]
xor ecx, ecx
push eax
mov esi, 0x80070057
mov word [ebp - 0x20c], cx
call sub.msvcrt.dll_memset
add esp, 0xc
test ebx, ebx
jne 0x108d840
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108dac5
test byte [eax + 0x1c], 1
je 0x108dac5
push 0x10127f8
push 0x55
jmp 0x108d94f
test edi, edi
jne 0x108d86a
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108dac5
test byte [eax + 0x1c], 1
je 0x108dac5
push 0x10127f8
push 0x56
jmp 0x108d94f
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1012150
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x108da6c
cmp eax, esi
ja 0x108da6c
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x101227c
push esi
push edi
call fcn.0103e1ed
mov esi, eax
xor ebx, ebx
add esp, 0x14
cmp esi, ebx
jge 0x108d8d8
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108dab0
test byte [eax + 0x1c], 1
je 0x108dab0
push esi
push 0x10127f8
push 0x58
jmp 0x108daa5
push ebx
push edi
call fcn.01082517
mov esi, eax
cmp esi, ebx
jge 0x108d90c
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108dab0
test byte [eax + 0x1c], 1
je 0x108dab0
push esi
push 0x10127f8
push 0x59
jmp 0x108daa5
cmp dword [ebp + 0x10], ebx
je 0x108da30
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 0x14]
mov esi, 0x8007000c
push ebx
call fcn.0108d589
test eax, eax
jne 0x108d95f
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108dab0
test byte [eax + 0x1c], 1
je 0x108dab0
push 0x10127f8
push 0x5a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015b76
jmp 0x108dab0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
je 0x108da34
cmp dword [ebp - 0x214], ebx
je 0x108da34
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorOwner]
test eax, eax
jne 0x108d9e4
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108dab0
test byte [eax + 0x1c], 1
je 0x108dab0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x10a60d8]
push 0x10127f8
push 0x5c
jmp 0x108daa5
push ebx
push dword [ebp - 0x220]
push ebx
push dword [ebp - 0x21c]
push 0x80000005
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
cmp eax, ebx
je 0x108da30
mov ecx, dword [0x10a60d8]
cmp ecx, 0x10a60d8
je 0x108dab0
test byte [ecx + 0x1c], 1
je 0x108dab0
push eax
push 0x10127f8
push 0x5d
push dword [ecx + 0x14]
push dword [ecx + 0x10]
jmp 0x108daab
xor esi, esi
jmp 0x108dab0
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108dab0
test byte [eax + 0x1c], 1
je 0x108dab0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x214]
mov eax, dword [0x10a60d8]
push 0x10127f8
push 0x5b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010800f8
jmp 0x108dab0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x108da80
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jl 0x108da8b
mov esi, 0x80004005
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108dab0
test byte [eax + 0x1c], 1
je 0x108dab0
push esi
push 0x10127f8
push 0x57
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010160ad
cmp dword [ebp - 0x210], 0
je 0x108dac5
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01039921
leave
ret 0x10