Function at 0x480710
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
call fcn.0047de10
mov ecx, dword [0x50b3a0]
push eax
call fcn.004430b0
mov esi, eax
cmp byte [esi + 0xd], 0
jne 0x480744
cmp dword [esi + 4], 0
je 0x480744
mov eax, dword [0x50b3a0]
mov al, byte [eax + 0xb84]
jmp 0x48074a
mov al, byte [esi + 0x110]
mov edx, dword [ebp + 8]
mov byte [edx], al
cmp byte [esi + 0xd], 0
jne 0x480769
cmp dword [esi + 4], 0
je 0x480769
mov ecx, dword [0x50b3a0]
mov cl, byte [ecx + 0xb85]
jmp 0x48076f
mov cl, byte [esi + 0x111]
mov edi, dword [ebp + 0xc]
mov byte [edi], cl
mov al, byte [edx]
cmp al, 0xf
jbe 0x480795
cmp cl, 0xf
jbe 0x480795
mov byte [edi], 0x10
mov byte [edx], 0x10
mov byte [ebx + 0x255], 7
mov byte [ebx + 0x256], 0
jmp 0x4807fb
cmp al, 0x10
jb 0x48079c
mov byte [edx], 7
cmp byte [edi], 0x10
jb 0x4807a4
mov byte [edi], 0
mov al, byte [edx]
cmp al, byte [edi]
jne 0x4807eb
mov ecx, dword [ebx + 0x47c]
push ecx
mov ecx, dword [0x50b3a4]
call fcn.00451490
test al, al
je 0x4807d6
mov cl, byte [edi]
mov eax, dword [0x50b3a0]
mov edx, 1
shl edx, cl
test dword [eax + 0x114c], edx
jne 0x4807e8
cmp byte [edi], 0
mov edx, dword [ebp + 8]
setne cl
dec cl
and cl, 7
mov byte [edx], cl
jmp 0x4807eb
mov edx, dword [ebp + 8]
mov al, byte [edx]
mov byte [ebx + 0x255], al
mov cl, byte [edi]
mov byte [ebx + 0x256], cl
cmp byte [esi + 0xd], 0
jne 0x480815
cmp dword [esi + 4], 0
je 0x480815
mov edx, dword [0x50b3a0]
mov al, byte [edx + 0xb86]
jmp 0x48081b
mov al, byte [esi + 0x112]
mov edx, dword [ebp + 0x10]
mov byte [edx], al
cmp byte [esi + 0xd], 0
jne 0x480839
cmp dword [esi + 4], 0
je 0x480839
mov eax, dword [0x50b3a0]
mov cl, byte [eax + 0xb87]
jmp 0x48083f
mov cl, byte [esi + 0x113]
mov edi, dword [ebp + 0x14]
mov byte [edi], cl
mov al, byte [edx]
cmp al, 0xf
jbe 0x480865
cmp cl, 0xf
jbe 0x480865
mov byte [edi], 0x10
mov byte [edx], 0x10
mov byte [ebx + 0x257], 5
mov byte [ebx + 0x258], 0xf
jmp 0x480896
cmp al, 0x10
jb 0x48086c
mov byte [edx], 5
cmp byte [edi], 0x10
jb 0x480874
mov byte [edi], 0xf
mov al, byte [edx]
cmp al, byte [edi]
jne 0x480886
test al, al
setne cl
dec cl
and cl, 0xf
mov byte [edi], cl
mov al, byte [edx]
mov byte [ebx + 0x257], al
mov cl, byte [edi]
mov byte [ebx + 0x258], cl
cmp byte [ebp + 0x18], 0
je 0x48099a
mov eax, dword [ebp + 0x1c]
mov byte [ebp + 0x1b], 0
test eax, eax
jne 0x4808f2
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 0x4808e8
push 0
push 0
push 0
push eax
push str.Failed_to_create_open_registry_key_HKCUConsoleConEmu
call fcn.004200b0
add esp, 0x14
xor eax, eax
mov dword [ebp + 0x1c], eax
jmp 0x4808ef
mov eax, dword [ebp + 0x1c]
mov byte [ebp + 0x1b], 1
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
cmp byte [ecx], 0xf
jbe 0x480908
mov dl, byte [ebx + 0x255]
and dl, 0xf
mov byte [ecx], dl
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
cmp byte [esi], 0xf
jbe 0x48091e
mov dl, byte [ebx + 0x256]
and dl, 0xf
mov byte [esi], dl
mov edx, dword [ebp + 0x10]
movzx esi, byte [esi]
movzx ecx, byte [ecx]
shl esi, 4
or esi, ecx
mov dword [ebp + 0x14], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x48094e
push 4
lea edx, [ebp + 0x14]
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 0x480958
cmp byte [edi], 0xf
ja 0x48098d
test eax, eax
je 0x48098d
movzx ecx, byte [ebx + 0x258]
movzx edx, byte [ebx + 0x257]
and ecx, 0xf
shl ecx, 4
and edx, 0xf
or ecx, edx
push 4
mov dword [ebp + 0x10], ecx
lea ecx, [ebp + 0x10]
push ecx
push 4
push 0
push str.PopupColors
push eax
call esi
mov eax, dword [ebp + 0x1c]
cmp byte [ebp + 0x1b], 0
je 0x48099a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
pop ebp
ret 0x18