Function at 0x406eb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6168dd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x6d5db8]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1bc], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 8]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40723e
mov byte [ebp - 0x64], 0
push 0x3f
push 0
lea edx, [ebp - 0x63]
push edx
call fcn.005e5330
add esp, 0xc
mov dword [ebp - 0x20], 0x40
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
push str.RegisterValue
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40722f
mov byte [ebp - 0xa4], 0
push 0x3f
push 0
lea ecx, [ebp - 0xa3]
push ecx
call fcn.005e5330
add esp, 0xc
lea edx, [ebp - 0xa4]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.00405420
mov ecx, eax
call fcn.00406c10
movzx edx, al
test edx, edx
je 0x40722f
mov byte [ebp - 0x104], 0
push 0x3f
push 0
lea eax, [ebp - 0x103]
push eax
call fcn.005e5330
add esp, 0xc
lea ecx, [ebp - 0xa4]
push ecx
lea ecx, [ebp - 0x160]
call fcn.00404310
mov dword [ebp - 4], 0
push 0
push 0x7c
lea ecx, [ebp - 0x160]
call fcn.005a2550
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x144], 0
lea ecx, [ebp - 0xc4]
call fcn.004072b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120]
call fcn.004072b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x140]
call fcn.004072b0
mov byte [ebp - 4], 3
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0x124], 0
cmp dword [ebp - 0x164], 0xffffffff
je 0x4071f0
mov edx, dword [ebp - 0x164]
push edx
push 0
lea eax, [ebp - 0x180]
push eax
lea ecx, [ebp - 0x160]
call fcn.00407300
mov dword [ebp - 0x1c0], eax
mov ecx, dword [ebp - 0x1c0]
mov dword [ebp - 0x1c4], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x1c4]
push edx
lea ecx, [ebp - 0xc4]
call fcn.004072e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x180]
call fcn.00404ac0
mov eax, dword [ebp - 0x164]
add eax, 1
push eax
push 0x7c
lea ecx, [ebp - 0x160]
call fcn.005a2550
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0xffffffff
je 0x4071f0
mov ecx, dword [ebp - 0x144]
sub ecx, dword [ebp - 0x164]
sub ecx, 1
push ecx
mov edx, dword [ebp - 0x164]
add edx, 1
push edx
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x160]
call fcn.00407300
mov dword [ebp - 0x1c8], eax
mov ecx, dword [ebp - 0x1c8]
mov dword [ebp - 0x1cc], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x1cc]
push edx
lea ecx, [ebp - 0x120]
call fcn.004072e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x19c]
call fcn.00404ac0
lea ecx, [ebp - 0x160]
call fcn.004ef2c0
sub eax, dword [ebp - 0x144]
sub eax, 1
push eax
mov eax, dword [ebp - 0x144]
add eax, 1
push eax
lea ecx, [ebp - 0x1b8]
push ecx
lea ecx, [ebp - 0x160]
call fcn.00407300
mov dword [ebp - 0x1d0], eax
mov edx, dword [ebp - 0x1d0]
mov dword [ebp - 0x1d4], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x1d4]
push eax
lea ecx, [ebp - 0x140]
call fcn.004072e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1b8]
call fcn.00404ac0
lea ecx, [ebp - 0x120]
call fcn.00404ae0
push eax
call fcn.005e62d7
add esp, 4
mov dword [ebp - 0xa8], eax
lea ecx, [ebp - 0x140]
call fcn.00404ae0
push eax
call fcn.005e62d7
add esp, 4
mov dword [ebp - 0x124], eax
push 0x3f
lea ecx, [ebp - 0xc4]
call fcn.00404ae0
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.005e58c0
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xa8]
mov dword [edx], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x124]
mov dword [ecx], edx
mov dword [ebp - 0x1c], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x140]
call fcn.00404ac0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120]
call fcn.00404ac0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xc4]
call fcn.00404ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x160]
call fcn.00404ac0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c]
jmp 0x407241
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.005e5163
mov esp, ebp
pop ebp
ret 0x10