Function at 0x408d0c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430c31
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.004040c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x58]
call fcn.00409c30
mov ecx, eax
call fcn.00405fed
test eax, eax
jne 0x408d76
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403330
mov eax, dword [ebp - 0x38]
jmp 0x408f3c
push 0x20019
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x30]
call fcn.00407600
push eax
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x58]
call fcn.00408176
test eax, eax
jne 0x408db6
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403330
mov eax, dword [ebp - 0x3c]
jmp 0x408f3c
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 0x408dfe
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403330
mov eax, dword [ebp - 0x40]
jmp 0x408f3c
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp + 0x18]
je 0x408e24
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403330
mov eax, dword [ebp - 0x44]
jmp 0x408f3c
mov ecx, dword [ebp - 0x18]
add ecx, 1
push ecx
call fcn.00421ece
add esp, 4
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
jne 0x408e60
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403330
mov eax, dword [ebp - 0x4c]
jmp 0x408f3c
mov eax, dword [ebp - 0x18]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0040dff0
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 0x408f00
cmp dword [ebp + 0x18], 1
jne 0x408eae
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.004041a0
jmp 0x408f00
cmp dword [ebp + 0x18], 7
jne 0x408ed2
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.0040e2f0
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x18]
mov dword [edx], eax
jmp 0x408f00
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x18]
cmp edx, dword [ecx]
jae 0x408ee4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x5c], eax
jmp 0x408eec
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.0040e2f0
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.00421ef7
add esp, 4
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x58]
call fcn.004081cc
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.00403330
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x14