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

Disassembly:
push ebp
sub esp, 0x60
mov eax, 0x69e87c
call fcn.006426c4
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 0x433293
xor al, al
jmp 0x433496
lea eax, [ebp - 0x244]
mov esi, str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push eax
push esi
mov edi, reloc.WS2_32.dll_accept
push edi
call fcn.00486a7b
test al, al
je 0x4332bf
lea eax, [ebp - 0x244]
push eax
push esi
push edi
call fcn.00486780
mov bl, 1
lea eax, [ebp - 0x244]
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push eax
push esi
push edi
call fcn.00486a7b
test al, al
je 0x433494
lea eax, [ebp - 0x244]
push eax
push esi
push edi
call fcn.00486780
lea eax, [ebp - 0x244]
push eax
push esi
push edi
call fcn.00486a7b
test al, al
jne 0x433301
mov bl, 1
jmp 0x433494
push 0x104
lea eax, [ebp - 0x44c]
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
test eax, eax
je 0x433494
mov eax, 0x6c5314
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.00465d7f
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x433340
mov eax, dword [eax]
xor ebx, ebx
push ebx
push 0x6ca6a0
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
push 1
lea ecx, [ebp - 0x24]
call fcn.004285f6
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp]
push str.REG_DELETE__HKLMSoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers___v___s___f
push eax
call fcn.00465d7f
add esp, 0xc
push ebx
push ebx
lea eax, [ebp + 0x48]
mov dword [ebp - 4], ebx
push eax
call fcn.00460dc6
mov esi, str..bat
mov byte [ebp - 4], 1
push esi
call fcn.00428864
pop ecx
push eax
push esi
lea ecx, [ebp + 0x48]
call fcn.004286d2
cmp dword [ebp + 0x5c], 8
mov eax, dword [ebp + 0x48]
jae 0x4333a7
lea eax, [ebp + 0x48]
push 0x80
push 7
push eax
call fcn.00461def
mov dword [ebp + 0x60], eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00440ca9
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 2
jb 0x4333d0
mov eax, dword [eax]
push dword [ebp + 0x10]
push eax
push dword [ebp + 0x60]
call fcn.004622b3
push ebx
push 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.0040f95f
lea eax, [ebp + 0x60]
push eax
call fcn.00461d7f
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.00465d7f
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 0x433432
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.00434411
mov bl, al
mov eax, 0x6c6228
test bl, bl
jne 0x433458
mov eax, 0x6ca8ac
push eax
push str.RemoveCompatibilityModeKey_removal_from_HKLM_returned__s_
call fcn.0040e6e4
add esp, 8
lea ecx, [ebp + 0x30]
xor esi, esi
push esi
push 1
call fcn.004285f6
push esi
push 1
lea ecx, [ebp + 0x18]
call fcn.004285f6
push esi
push 1
lea ecx, [ebp + 0x48]
call fcn.004285f6
push esi
push 1
lea ecx, [ebp]
call fcn.004285f6
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