Function at 0x100022b0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x807c
call fcn.100050b0
mov eax, dword [0x10029830]
xor eax, esp
mov dword [esp + 0x8078], eax
mov eax, dword [esp + 0x808c]
push esi
mov esi, dword [esp + 0x8088]
push edi
mov edi, dword [esp + 0x8088]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x8098]
push 0x8000
mov dword [esp + 0x24], eax
lea eax, [esp + 0x84]
push 0
push eax
mov dword [esp + 0x24], esi
call fcn.10006290
add esp, 0xc
lea eax, [esp + 0x80]
push 0x8000
push eax
push 0x1001c888
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x1000260b
test edi, edi
jne 0x10002335
test esi, esi
je 0x1000260b
push ebx
lea ebx, [esp + 0x84]
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x10002340
sub ebx, ecx
test edi, edi
jne 0x10002351
xor edx, edx
jmp 0x10002362
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002356
sub ecx, edx
lea edx, [ecx + 2]
mov dword [esp + 0xc], edx
push ebp
test esi, esi
jne 0x1000236f
xor ebp, ebp
jmp 0x1000237e
mov ebp, esi
lea ecx, [ebp + 1]
mov al, byte [ebp]
inc ebp
test al, al
jne 0x10002374
sub ebp, ecx
mov ecx, edi
lea eax, [ebx + edx]
neg ecx
sbb ecx, ecx
and ecx, 0x1e
mov dword [esp + 0x24], ecx
add ecx, 0x41
add eax, ecx
add eax, ebp
push eax
call fcn.1000896f
add esp, 4
mov dword [esp + 0x14], eax
call fcn.10003360
mov ecx, eax
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], ecx
test eax, eax
jne 0x100023cf
push str.ERROR:_Memory_allocation_failed__R1_
call fcn.100012e0
add esp, 4
jmp 0x10002609
test ecx, ecx
jne 0x100023eb
push eax
call fcn.10008954
push str.ERROR:_CreateProcessA___this_not_may_be_happen
call fcn.100012e0
add esp, 8
jmp 0x10002609
mov ecx, dword [esp + 0x8098]
lea edx, [esp + 0x88]
xorps xmm0, xmm0
mov dword [esp + 0x44], 0x44
and ecx, 0x400
movlpd qword [esp + 0x48], xmm0
or ecx, 0x8000000
movlpd qword [esp + 0x50], xmm0
mov dword [esp + 0x8098], ecx
mov esi, edx
lea ecx, [eax + 1]
movlpd qword [esp + 0x58], xmm0
movups xmmword [esp + 0x34], xmm0
movlpd qword [esp + 0x60], xmm0
movlpd qword [esp + 0x68], xmm0
movlpd qword [esp + 0x70], xmm0
movlpd qword [esp + 0x78], xmm0
movlpd qword [esp + 0x80], xmm0
mov byte [eax], 0x22
mov eax, ecx
sub eax, esi
mov dword [esp + 0x1c], eax
mov esi, eax
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [esi + edx - 1], al
test al, al
jne 0x10002461
mov esi, dword [esp + 0x20]
add ecx, ebx
mov edx, 0x1001c8a0
mov ebx, ecx
sub ebx, edx
nop dword [eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ebx + edx - 1], al
test al, al
jne 0x10002480
add ecx, 0x3f
cmp dword [esp + 0x10], 0
jbe 0x100024ce
mov edx, 0x1001c8e0
mov ebx, ecx
sub ebx, edx
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ebx + edx - 1], al
test al, al
jne 0x100024a0
add ecx, dword [esp + 0x24]
mov edx, ecx
sub edx, edi
mov al, byte [edi]
lea edi, [edi + 1]
mov byte [edx + edi - 1], al
test al, al
jne 0x100024b5
add ecx, dword [esp + 0x10]
mov word [ecx - 2], 0x2022
mov byte [ecx], al
test ebp, ebp
je 0x100024e1
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x100024d4
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x30]
push dword [esp + 0x38]
push dword [esp + 0x80a8]
push 0
push 0
push 0
push ebx
push 0
call dword [esp + 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1000252b
call esi
push eax
call fcn.10002200
push ebx
push str.ERROR:_cpptestscan_failed__A___command_line:__s
call fcn.100012e0
add esp, 0xc
push 0x8000
lea eax, [esp + 0x8c]
push eax
push 0x1001c988
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x1000257c
mov ecx, 0x1001c9a4
lea eax, [esp + 0x88]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10002573
test dl, dl
je 0x1000256f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10002573
add eax, 2
add ecx, 2
test dl, dl
jne 0x10002553
xor eax, eax
jmp 0x10002578
sbb eax, eax
or eax, 1
test eax, eax
je 0x100025dc
push 0xffffffffffffffff
push dword [esp + 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100025c6
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x38]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
mov ecx, 1
mov eax, 0
cmovne eax, ecx
test eax, eax
je 0x100025dc
push ebx
push dword [esp + 0x1c]
push dword [esp + 0x44]
push str.cpptestscan_finished__A___pid_d__exit_code_d___command_line:__s
call fcn.100012e0
add esp, 0x10
jmp 0x100025ee
call esi
push eax
call fcn.10002200
push ebx
push str.ERROR:_waiting_for_cpptestscan_failed__A___command_line:__s
call fcn.100012e0
add esp, 0xc
push ebx
push dword [esp + 0x40]
push str.cpptestscan_finished__A___pid_d___command_line:__s
call fcn.100012e0
add esp, 0xc
push ebx
call fcn.10008954
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push dword [esp + 0x38]
call esi
push dword [esp + 0x34]
call esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8080]
pop edi
pop esi
xor ecx, esp
call fcn.100050a1
add esp, 0x807c
ret