Function at 0x405200
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x43a004]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push 1
push 0
push 0x436d68
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405444
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x20]
push edi
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 0x18
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push str.DefaultColor
push dword [ebp - 0x28]
call esi
test eax, eax
jne 0x405280
mov eax, dword [ebp - 0x24]
cmp eax, 4
jne 0x405265
mov ax, word [ebp - 0x1c]
jmp 0x40527a
cmp eax, 1
jne 0x405280
push 0
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.00420036
add esp, 0xc
mov word [0x43bbec], ax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x18
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push str.DelayedExpansion
push dword [ebp - 0x28]
call esi
test eax, eax
jne 0x4052d1
mov eax, dword [ebp - 0x24]
cmp eax, 4
jne 0x4052b5
xor eax, eax
cmp dword [ebp - 0x1c], eax
setne al
jmp 0x4052cc
cmp eax, 1
jne 0x4052d1
lea eax, [ebp - 0x1c]
push eax
call fcn.0041fe0e
dec eax
add esp, 4
neg eax
sbb eax, eax
inc eax
mov dword [0x43bbf0], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x18
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push str.EnableExtensions
push dword [ebp - 0x28]
call esi
test eax, eax
jne 0x405322
mov eax, dword [ebp - 0x24]
cmp eax, 4
jne 0x405306
xor eax, eax
cmp dword [ebp - 0x1c], eax
setne al
jmp 0x40531d
cmp eax, 1
jne 0x405322
lea eax, [ebp - 0x1c]
push eax
call fcn.0041fe0e
dec eax
add esp, 4
neg eax
sbb eax, eax
inc eax
mov dword [0x43a948], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x18
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push str.CompletionChar
push dword [ebp - 0x28]
call esi
test eax, eax
jne 0x405376
mov eax, dword [ebp - 0x24]
cmp eax, 4
jne 0x405359
mov ax, word [ebp - 0x1c]
mov word [0x43a960], ax
jmp 0x40537c
cmp eax, 1
jne 0x405376
push 0
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.00420036
add esp, 0xc
mov word [0x43a960], ax
jmp 0x40537c
mov ax, word [0x43a960]
mov edi, 0x20
test ax, ax
je 0x405391
cmp ax, 0xd
je 0x405391
cmp ax, di
jb 0x405398
mov word [0x43a960], di
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x18
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push str.PathCompletionChar
push dword [ebp - 0x28]
call esi
test eax, eax
jne 0x4053ec
mov eax, dword [ebp - 0x24]
cmp eax, 4
jne 0x4053cf
mov ax, word [ebp - 0x1c]
mov word [0x43a964], ax
jmp 0x4053f2
cmp eax, 1
jne 0x4053ec
push 0
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.00420036
add esp, 0xc
mov word [0x43a964], ax
jmp 0x4053f2
mov ax, word [0x43a964]
test ax, ax
je 0x405420
cmp ax, 0xd
je 0x405420
cmp ax, 0x20
jae 0x405420
cmp word [0x43a960], di
movzx edx, word [0x43a960]
movzx eax, ax
cmovae edx, eax
mov word [0x43a960], dx
jmp 0x405439
mov ax, word [0x43a960]
mov word [0x43a964], di
cmp ax, 0x20
jae 0x405439
mov word [0x43a964], ax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret