Function at 0x1082802
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x10a6184]
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 0x1082896
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x10829c3
test byte [eax + 0x1c], 1
je 0x10829c3
push 0x1011fb0
push 0x11
jmp 0x10828bb
test ebx, ebx
jne 0x10828cb
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x10829c3
test byte [eax + 0x1c], 1
je 0x10829c3
push 0x1011fb0
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015b76
jmp 0x10829c3
cmp dword [ebx], 0
mov esi, 0x104
jne 0x108297a
push dword [ebp - 0x418]
lea eax, [ebp - 0x414]
push 0x1012070
push esi
push eax
call fcn.0103e1ed
mov edi, eax
add esp, 0x10
test edi, edi
jge 0x1082921
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x10829c3
test byte [eax + 0x1c], 1
je 0x10829c3
push edi
push 0x1011fb0
push 0x13
jmp 0x1082b08
push ebx
push 0x101216c
lea eax, [ebp - 0x414]
push eax
xor eax, eax
cmp dword [ebp + 0xc], eax
setne al
add eax, 0x80000001
push eax
call fcn.0108bb48
test eax, eax
jne 0x1082949
cmp dword [ebx], eax
jne 0x108297a
mov edi, 0x90070a02
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x10829c3
test byte [eax + 0x1c], 4
je 0x10829c3
push dword [ebp - 0x418]
push 0x1011fb0
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015b9c
jmp 0x10829c3
xor edi, edi
cmp dword [ebp - 0x41c], edi
je 0x10829c3
push esi
lea eax, [ebp - 0x20c]
push eax
cmp dword [ebp + 0xc], edi
je 0x10829d6
push 0x1012150
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x10829a4
cmp eax, esi
jbe 0x10829dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10829b8
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jl 0x10829c3
mov edi, 0x80004005
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01039921
leave
ret 0x10
push 0x1012130
jmp 0x1082996
push 0x101211c
lea eax, [ebp - 0x20c]
push eax
call fcn.0108261d
mov edi, eax
test edi, edi
jge 0x1082a13
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x10829c3
test byte [eax + 0x1c], 1
je 0x10829c3
push edi
push 0x1011fb0
push 0x15
jmp 0x1082b08
push dword [ebp - 0x418]
lea eax, [ebp - 0x20c]
push eax
call fcn.0108261d
mov edi, eax
test edi, edi
jge 0x1082a4a
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x10829c3
test byte [eax + 0x1c], 1
je 0x10829c3
push edi
push 0x1011fb0
push 0x16
jmp 0x1082b08
push 0x1012114
lea eax, [ebp - 0x20c]
push eax
call fcn.0108261d
mov edi, eax
test edi, edi
jge 0x1082a88
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x10829c3
test byte [eax + 0x1c], 1
je 0x10829c3
push edi
push 0x1011fb0
push 0x17
jmp 0x1082b08
push 0x1012100
lea eax, [ebp - 0x20c]
push eax
call fcn.0108261d
mov edi, eax
test edi, edi
jge 0x1082ac3
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x10829c3
test byte [eax + 0x1c], 1
je 0x10829c3
push edi
push 0x1011fb0
push 0x18
jmp 0x1082b08
push dword [ebx]
lea eax, [ebp - 0x20c]
push eax
push 0x10120e4
push esi
push dword [ebp - 0x41c]
call fcn.0103e1ed
mov edi, eax
add esp, 0x14
test edi, edi
jge 0x1082b18
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x10829c3
test byte [eax + 0x1c], 1
je 0x10829c3
push edi
push 0x1011fb0
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010160ad
jmp 0x10829c3
xor edi, edi
jmp 0x10829c3