Function at 0x42e721
Capabilities:
Get comspec environment variable
Query environment variable

Disassembly:
mov eax, 0x66937e
call fcn.006313fc
sub esp, 0x4a4
lea eax, [esp + 0x94]
push ebx
push ebp
push esi
push edi
mov ebp, 0x104
xor bl, bl
push ebp
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
test eax, eax
jne 0x42e758
xor al, al
jmp 0x42e993
lea eax, [esp + 0xa4]
mov esi, str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push eax
push esi
mov edi, reloc.WS2_32.dll_accept
push edi
call fcn.00481e97
test al, al
je 0x42e786
lea eax, [esp + 0xa4]
push eax
push esi
push edi
call fcn.00481b85
mov bl, 1
lea eax, [esp + 0xa4]
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push eax
push esi
push edi
call fcn.00481e97
test al, al
je 0x42e991
lea eax, [esp + 0xa4]
push eax
push esi
push edi
call fcn.00481b85
lea eax, [esp + 0xa4]
push eax
push esi
push edi
call fcn.00481e97
test al, al
jne 0x42e7cb
mov bl, 1
jmp 0x42e991
push ebp
lea eax, [esp + 0x2b0]
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
test eax, eax
je 0x42e991
mov eax, 0x68ac64
push eax
push eax
lea eax, [esp + 0x94]
push str._s_is_running_in_Vista_compatibility_mode_which_is_known_to_cause_problems._Please_allow__s_to_fix_this_by_clicking__Yes__in_the_next_dialog.
push eax
call fcn.0047224d
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x42e80b
mov eax, dword [eax]
xor ebx, ebx
push ebx
push 0x6901f8
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
push 1
lea ecx, [esp + 0x94]
call fcn.0042341c
lea eax, [esp + 0xa4]
push eax
lea eax, [esp + 0x60]
push str.REG_DELETE__HKLMSoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers___v___s___f
push eax
call fcn.0047224d
add esp, 0xc
push ebx
push ebx
lea eax, [esp + 0x1c]
mov dword [esp + 0x4c4], ebx
push eax
call fcn.0045ddbc
mov esi, str..bat
mov byte [esp + 0x4bc], 1
push esi
call fcn.004236bc
pop ecx
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.004234f9
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x42e885
lea eax, [esp + 0x14]
push 0x80
push 7
pop ebp
push ebp
push eax
call fcn.0045eeaa
mov dword [esp + 0x10], eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.0043d091
cmp dword [eax + 0x14], 0x10
mov byte [esp + 0x4bc], 2
jb 0x42e8b7
mov eax, dword [eax]
push dword [esp + 0x6c]
push eax
push dword [esp + 0x18]
call fcn.0045f311
push ebx
push 1
lea ecx, [esp + 0x7c]
mov byte [esp + 0x4c4], 1
call fcn.0040a0e9
lea eax, [esp + 0x10]
push eax
call fcn.0045ee3a
sub esp, 0x18
lea eax, [esp + 0x5c]
lea esi, [esp + 0x2c]
push 6
pop ecx
mov edi, esp
push str.__C__s
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.0047224d
add esp, 0x20
xor eax, eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], ax
cmp dword [esp + 0x58], 8
mov eax, dword [esp + 0x44]
mov byte [esp + 0x4bc], 4
jae 0x42e929
lea eax, [esp + 0x44]
push ebx
push 1
push 1
lea ecx, [esp + 0x38]
push ecx
push eax
lea eax, [esp + 0x2c0]
push eax
call fcn.0042fa11
mov bl, al
mov eax, 0x68bb78
test bl, bl
jne 0x42e951
mov eax, 0x690404
push eax
push str.RemoveCompatibilityModeKey_removal_from_HKLM_returned__s_
call fcn.00409edb
add esp, 8
lea ecx, [esp + 0x2c]
xor esi, esi
push esi
push 1
call fcn.0042341c
push esi
push 1
lea ecx, [esp + 0x4c]
call fcn.0042341c
push esi
push 1
lea ecx, [esp + 0x1c]
call fcn.0042341c
push esi
push 1
lea ecx, [esp + 0x64]
call fcn.0042341c
mov al, bl
mov ecx, dword [esp + 0x4b4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
leave
ret