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

Disassembly:
push ebp
sub esp, 0x68
mov eax, 0x6d050b
call fcn.006899cc
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 0x4528d5
xor al, al
jmp 0x452b0a
lea eax, [ebp - 0x22c]
mov esi, str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push eax
push esi
mov edi, reloc.WS2_32.dll_accept
push edi
call fcn.0049a4a8
test al, al
je 0x452901
lea eax, [ebp - 0x22c]
push eax
push esi
push edi
call fcn.0049a202
mov bl, 1
lea eax, [ebp - 0x22c]
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push eax
push esi
push edi
call fcn.0049a4a8
test al, al
je 0x452b08
lea eax, [ebp - 0x22c]
push eax
push esi
push edi
call fcn.0049a202
lea eax, [ebp - 0x22c]
push eax
push esi
push edi
call fcn.0049a4a8
test al, al
jne 0x452943
mov bl, 1
jmp 0x452b08
push 0x104
lea eax, [ebp - 0x434]
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
test eax, eax
je 0x452b08
mov eax, 0x6f723c
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.00475719
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x452982
mov eax, dword [eax]
xor ebx, ebx
push ebx
push 0x6faf10
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp + 0x18]
call fcn.0044823e
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp]
push str.REG_DELETE__HKLMSoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers___v___s___f
push eax
call fcn.00475719
add esp, 0xc
push ebx
push ebx
lea eax, [ebp + 0x30]
mov dword [ebp - 4], ebx
push eax
call fcn.0046f6b4
push 0x6fb100
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 1
call fcn.004578e2
cmp dword [ebp + 0x44], 8
lea eax, [ebp + 0x30]
jb 0x4529dd
mov eax, dword [ebp + 0x30]
push 0x80
push 7
push eax
call fcn.00470c47
cmp dword [ebp + 0x14], 8
mov dword [ebp + 0x68], eax
lea eax, [ebp]
jb 0x4529f9
mov eax, dword [ebp]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.0048fcb1
cmp dword [ebp + 0x2c], 0x10
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 2
jb 0x452a13
mov eax, dword [ebp + 0x18]
push dword [ebp + 0x10]
push eax
push dword [ebp + 0x68]
call fcn.0047116f
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 1
call fcn.0040fad0
lea eax, [ebp + 0x68]
push eax
call fcn.00470bd9
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.00475719
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 0x452a74
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.00453b92
mov bl, al
mov eax, 0x6fb11c
test bl, bl
jne 0x452a9a
mov eax, 0x6fb128
push eax
push str.RemoveCompatibilityModeKey_removal_from_HKLM_returned__s_
call fcn.0040f570
mov eax, dword [ebp + 0x5c]
add esp, 8
cmp eax, 8
jb 0x452ae3
mov ecx, dword [ebp + 0x48]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x60], ecx
cmp eax, 0x1000
jb 0x452ada
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x60]
push eax
call fcn.0044810a
mov eax, dword [ebp + 0x64]
mov ecx, dword [ebp + 0x60]
push eax
push ecx
call fcn.0068976d
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.0044823e
lea ecx, [ebp + 0x30]
call fcn.0044823e
lea ecx, [ebp]
call fcn.0044823e
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add ebp, 0x6c
leave
ret