Function at 0x413caa
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x844
mov eax, 0x4414af
call fcn.0042bb26
xor ebx, ebx
cmp dword [esi + 0x1c], 0x10
mov edi, ecx
mov dword [ebp - 0x848], edi
mov dword [ebp - 0x830], ebx
jb 0x413cd4
mov eax, dword [esi + 8]
jmp 0x413cd7
lea eax, [esi + 8]
lea ecx, [ebp - 0x830]
push ecx
push 0x20019
push ebx
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x413fc5
cmp dword [ebp - 0x830], ebx
je 0x413fc5
mov dword [ebp - 0x844], ebx
cmp dword [esi + 0x80], ebx
je 0x413e17
push 0x3ff
lea eax, [ebp - 0x40f]
push ebx
push eax
mov byte [ebp - 0x410], bl
call fcn.00431920
add esp, 0xc
cmp dword [esi + 0x38], 0x10
mov dword [ebp - 0x838], 0x400
jb 0x413d43
mov eax, dword [esi + 0x24]
jmp 0x413d46
lea eax, [esi + 0x24]
lea ecx, [ebp - 0x838]
push ecx
lea ecx, [ebp - 0x410]
push ecx
push ebx
push ebx
push eax
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x413f9b
lea eax, [ebp - 0x410]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x413d74
sub eax, edx
je 0x413f9b
push ebx
lea ecx, [ebp - 0x82c]
mov dword [ebp - 0x814], 0xf
call fcn.00403957
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x82c]
push eax
sub esp, 0x1c
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x410]
mov ecx, esp
mov dword [ebp - 0x834], esp
push eax
call fcn.00403193
call fcn.0042507e
cmp eax, ebx
jge 0x413dd2
push ebx
push 1
jmp 0x413f90
sub esp, 0x1c
lea eax, [ebp - 0x410]
mov ecx, esp
mov dword [ebp - 0x834], esp
push eax
call fcn.00403193
push dword [ebp - 0x848]
mov ecx, esi
call fcn.00412105
cmp eax, ebx
push ebx
lea ecx, [ebp - 0x82c]
jge 0x413e08
push 1
jmp 0x413f96
xor eax, eax
inc eax
mov dword [ebp - 0x844], eax
push eax
jmp 0x413f96
mov dword [ebp - 0x83c], ebx
mov edi, 0x3ff
push edi
lea eax, [ebp - 0x40f]
push ebx
push eax
mov byte [ebp - 0x410], bl
call fcn.00431920
add esp, 0xc
push edi
lea eax, [ebp - 0x80f]
push ebx
push eax
mov byte [ebp - 0x810], bl
call fcn.00431920
add esp, 0xc
mov eax, 0x400
mov dword [ebp - 0x834], eax
mov dword [ebp - 0x84c], eax
lea eax, [ebp - 0x84c]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x838]
push eax
push ebx
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x83c]
mov dword [ebp - 0x838], ebx
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, ebx
jne 0x413f9b
cmp dword [ebp - 0x838], 1
jne 0x413f6d
lea eax, [ebp - 0x410]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x413ebb
sub eax, edx
je 0x413f6d
lea eax, [ebp - 0x810]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x413ed3
sub eax, edx
je 0x413f6d
push ebx
lea ecx, [ebp - 0x82c]
mov dword [ebp - 0x814], 0xf
call fcn.00403957
lea eax, [ebp - 0x850]
push eax
lea eax, [ebp - 0x82c]
push eax
sub esp, 0x1c
lea eax, [ebp - 0x410]
mov ecx, esp
mov dword [ebp - 0x840], esp
push eax
mov dword [ebp - 4], 1
call fcn.00403193
mov ecx, dword [ebp - 0x848]
call fcn.00424fd0
cmp eax, ebx
jl 0x413f5b
sub esp, 0x1c
lea eax, [ebp - 0x810]
mov ecx, esp
mov dword [ebp - 0x840], esp
push eax
call fcn.00403193
push dword [ebp - 0x848]
mov ecx, esi
call fcn.00412105
cmp eax, ebx
jge 0x413f85
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x82c]
call fcn.004035bd
inc dword [ebp - 0x83c]
cmp dword [ebp - 0x83c], 0xc8
jb 0x413e22
jmp 0x413f9b
xor eax, eax
inc eax
push ebx
mov dword [ebp - 0x844], eax
push eax
lea ecx, [ebp - 0x82c]
call fcn.004035bd
cmp dword [ebp - 0x830], ebx
je 0x413faf
push dword [ebp - 0x830]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x844]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
jmp 0x413fca
mov eax, 0x80004005
call fcn.0042bba9
ret