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

Disassembly:
push ebp
sub esp, 0x60
mov eax, 0x69c6da
call fcn.00640244
sub esp, 0x440
lea eax, [ebp - 0x244]
push ebx
push esi
push edi
push 0x104
push eax
push 0
xor bl, bl
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
test eax, eax
jne 0x432f2d
xor al, al
jmp 0x433130
lea eax, [ebp - 0x244]
mov esi, str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push eax
push esi
mov edi, reloc.WS2_32.dll_accept
push edi
call fcn.00486844
test al, al
je 0x432f59
lea eax, [ebp - 0x244]
push eax
push esi
push edi
call fcn.00486549
mov bl, 1
lea eax, [ebp - 0x244]
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push eax
push esi
push edi
call fcn.00486844
test al, al
je 0x43312e
lea eax, [ebp - 0x244]
push eax
push esi
push edi
call fcn.00486549
lea eax, [ebp - 0x244]
push eax
push esi
push edi
call fcn.00486844
test al, al
jne 0x432f9b
mov bl, 1
jmp 0x43312e
push 0x104
lea eax, [ebp - 0x44c]
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
test eax, eax
je 0x43312e
mov eax, 0x6c2294
push eax
push eax
lea eax, [ebp - 0x24]
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.004654e1
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x432fda
mov eax, dword [eax]
xor ebx, ebx
push ebx
push 0x6c7620
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
push 1
lea ecx, [ebp - 0x24]
call fcn.004281f2
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp]
push str.REG_DELETE__HKLMSoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers___v___s___f
push eax
call fcn.004654e1
add esp, 0xc
push ebx
push ebx
lea eax, [ebp + 0x48]
mov dword [ebp - 4], ebx
push eax
call fcn.0046059a
mov esi, str..bat
mov byte [ebp - 4], 1
push esi
call fcn.00428460
pop ecx
push eax
push esi
lea ecx, [ebp + 0x48]
call fcn.004282ce
cmp dword [ebp + 0x5c], 8
mov eax, dword [ebp + 0x48]
jae 0x433041
lea eax, [ebp + 0x48]
push 0x80
push 7
push eax
call fcn.00461598
mov dword [ebp + 0x60], eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00440856
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 2
jb 0x43306a
mov eax, dword [eax]
push dword [ebp + 0x10]
push eax
push dword [ebp + 0x60]
call fcn.00461a64
push ebx
push 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.0040f52f
lea eax, [ebp + 0x60]
push eax
call fcn.00461528
sub esp, 0x18
lea eax, [ebp + 0x18]
lea esi, [ebp + 0x48]
push 6
pop ecx
mov edi, esp
push str.__C__s
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.004654e1
add esp, 0x20
xor eax, eax
mov dword [ebp + 0x44], 7
mov dword [ebp + 0x40], ebx
mov word [ebp + 0x30], ax
cmp dword [ebp + 0x2c], 8
mov eax, dword [ebp + 0x18]
mov byte [ebp - 4], 4
jae 0x4330cc
lea eax, [ebp + 0x18]
push ebx
push 1
push 1
lea ecx, [ebp + 0x30]
push ecx
push eax
lea eax, [ebp - 0x44c]
push eax
call fcn.004340ab
mov bl, al
mov eax, 0x6c31a8
test bl, bl
jne 0x4330f2
mov eax, 0x6c782c
push eax
push str.RemoveCompatibilityModeKey_removal_from_HKLM_returned__s_
call fcn.0040e2b4
add esp, 8
lea ecx, [ebp + 0x30]
xor esi, esi
push esi
push 1
call fcn.004281f2
push esi
push 1
lea ecx, [ebp + 0x18]
call fcn.004281f2
push esi
push 1
lea ecx, [ebp + 0x48]
call fcn.004281f2
push esi
push 1
lea ecx, [ebp]
call fcn.004281f2
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
lea esp, [ebp + 0x64]
pop ebp
ret