Function at 0x408d7c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430ca1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x30]
call fcn.00404130
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x58]
call fcn.00409ca0
mov ecx, eax
call fcn.0040605d
test eax, eax
jne 0x408de6
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004033a0
mov eax, dword [ebp - 0x38]
jmp 0x408fac
push 0x20019
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x30]
call fcn.00407670
push eax
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x58]
call fcn.004081e6
test eax, eax
jne 0x408e26
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004033a0
mov eax, dword [ebp - 0x3c]
jmp 0x408fac
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0
lea eax, [ebp - 0x34]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x408e6e
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004033a0
mov eax, dword [ebp - 0x40]
jmp 0x408fac
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp + 0x18]
je 0x408e94
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004033a0
mov eax, dword [ebp - 0x44]
jmp 0x408fac
mov ecx, dword [ebp - 0x18]
add ecx, 1
push ecx
call fcn.00421f3e
add esp, 4
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
jne 0x408ed0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004033a0
mov eax, dword [ebp - 0x4c]
jmp 0x408fac
mov eax, dword [ebp - 0x18]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0040e060
add esp, 0xc
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x34]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x408f70
cmp dword [ebp + 0x18], 1
jne 0x408f1e
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.00404210
jmp 0x408f70
cmp dword [ebp + 0x18], 7
jne 0x408f42
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.0040e360
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x18]
mov dword [edx], eax
jmp 0x408f70
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x18]
cmp edx, dword [ecx]
jae 0x408f54
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x5c], eax
jmp 0x408f5c
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call fcn.0040e360
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.00421f67
add esp, 4
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x58]
call fcn.0040823c
xor eax, eax
cmp dword [ebp - 0x10], 0
sete al
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004033a0
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x14