Function at 0x4921b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
call fcn.0048f410
mov ecx, dword [0x52fe30]
push eax
call fcn.0044e860
mov esi, eax
mov eax, dword [edi + 0x3d5c]
mov dword [ebp - 8], 0
test eax, eax
je 0x4921e8
cmp word [eax], 0
jne 0x4921f8
cmp byte [esi + 0xd], 0
je 0x492230
cmp word [esi + 0xe], 0
lea eax, [esi + 0xe]
je 0x49222a
test eax, eax
je 0x49222a
cmp word [eax], 0
je 0x49222a
mov ecx, dword [0x52fe30]
push eax
call fcn.0044df90
test eax, eax
jl 0x49222a
mov ecx, dword [0x52fe30]
push eax
call fcn.0044f9b0
mov dword [ebp - 8], eax
test eax, eax
je 0x49222a
mov al, byte [eax + 7]
jmp 0x49224a
cmp byte [esi + 0xd], 0
jne 0x492244
cmp dword [esi + 4], 0
je 0x492244
mov ecx, dword [0x52fe30]
mov al, byte [ecx + 0xb88]
jmp 0x49224a
mov al, byte [esi + 0x110]
mov edi, dword [ebp + 8]
mov byte [edi], al
mov eax, dword [ebp - 8]
test eax, eax
je 0x49225b
mov cl, byte [eax + 8]
jmp 0x49227b
cmp byte [esi + 0xd], 0
jne 0x492275
cmp dword [esi + 4], 0
je 0x492275
mov edx, dword [0x52fe30]
mov cl, byte [edx + 0xb89]
jmp 0x49227b
mov cl, byte [esi + 0x111]
mov ebx, dword [ebp + 0xc]
mov byte [ebx], cl
mov al, byte [edi]
cmp al, 0xf
jbe 0x49229e
cmp cl, 0xf
jbe 0x49229e
mov eax, dword [ebp - 4]
mov byte [ebx], 0x10
mov byte [edi], 0x10
mov byte [eax + 9], 7
mov byte [eax + 0xa], 0
jmp 0x4922f9
cmp al, 0x10
jb 0x4922a5
mov byte [edi], 7
cmp byte [ebx], 0x10
jb 0x4922ad
mov byte [ebx], 0
mov al, byte [edi]
cmp al, byte [ebx]
jne 0x4922ec
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov ecx, dword [0x52fe34]
push edx
call fcn.0045ce40
test al, al
je 0x4922df
mov cl, byte [ebx]
mov eax, 1
shl eax, cl
mov ecx, dword [0x52fe30]
test dword [ecx + 0x114c], eax
jne 0x4922ec
cmp byte [ebx], 0
setne dl
dec dl
and dl, 7
mov byte [edi], dl
mov cl, byte [edi]
mov eax, dword [ebp - 4]
mov byte [eax + 9], cl
mov dl, byte [ebx]
mov byte [eax + 0xa], dl
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x492305
mov al, byte [ecx + 9]
jmp 0x492324
cmp byte [esi + 0xd], 0
jne 0x49231e
cmp dword [esi + 4], 0
je 0x49231e
mov eax, dword [0x52fe30]
mov al, byte [eax + 0xb8a]
jmp 0x492324
mov al, byte [esi + 0x112]
mov edx, dword [ebp + 0x10]
mov byte [edx], al
test ecx, ecx
je 0x492332
mov al, byte [ecx + 0xa]
jmp 0x492352
cmp byte [esi + 0xd], 0
jne 0x49234c
cmp dword [esi + 4], 0
je 0x49234c
mov ecx, dword [0x52fe30]
mov al, byte [ecx + 0xb8b]
jmp 0x492352
mov al, byte [esi + 0x113]
mov edi, dword [ebp + 0x14]
mov byte [edi], al
mov cl, byte [edx]
cmp cl, 0xf
jbe 0x492375
cmp al, 0xf
jbe 0x492375
mov eax, dword [ebp - 4]
mov byte [edi], 0x10
mov byte [edx], 0x10
mov byte [eax + 0xb], 5
mov byte [eax + 0xc], 0xf
jmp 0x4923a5
cmp cl, 0x10
jb 0x49237d
mov byte [edx], 5
cmp byte [edi], 0x10
jb 0x492385
mov byte [edi], 0xf
mov al, byte [edx]
cmp al, byte [edi]
jne 0x492396
test al, al
setne al
dec al
and al, 0xf
mov byte [edi], al
movzx ecx, byte [edx]
mov eax, dword [ebp - 4]
mov byte [eax + 0xb], cl
movzx ecx, byte [edi]
mov byte [eax + 0xc], cl
cmp byte [ebp + 0x18], 0
je 0x49249d
mov eax, dword [ebp + 0x1c]
mov byte [ebp + 0x1b], 0
test eax, eax
jne 0x492401
push eax
lea edx, [ebp + 0x1c]
push edx
push eax
push 0xf003f
push eax
push eax
push eax
push str.ConsoleConEmu
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4923f7
push 0
push 0
push 0
push eax
push str.Failed_to_create_open_registry_key_HKCUConsoleConEmu
call fcn.004263e0
add esp, 0x14
xor eax, eax
mov dword [ebp + 0x1c], eax
jmp 0x4923fe
mov eax, dword [ebp + 0x1c]
mov byte [ebp + 0x1b], 1
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
cmp byte [esi], 0xf
jbe 0x492414
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + 9]
and cl, 0xf
mov byte [esi], cl
cmp byte [ebx], 0xf
jbe 0x492424
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + 0xa]
and cl, 0xf
mov byte [ebx], cl
movzx ecx, byte [ebx]
movzx esi, byte [esi]
shl ecx, 4
or ecx, esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp + 0xc], ecx
test eax, eax
je 0x492454
push 4
lea edx, [ebp + 0xc]
push edx
push 4
push 0
push str.ScreenColors
push eax
call esi
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x10]
cmp byte [edx], 0xf
jbe 0x49245e
cmp byte [edi], 0xf
ja 0x492490
test eax, eax
je 0x492490
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0xc]
movzx ecx, byte [ecx + 0xb]
and edx, 0xf
shl edx, 4
and ecx, 0xf
or edx, ecx
push 4
mov dword [ebp + 0x10], edx
lea edx, [ebp + 0x10]
push edx
push 4
push 0
push str.PopupColors
push eax
call esi
mov eax, dword [ebp + 0x1c]
cmp byte [ebp + 0x1b], 0
je 0x49249d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18