Function at 0x10bc252
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 0x10bc2dd
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bc562
test byte [eax + 0x1c], 1
je 0x10bc562
push 0x100b42c
push 0x55
jmp 0x10bc3ec
test edi, edi
jne 0x10bc307
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bc562
test byte [eax + 0x1c], 1
je 0x10bc562
push 0x100b42c
push 0x56
jmp 0x10bc3ec
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x100ada4
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x10bc509
cmp eax, esi
ja 0x10bc509
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x100aecc
push esi
push edi
call fcn.010ad159
mov esi, eax
xor ebx, ebx
add esp, 0x14
cmp esi, ebx
jge 0x10bc375
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bc54d
test byte [eax + 0x1c], 1
je 0x10bc54d
push esi
push 0x100b42c
push 0x58
jmp 0x10bc542
push ebx
push edi
call fcn.010b10b2
mov esi, eax
cmp esi, ebx
jge 0x10bc3a9
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bc54d
test byte [eax + 0x1c], 1
je 0x10bc54d
push esi
push 0x100b42c
push 0x59
jmp 0x10bc542
cmp dword [ebp + 0x10], ebx
je 0x10bc4cd
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 0x14]
mov esi, 0x8007000c
push ebx
call fcn.010bc026
test eax, eax
jne 0x10bc3fc
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bc54d
test byte [eax + 0x1c], 1
je 0x10bc54d
push 0x100b42c
push 0x5a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e15
jmp 0x10bc54d
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 0x10bc4d1
cmp dword [ebp - 0x214], ebx
je 0x10bc4d1
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 0x10bc481
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bc54d
test byte [eax + 0x1c], 1
je 0x10bc54d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x10ed030]
push 0x100b42c
push 0x5c
jmp 0x10bc542
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 0x10bc4cd
mov ecx, dword [0x10ed030]
cmp ecx, 0x10ed030
je 0x10bc54d
test byte [ecx + 0x1c], 1
je 0x10bc54d
push eax
push 0x100b42c
push 0x5d
push dword [ecx + 0x14]
push dword [ecx + 0x10]
jmp 0x10bc548
xor esi, esi
jmp 0x10bc54d
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bc54d
test byte [eax + 0x1c], 1
je 0x10bc54d
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.0102cb22
jmp 0x10bc54d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10bc51d
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jl 0x10bc528
mov esi, 0x80004005
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bc54d
test byte [eax + 0x1c], 1
je 0x10bc54d
push esi
push 0x100b42c
push 0x57
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010294b2
cmp dword [ebp - 0x210], 0
je 0x10bc562
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.010a0c4b
leave
ret 0x10