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

Disassembly:
push ebp
sub esp, 0x68
mov eax, 0x6a80bd
call fcn.00664608
sub esp, 0x428
lea eax, [ebp - 0x22c]
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 0x43258e
xor al, al
jmp 0x4327c3
lea eax, [ebp - 0x22c]
mov esi, str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push eax
push esi
mov edi, reloc.WS2_32.dll_accept
push edi
call fcn.0047bfc0
test al, al
je 0x4325ba
lea eax, [ebp - 0x22c]
push eax
push esi
push edi
call fcn.0047bd15
mov bl, 1
lea eax, [ebp - 0x22c]
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push eax
push esi
push edi
call fcn.0047bfc0
test al, al
je 0x4327c1
lea eax, [ebp - 0x22c]
push eax
push esi
push edi
call fcn.0047bd15
lea eax, [ebp - 0x22c]
push eax
push esi
push edi
call fcn.0047bfc0
test al, al
jne 0x4325fc
mov bl, 1
jmp 0x4327c1
push 0x104
lea eax, [ebp - 0x434]
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
test eax, eax
je 0x4327c1
mov eax, 0x6cf2dc
push eax
push eax
lea eax, [ebp + 0x18]
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.004577f2
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x43263b
mov eax, dword [eax]
xor ebx, ebx
push ebx
push 0x6d2fd0
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp + 0x18]
call fcn.00427afc
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp]
push str.REG_DELETE__HKLMSoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers___v___s___f
push eax
call fcn.004577f2
add esp, 0xc
push ebx
push ebx
lea eax, [ebp + 0x30]
mov dword [ebp - 4], ebx
push eax
call fcn.004518bd
push 0x6d31c0
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 1
call fcn.00437714
cmp dword [ebp + 0x44], 8
lea eax, [ebp + 0x30]
jb 0x432696
mov eax, dword [ebp + 0x30]
push 0x80
push 7
push eax
call fcn.00452e49
cmp dword [ebp + 0x14], 8
mov dword [ebp + 0x68], eax
lea eax, [ebp]
jb 0x4326b2
mov eax, dword [ebp]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.0047181f
cmp dword [ebp + 0x2c], 0x10
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 2
jb 0x4326cc
mov eax, dword [ebp + 0x18]
push dword [ebp + 0x10]
push eax
push dword [ebp + 0x68]
call fcn.0045336e
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 1
call fcn.00410858
lea eax, [ebp + 0x68]
push eax
call fcn.00452ddb
sub esp, 0x18
lea eax, [ebp - 0x24]
lea esi, [ebp + 0x30]
push 6
pop ecx
mov edi, esp
push str.__C__s
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.004577f2
add esp, 0x20
push 7
pop esi
xor eax, eax
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x5c], esi
mov word [ebp + 0x48], ax
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 4
jb 0x43272d
mov eax, dword [ebp - 0x24]
push ebx
push 1
push 1
lea ecx, [ebp + 0x48]
push ecx
push eax
lea eax, [ebp - 0x434]
push eax
call fcn.0043384b
mov bl, al
mov eax, 0x6d31dc
test bl, bl
jne 0x432753
mov eax, 0x6d31e8
push eax
push str.RemoveCompatibilityModeKey_removal_from_HKLM_returned__s_
call fcn.00427b28
mov eax, dword [ebp + 0x5c]
add esp, 8
cmp eax, 8
jb 0x43279c
mov ecx, dword [ebp + 0x48]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x60], ecx
cmp eax, 0x1000
jb 0x432793
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x60]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x64]
mov ecx, dword [ebp + 0x60]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
and dword [ebp + 0x58], 0
lea ecx, [ebp - 0x24]
xor eax, eax
mov dword [ebp + 0x5c], esi
mov word [ebp + 0x48], ax
call fcn.00427afc
lea ecx, [ebp + 0x30]
call fcn.00427afc
lea ecx, [ebp]
call fcn.00427afc
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add ebp, 0x6c
leave
ret