Function at 0x100194b0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10187206
push eax
mov dword fs:[0], esp
sub esp, 0x638
push ebx
push ebp
push esi
mov esi, dword [esp + 0x654]
test esi, esi
push edi
mov ebx, ecx
je 0x100197b9
push esi
call fcn.100547f0
add esp, 4
test eax, eax
je 0x100197b9
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x32]
mov word [esp + 0x30], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x103
lea eax, [esp + 0x34]
push esi
push eax
call fcn.10054a00
mov ebp, 0x5c
add esp, 0xc
cmp word [esp + 0x30], bp
jne 0x10019728
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x23a]
mov word [esp + 0x238], 0
rep stosd dword es:[edi], eax
push 0xc
lea ecx, [esp + 0x34]
push str.SystemRoot_
push ecx
stosw word es:[edi], ax
call fcn.10058b63
add esp, 0xc
test eax, eax
jne 0x100195bd
lea edx, [esp + 0x238]
push str._SystemRoot_
push edx
call fcn.100549db
lea eax, [esp + 0x50]
lea ecx, [esp + 0x25a]
push eax
push ecx
mov word [esp + 0x260], bp
call fcn.100549db
add esp, 0x10
lea edx, [esp + 0x30]
lea eax, [esp + 0x238]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x100197b9
cmp eax, 0x104
jb 0x10019728
jmp 0x100197b9
push 4
push 0x101b1224
push esi
call fcn.10058b63
add esp, 0xc
test eax, eax
jne 0x10019607
lea ecx, [esp + 0x38]
push 0x103
lea edx, [esp + 0x23c]
push ecx
push edx
call fcn.10054a00
lea eax, [esp + 0x244]
push 0x103
lea ecx, [esp + 0x40]
push eax
push ecx
call fcn.10054a00
add esp, 0x18
jmp 0x10019728
push 0x10
push 0x101b1a58
push esi
call fcn.10058b63
add esp, 0xc
test eax, eax
jne 0x10019728
lea edx, [esp + 0x30]
push 0x103
lea eax, [esp + 0x23c]
push edx
push eax
call fcn.10054a00
lea ecx, [esp + 0x244]
push ecx
call fcn.100547f0
add esp, 0x10
lea ecx, [esp + 0x20]
mov ebp, eax
call fcn.100390e0
xor edi, edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x650], edi
call fcn.100390e0
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
push eax
mov ecx, ebx
mov byte [esp + 0x658], 1
call fcn.100191a0
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x10019703
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x238]
mov eax, dword [ecx + edi*4]
mov esi, dword [eax - 8]
push esi
push edx
push eax
call fcn.10058b63
add esp, 0xc
test eax, eax
jne 0x100196b8
mov ax, word [esp + esi*2 + 0x238]
cmp ax, 0x5c
je 0x100196c3
cmp ax, 0x2f
je 0x100196c3
mov eax, dword [esp + 0x14]
inc edi
cmp edi, eax
jl 0x10019684
jmp 0x100196fc
mov eax, dword [esp + 0x65c]
sub ebp, esi
add ebp, 2
cmp ebp, eax
jae 0x100196fc
mov eax, dword [esp + 0x20]
push 2
lea ecx, [esp + 0x34]
mov edi, dword [eax + edi*4]
push edi
push ecx
call fcn.10054a00
lea edx, [esp + esi*2 + 0x244]
lea eax, [esp + 0x40]
push edx
push eax
call fcn.100549db
add esp, 0x14
mov esi, dword [esp + 0x658]
lea ecx, [esp + 0x10]
mov byte [esp + 0x650], 0
call fcn.100390f0
lea ecx, [esp + 0x20]
mov dword [esp + 0x650], 0xffffffff
call fcn.100390f0
lea ecx, [esp + 0x30]
push 0x104
push ecx
mov ecx, ebx
call fcn.10019870
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x442]
mov word [esp + 0x440], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebx + 8]
test eax, eax
je 0x100197a2
lea edx, [esp + 0x30]
push 0x7e
push edx
call fcn.10055d05
add esp, 8
test eax, eax
je 0x100197a2
lea eax, [esp + 0x440]
push 0x104
lea ecx, [esp + 0x34]
push eax
push ecx
call dword [ebx + 8]
test eax, eax
jbe 0x100197a2
cmp eax, 0x104
jae 0x100197a2
mov edx, dword [esp + 0x65c]
lea eax, [esp + 0x440]
dec edx
push edx
push eax
jmp 0x100197b0
mov ecx, dword [esp + 0x65c]
lea edx, [esp + 0x30]
dec ecx
push ecx
push edx
push esi
call fcn.10054a00
add esp, 0xc
mov ecx, dword [esp + 0x648]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x644
ret 8