Function at 0x10080420
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101f2cf7
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x268
mov eax, dword [0x10275008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebx + 8]
cmp dword [edx + 0x10], 0
lea eax, [edx + 0x10]
mov esi, dword [ebx + 0xc]
mov edi, dword [ebx + 0x10]
mov dword [ebp - 0x270], esi
mov dword [ebp - 0x274], eax
jne 0x10080486
xor al, al
jmp 0x1008070b
lea ecx, [ebp - 0x238]
call fcn.100052e0
mov dword [ebp - 4], 0
mov eax, edx
mov ecx, dword [edx + 0x14]
cmp ecx, 8
jb 0x100804a4
mov eax, dword [edx]
cmp word [eax], 0x40
jne 0x1008051a
mov eax, dword [ebp - 0x274]
lea ecx, [ebp - 0x250]
mov eax, dword [eax]
dec eax
push eax
call fcn.100ddfe0
add esp, 4
mov esi, eax
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 1
cmp eax, esi
je 0x10080503
mov ecx, eax
call fcn.10005300
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x238], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x228], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0
call fcn.10005250
mov esi, dword [ebp - 0x270]
jmp 0x1008053f
lea eax, [ebp - 0x238]
cmp eax, edx
je 0x1008053f
cmp ecx, 8
jb 0x1008052b
mov edx, dword [edx]
mov eax, dword [ebp - 0x274]
lea ecx, [ebp - 0x238]
push dword [eax]
push edx
call fcn.10005390
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x220]
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1008058b
mov byte [ebp - 0x269], al
jmp 0x100806f3
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10080594
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.10005390
push 0x10238a74
lea ecx, [ebp - 0x268]
call fcn.10005290
mov byte [ebp - 4], 2
lea eax, [ebp - 0x268]
cmp dword [ebp - 0x254], 8
lea ecx, [ebp - 0x238]
push dword [ebp - 0x258]
cmovae eax, dword [ebp - 0x268]
cmp dword [ebp - 0x224], 8
mov edx, dword [ebp - 0x228]
cmovae ecx, dword [ebp - 0x238]
push eax
push 0
call fcn.10012f40
add esp, 0xc
mov dword [ebp - 0x270], eax
cmp eax, 0xffffffff
je 0x100806a9
push eax
lea edx, [ebp - 0x238]
lea ecx, [ebp - 0x250]
call fcn.100ddf60
add esp, 4
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.10008620
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 2
call fcn.10005250
test edi, edi
je 0x100806d9
mov eax, dword [ebp - 0x228]
lea edx, [ebp - 0x238]
sub eax, dword [ebp - 0x258]
lea ecx, [ebp - 0x250]
sub eax, dword [ebp - 0x270]
push eax
call fcn.100ddfe0
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x250]
cmp dword [ebp - 0x23c], 8
cmovae ecx, dword [ebp - 0x250]
xor edx, edx
call fcn.100dd860
mov dword [edi], eax
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 2
call fcn.10005250
jmp 0x100806d9
lea eax, [ebp - 0x238]
cmp esi, eax
je 0x100806cf
cmp dword [ebp - 0x224], 8
mov ecx, esi
push dword [ebp - 0x228]
cmovae eax, dword [ebp - 0x238]
push eax
call fcn.10005390
test edi, edi
je 0x100806d9
mov dword [edi], 0
cmp dword [esi + 0x10], 0
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 0
setne byte [ebp - 0x269]
call fcn.10005250
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], 0xffffffff
call fcn.10005250
mov al, byte [ebp - 0x269]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101c837b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc