Function at 0x405b40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56ed4d
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x5cee6c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x820], ecx
mov dword [ebp - 0x814], 0
mov dword [ebp - 4], 2
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x81c], 0
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp + 0x18]
push ecx
mov ecx, dword [ebp - 0x820]
call fcn.00405df0
test eax, eax
jne 0x405c02
push 0x5b022a
mov ecx, dword [ebp + 8]
call fcn.00404330
mov edx, dword [ebp - 0x814]
or edx, 1
mov dword [ebp - 0x814], edx
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.00404dd0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.00404dd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.00404dd0
mov eax, dword [ebp + 8]
jmp 0x405dc8
lea eax, [ebp - 0x824]
push eax
lea ecx, [ebp - 0x818]
push ecx
push 0
push 0x20019
push 0
push 0
push 0
lea ecx, [ebp + 0x14]
call fcn.00403ff0
push eax
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x405c8c
mov eax, dword [ebp - 0x818]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x5b022a
mov ecx, dword [ebp + 8]
call fcn.00404330
mov ecx, dword [ebp - 0x814]
or ecx, 1
mov dword [ebp - 0x814], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.00404dd0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.00404dd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.00404dd0
mov eax, dword [ebp + 8]
jmp 0x405dc8
mov dword [ebp - 0x81c], 0x800
lea edx, [ebp - 0x81c]
push edx
lea eax, [ebp - 0x810]
push eax
push 0
push 0
lea ecx, [ebp + 0xc]
call fcn.00403ff0
push eax
mov ecx, dword [ebp - 0x818]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x405d19
mov edx, dword [ebp - 0x818]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.00404c30
mov ecx, dword [ebp - 0x814]
or ecx, 1
mov dword [ebp - 0x814], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.00404dd0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.00404dd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.00404dd0
mov eax, dword [ebp + 8]
jmp 0x405dc8
mov edx, dword [ebp - 0x818]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x810]
push eax
call fcn.00553b90
add esp, 4
test eax, eax
jne 0x405d80
lea ecx, [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00404c30
mov edx, dword [ebp - 0x814]
or edx, 1
mov dword [ebp - 0x814], edx
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.00404dd0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.00404dd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.00404dd0
mov eax, dword [ebp + 8]
jmp 0x405dc8
lea eax, [ebp - 0x810]
push eax
mov ecx, dword [ebp + 8]
call fcn.00404330
mov ecx, dword [ebp - 0x814]
or ecx, 1
mov dword [ebp - 0x814], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.00404dd0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.00404dd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.00404dd0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054f055
mov esp, ebp
pop ebp
ret 0x14