Function at 0x401580
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450a10
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x46c074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x30]
push ecx
push 0x20019
xor bl, bl
mov dword [ebp - 0x30], 0
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401701
push 0x10a
push 0x40
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x34], 0x100
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
cmp dword [ebp + 0x34], 0x10
lea ecx, [ebp + 0x20]
mov edi, eax
lea eax, [ebp - 0x34]
cmovae ecx, dword [ebp + 0x20]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push 0
push ecx
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4016f1
mov edx, 0x460a40
lea ecx, [ebp + 0x38]
call fcn.00401fe0
test al, al
jne 0x4016ef
mov edx, 0x460a40
lea ecx, [ebp + 0x50]
call fcn.00401fe0
test al, al
jne 0x4016b2
cmp dword [ebp - 0x14], 7
jne 0x4016f1
mov esi, edi
cmp byte [edi], al
je 0x4016f1
mov edx, esi
lea ecx, [ebp - 0x2c]
call fcn.004014c0
push 0
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004019d0
cmp eax, 0xffffffff
jne 0x401690
push 0
lea eax, [ebp + 0x50]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004019d0
cmp eax, 0xffffffff
je 0x401692
mov bl, 1
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401697
sub ecx, edx
inc ecx
add esi, ecx
lea ecx, [ebp - 0x2c]
call fcn.00401ae0
cmp byte [esi], 0
jne 0x401660
jmp 0x4016f1
mov edx, edi
lea ecx, [ebp - 0x2c]
call fcn.004014c0
mov eax, dword [ebp - 0x14]
cmp eax, 1
je 0x4016c9
cmp eax, 7
jne 0x4016e5
push 0
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004019d0
cmp eax, 0xffffffff
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
lea ecx, [ebp - 0x2c]
call fcn.00401ae0
jmp 0x4016f1
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x1c]
cmp eax, 0x10
jb 0x401747
mov ecx, dword [ebp + 8]
inc eax
cmp eax, 0x1000
jb 0x40173e
test cl, 0x1f
jne 0x401855
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x401855
sub ecx, eax
cmp ecx, 4
jb 0x401855
cmp ecx, 0x23
ja 0x401855
mov ecx, eax
push ecx
call fcn.0041bf0d
add esp, 4
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp eax, 0x10
jb 0x40179f
mov ecx, dword [ebp + 0x20]
inc eax
cmp eax, 0x1000
jb 0x401796
test cl, 0x1f
jne 0x401855
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x401855
sub ecx, eax
cmp ecx, 4
jb 0x401855
cmp ecx, 0x23
ja 0x401855
mov ecx, eax
push ecx
call fcn.0041bf0d
add esp, 4
mov eax, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp eax, 0x10
jb 0x4017ef
mov ecx, dword [ebp + 0x38]
inc eax
cmp eax, 0x1000
jb 0x4017e6
test cl, 0x1f
jne 0x401855
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x401855
sub ecx, eax
cmp ecx, 4
jb 0x401855
cmp ecx, 0x23
ja 0x401855
mov ecx, eax
push ecx
call fcn.0041bf0d
add esp, 4
mov eax, dword [ebp + 0x64]
mov dword [ebp + 0x48], 0
mov dword [ebp + 0x4c], 0xf
mov byte [ebp + 0x38], 0
cmp eax, 0x10
jb 0x401837
mov ecx, dword [ebp + 0x50]
inc eax
cmp eax, 0x1000
jb 0x40182e
test cl, 0x1f
jne 0x401855
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x401855
sub ecx, eax
cmp ecx, 4
jb 0x401855
cmp ecx, 0x23
ja 0x401855
mov ecx, eax
push ecx
call fcn.0041bf0d
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041bb6a
mov esp, ebp
pop ebp
ret
call fcn.00437255
int3