Function at 0x10018df0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x10032138]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor ecx, ecx
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
push ecx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
mov esi, 0x80070057
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ecx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ecx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ecx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ecx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ecx
call sub.msvcrt.dll_memset
add esp, 0xc
test ebx, ebx
jne 0x10018e7b
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x10019102
test byte [eax + 0x1c], 1
je 0x10019102
push 0x1000bcb8
push 0x6c
jmp 0x10018f91
test edi, edi
jne 0x10018ea5
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x10019102
test byte [eax + 0x1c], 1
je 0x10019102
push 0x1000bcb8
push 0x6d
jmp 0x10018f91
mov esi, 0x104
push esi
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0x1000bd7c
call sub.KERNEL32.dll_ExpandEnvironmentStringsW
test eax, eax
je 0x100190a9
cmp eax, esi
ja 0x100190a9
push ebx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0x10006950
push esi
push edi
call fcn.100010fa
mov esi, eax
add esp, 0x14
test esi, esi
jns 0x10018f18
mov ecx, dword [0x100320c8]
cmp ecx, 0x100320c8
je 0x100190ee
test byte [ecx + 0x1c], 1
je 0x100190ee
push esi
push 0x1000bcb8
push 0x6f
push dword [ecx + 0x14]
push dword [ecx + 0x10]
jmp 0x100190e9
xor ebx, ebx
push ebx
push edi
call fcn.10006961
mov esi, eax
test esi, esi
jns 0x10018f4e
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x100190ee
test byte [eax + 0x1c], 1
je 0x100190ee
push esi
push 0x1000bcb8
push 0x70
jmp 0x100190e3
cmp dword [ebp + 0x10], ebx
je 0x1001906e
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push dword [ebp + 0x14]
mov esi, 0x8007000c
push ebx
call fcn.100066d6
test eax, eax
jne 0x10018fa1
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x100190ee
test byte [eax + 0x1c], 1
je 0x100190ee
push 0x1000bcb8
push 0x71
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1000c7e1
jmp 0x100190ee
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
je 0x10019072
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
je 0x10019072
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorOwner]
test eax, eax
jne 0x10019025
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x100190ee
test byte [eax + 0x1c], 1
je 0x100190ee
call sub.KERNEL32.dll_GetLastError
push eax
mov eax, dword [0x100320c8]
push 0x1000bcb8
push 0x73
jmp 0x100190e3
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]
test eax, eax
je 0x1001906e
mov ecx, dword [0x100320c8]
cmp ecx, 0x100320c8
je 0x100190ee
test byte [ecx + 0x1c], 1
je 0x100190ee
push eax
push 0x1000bcb8
push 0x74
jmp 0x10018f0d
mov esi, ebx
jmp 0x100190ee
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x100190ee
test byte [eax + 0x1c], 1
je 0x100190ee
call sub.KERNEL32.dll_GetLastError
push eax
push dword [ebp - 0x214]
mov eax, dword [0x100320c8]
push 0x1000bcb8
push 0x72
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001fb46
jmp 0x100190ee
call sub.KERNEL32.dll_GetLastError
mov esi, eax
test esi, esi
jle 0x100190c2
and esi, 0xffff
or esi, 0x80070000
test esi, esi
js 0x100190c9
mov esi, 0x80004005
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x100190ee
test byte [eax + 0x1c], 1
je 0x100190ee
push esi
push 0x1000bcb8
push 0x6e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001334b
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0
je 0x10019102
push dword [ebp - 0x210]
call sub.KERNEL32.dll_LocalFree
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.100024c8
leave
ret 0x10