Function at 0x10bbffe
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x10ed860]
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 0x10bc089
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bc30e
test byte [eax + 0x1c], 1
je 0x10bc30e
push 0x100b42c
push 0x55
jmp 0x10bc198
test edi, edi
jne 0x10bc0b3
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bc30e
test byte [eax + 0x1c], 1
je 0x10bc30e
push 0x100b42c
push 0x56
jmp 0x10bc198
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x100ada4
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x10bc2b5
cmp eax, esi
ja 0x10bc2b5
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x100aecc
push esi
push edi
call fcn.010aceee
mov esi, eax
xor ebx, ebx
add esp, 0x14
cmp esi, ebx
jge 0x10bc121
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bc2f9
test byte [eax + 0x1c], 1
je 0x10bc2f9
push esi
push 0x100b42c
push 0x58
jmp 0x10bc2ee
push ebx
push edi
call fcn.010b0ef1
mov esi, eax
cmp esi, ebx
jge 0x10bc155
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bc2f9
test byte [eax + 0x1c], 1
je 0x10bc2f9
push esi
push 0x100b42c
push 0x59
jmp 0x10bc2ee
cmp dword [ebp + 0x10], ebx
je 0x10bc279
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 0x14]
mov esi, 0x8007000c
push ebx
call fcn.010bbdd2
test eax, eax
jne 0x10bc1a8
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bc2f9
test byte [eax + 0x1c], 1
je 0x10bc2f9
push 0x100b42c
push 0x5a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e15
jmp 0x10bc2f9
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 0x10bc27d
cmp dword [ebp - 0x214], ebx
je 0x10bc27d
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 0x10bc22d
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bc2f9
test byte [eax + 0x1c], 1
je 0x10bc2f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x10ed030]
push 0x100b42c
push 0x5c
jmp 0x10bc2ee
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 0x10bc279
mov ecx, dword [0x10ed030]
cmp ecx, 0x10ed030
je 0x10bc2f9
test byte [ecx + 0x1c], 1
je 0x10bc2f9
push eax
push 0x100b42c
push 0x5d
push dword [ecx + 0x14]
push dword [ecx + 0x10]
jmp 0x10bc2f4
xor esi, esi
jmp 0x10bc2f9
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bc2f9
test byte [eax + 0x1c], 1
je 0x10bc2f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x214]
mov eax, dword [0x10ed030]
push 0x100b42c
push 0x5b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102cde9
jmp 0x10bc2f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10bc2c9
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jl 0x10bc2d4
mov esi, 0x80004005
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bc2f9
test byte [eax + 0x1c], 1
je 0x10bc2f9
push esi
push 0x100b42c
push 0x57
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027ecb
cmp dword [ebp - 0x210], 0
je 0x10bc30e
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.010a0b37
leave
ret 0x10