Function at 0x406d0d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4e0
cmp dword [0x420a88], 0
je 0x406d84
cmp dword [ebp + 0x1c], 0xffffffff
jne 0x406d84
mov eax, dword [ebp + 0x20]
and eax, 0xff
push eax
push 0x420ae8
push 0x420aec
push 0x420af0
push 0x420af4
push 0x420af8
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00406c95
add esp, 0xc
push eax
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00406c95
add esp, 0xc
push eax
push 0
mov eax, dword [ebp + 0x1c]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040652e
add esp, 0x2c
mov dword [ebp + 0x1c], eax
lea edx, [ebp - 0x348]
push edx
push 0x20019
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406ff9
mov dword [ebp - 0x108], 0x190
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x4d8]
push eax
push 0
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x348]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406fec
cmp dword [ebp - 0x108], 0
je 0x406fec
lea eax, [ebp - 0x4d8]
mov dword [ebp - 0x4dc], eax
mov ecx, dword [ebp - 0x4dc]
movsx edx, byte [ecx]
test edx, edx
je 0x406fec
movsx eax, byte [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0x4dc]
push ecx
call fcn.0040df20
add esp, 8
mov dword [ebp - 0x4e0], eax
cmp dword [ebp - 0x4e0], 0
je 0x406e33
mov edx, dword [ebp - 0x4e0]
mov byte [edx], 0
push 0
mov eax, dword [ebp - 0x4dc]
push eax
call fcn.00403360
add esp, 8
mov dword [ebp - 0x214], eax
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x104]
push edx
mov eax, dword [ebp - 0x214]
push eax
call fcn.004038ca
add esp, 0xc
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10c]
push ecx
push 0xffffffffffffffff
push 0
push 1
push 0x1002
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov dword [ebp - 0x344], eax
lea eax, [ebp - 0x340]
push eax
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [ebp - 0x214]
push edx
mov eax, dword [ebp - 0x4dc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00406381
add esp, 0x14
and eax, 0xff
test eax, eax
je 0x406fc3
cmp dword [ebp + 0x1c], 0xffffffff
jne 0x406f31
mov edx, dword [ebp + 0x20]
and edx, 0xff
push edx
push 0x420afc
push 0x420b00
push 0x420b04
push 0x420b08
push 0x420b0c
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00406c95
add esp, 0xc
push eax
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00406c95
add esp, 0xc
push eax
push 0
mov edx, dword [ebp + 0x1c]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.0040652e
add esp, 0x2c
mov dword [ebp + 0x1c], eax
mov ecx, dword [ebp + 0x20]
and ecx, 0xff
push ecx
lea edx, [ebp - 0x340]
push edx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [ebp - 0x214]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00406c95
add esp, 0xc
push eax
mov eax, dword [ebp - 0x4dc]
push eax
push 1
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp - 0x344]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040652e
add esp, 0x2c
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x23c], 4
lea ecx, [ebp - 0x23c]
push ecx
push 0
push 0x1005
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x21c]
mov cl, byte [ebp + 0x18]
mov byte [eax + 0x215], cl
cmp dword [ebp - 0x4e0], 0
je 0x406fdd
mov edx, dword [ebp - 0x4e0]
add edx, 1
mov dword [ebp - 0x4dc], edx
jmp 0x406fe7
mov dword [ebp - 0x4dc], 0x420b10
jmp 0x406df6
mov eax, dword [ebp - 0x348]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x1c]
mov esp, ebp
pop ebp
ret