Function at 0x10020a92
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x10032138]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
mov esi, 0x80070057
test ebx, ebx
jne 0x10020b24
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x10020c5e
test byte [eax + 0x1c], 1
je 0x10020c5e
push 0x1000bea8
push 0x11
jmp 0x10020b49
test edi, edi
jne 0x10020b59
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x10020c5e
test byte [eax + 0x1c], 1
je 0x10020c5e
push 0x1000bea8
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1000c7e1
jmp 0x10020c5e
cmp dword [edi], 0
mov eax, 0x104
jne 0x10020c03
push ebx
push 0x1000bfb0
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call fcn.100010fa
mov esi, eax
add esp, 0x10
test esi, esi
jns 0x10020baa
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x10020c5e
test byte [eax + 0x1c], 1
je 0x10020c5e
push esi
push 0x1000bea8
push 0x13
jmp 0x10020da2
mov esi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
push edi
push 0x1000c024
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
xor eax, eax
test esi, esi
setne al
add eax, 0x80000001
push eax
call fcn.10003bdc
test eax, eax
jne 0x10020bd7
cmp dword [edi], eax
jne 0x10020c0b
mov esi, 0x90070a02
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x10020c5e
test byte [eax + 0x1c], 4
je 0x10020c5e
push ebx
push 0x1000bea8
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.10013378
jmp 0x10020c5e
mov esi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
jmp 0x10020c10
mov eax, 0x104
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0
je 0x10020db2
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
test esi, esi
je 0x10020c71
push 0x1000bd7c
call sub.KERNEL32.dll_ExpandEnvironmentStringsW
test eax, eax
je 0x10020c3e
cmp eax, 0x104
jbe 0x10020c78
call sub.KERNEL32.dll_GetLastError
mov esi, eax
test esi, esi
jle 0x10020c57
and esi, 0xffff
or esi, 0x80070000
test esi, esi
js 0x10020c5e
mov esi, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.100024c8
leave
ret 0x10
push 0x10020dbc
jmp 0x10020c2e
push 0x10020ddc
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call fcn.10022fac
mov esi, eax
test esi, esi
jns 0x10020cae
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x10020c5e
test byte [eax + 0x1c], 1
je 0x10020c5e
push esi
push 0x1000bea8
push 0x15
jmp 0x10020da2
push ebx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call fcn.10022fac
mov esi, eax
test esi, esi
jns 0x10020ce0
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x10020c5e
test byte [eax + 0x1c], 1
je 0x10020c5e
push esi
push 0x1000bea8
push 0x16
jmp 0x10020da2
push 0x10020df0
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call fcn.10022fac
mov esi, eax
test esi, esi
jns 0x10020d1e
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x10020c5e
test byte [eax + 0x1c], 1
je 0x10020c5e
push esi
push 0x1000bea8
push 0x17
jmp 0x10020da2
push 0x10020df8
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call fcn.10022fac
mov esi, eax
test esi, esi
jns 0x10020d59
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x10020c5e
test byte [eax + 0x1c], 1
je 0x10020c5e
push esi
push 0x1000bea8
push 0x18
jmp 0x10020da2
push dword [edi]
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0x10020e0c
push 0x104
push dword [ebp - 0x418]
call fcn.100010fa
mov esi, eax
add esp, 0x14
test esi, esi
jns 0x10020db2
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x10020c5e
test byte [eax + 0x1c], 1
je 0x10020c5e
push esi
push 0x1000bea8
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001334b
jmp 0x10020c5e
xor esi, esi
jmp 0x10020c5e