Function at 0x10200c8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1035030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x418], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x41c], eax
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
cmp dword [ebp - 0x418], 0
mov edi, 0x80070057
jne 0x102015c
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1020289
test byte [eax + 0x1c], 1
je 0x1020289
push 0x1003ff0
push 0x11
jmp 0x1020181
test ebx, ebx
jne 0x1020191
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1020289
test byte [eax + 0x1c], 1
je 0x1020289
push 0x1003ff0
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004e8e
jmp 0x1020289
cmp dword [ebx], 0
mov esi, 0x104
jne 0x1020240
push dword [ebp - 0x418]
lea eax, [ebp - 0x414]
push 0x1003ca0
push esi
push eax
call fcn.01006a35
mov edi, eax
add esp, 0x10
test edi, edi
jge 0x10201e7
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1020289
test byte [eax + 0x1c], 1
je 0x1020289
push edi
push 0x1003ff0
push 0x13
jmp 0x10203ce
push ebx
push 0x100299c
lea eax, [ebp - 0x414]
push eax
xor eax, eax
cmp dword [ebp + 0xc], eax
setne al
add eax, 0x80000001
push eax
call fcn.01012bef
test eax, eax
jne 0x102020f
cmp dword [ebx], eax
jne 0x1020240
mov edi, 0x90070a02
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1020289
test byte [eax + 0x1c], 4
je 0x1020289
push dword [ebp - 0x418]
push 0x1003ff0
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004ee0
jmp 0x1020289
xor edi, edi
cmp dword [ebp - 0x41c], edi
je 0x1020289
push esi
lea eax, [ebp - 0x20c]
push eax
cmp dword [ebp + 0xc], edi
je 0x102029c
push 0x10039f8
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x102026a
cmp eax, esi
jbe 0x10202a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x102027e
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jl 0x1020289
mov edi, 0x80004005
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01011f27
leave
ret 0x10
push 0x10040fc
jmp 0x102025c
push 0x10040e8
lea eax, [ebp - 0x20c]
push eax
call fcn.0101fee3
mov edi, eax
test edi, edi
jge 0x10202d9
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1020289
test byte [eax + 0x1c], 1
je 0x1020289
push edi
push 0x1003ff0
push 0x15
jmp 0x10203ce
push dword [ebp - 0x418]
lea eax, [ebp - 0x20c]
push eax
call fcn.0101fee3
mov edi, eax
test edi, edi
jge 0x1020310
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1020289
test byte [eax + 0x1c], 1
je 0x1020289
push edi
push 0x1003ff0
push 0x16
jmp 0x10203ce
push 0x10040e0
lea eax, [ebp - 0x20c]
push eax
call fcn.0101fee3
mov edi, eax
test edi, edi
jge 0x102034e
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1020289
test byte [eax + 0x1c], 1
je 0x1020289
push edi
push 0x1003ff0
push 0x17
jmp 0x10203ce
push 0x10040cc
lea eax, [ebp - 0x20c]
push eax
call fcn.0101fee3
mov edi, eax
test edi, edi
jge 0x1020389
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1020289
test byte [eax + 0x1c], 1
je 0x1020289
push edi
push 0x1003ff0
push 0x18
jmp 0x10203ce
push dword [ebx]
lea eax, [ebp - 0x20c]
push eax
push 0x10040b0
push esi
push dword [ebp - 0x41c]
call fcn.01006a35
mov edi, eax
add esp, 0x14
test edi, edi
jge 0x10203de
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1020289
test byte [eax + 0x1c], 1
je 0x1020289
push edi
push 0x1003ff0
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004eb4
jmp 0x1020289
xor edi, edi
jmp 0x1020289