Function at 0x4134d3
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x844
mov eax, 0x440ce6
call fcn.0042b376
xor ebx, ebx
cmp dword [esi + 0x1c], 0x10
mov edi, ecx
mov dword [ebp - 0x848], edi
mov dword [ebp - 0x830], ebx
jb 0x4134fd
mov eax, dword [esi + 8]
jmp 0x413500
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 0x4137ee
cmp dword [ebp - 0x830], ebx
je 0x4137ee
mov dword [ebp - 0x844], ebx
cmp dword [esi + 0x80], ebx
je 0x413640
push 0x3ff
lea eax, [ebp - 0x40f]
push ebx
push eax
mov byte [ebp - 0x410], bl
call fcn.00431170
add esp, 0xc
cmp dword [esi + 0x38], 0x10
mov dword [ebp - 0x838], 0x400
jb 0x41356c
mov eax, dword [esi + 0x24]
jmp 0x41356f
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 0x4137c4
lea eax, [ebp - 0x410]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41359d
sub eax, edx
je 0x4137c4
push ebx
lea ecx, [ebp - 0x82c]
mov dword [ebp - 0x814], 0xf
call fcn.00403636
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.00402e72
call fcn.00424ecb
cmp eax, ebx
jge 0x4135fb
push ebx
push 1
jmp 0x4137b9
sub esp, 0x1c
lea eax, [ebp - 0x410]
mov ecx, esp
mov dword [ebp - 0x834], esp
push eax
call fcn.00402e72
push dword [ebp - 0x848]
mov ecx, esi
call fcn.00411ad1
cmp eax, ebx
push ebx
lea ecx, [ebp - 0x82c]
jge 0x413631
push 1
jmp 0x4137bf
xor eax, eax
inc eax
mov dword [ebp - 0x844], eax
push eax
jmp 0x4137bf
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.00431170
add esp, 0xc
push edi
lea eax, [ebp - 0x80f]
push ebx
push eax
mov byte [ebp - 0x810], bl
call fcn.00431170
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 0x4137c4
cmp dword [ebp - 0x838], 1
jne 0x413796
lea eax, [ebp - 0x410]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4136e4
sub eax, edx
je 0x413796
lea eax, [ebp - 0x810]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4136fc
sub eax, edx
je 0x413796
push ebx
lea ecx, [ebp - 0x82c]
mov dword [ebp - 0x814], 0xf
call fcn.00403636
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.00402e72
mov ecx, dword [ebp - 0x848]
call fcn.00424e1d
cmp eax, ebx
jl 0x413784
sub esp, 0x1c
lea eax, [ebp - 0x810]
mov ecx, esp
mov dword [ebp - 0x840], esp
push eax
call fcn.00402e72
push dword [ebp - 0x848]
mov ecx, esi
call fcn.00411ad1
cmp eax, ebx
jge 0x4137ae
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x82c]
call fcn.0040329c
inc dword [ebp - 0x83c]
cmp dword [ebp - 0x83c], 0xc8
jb 0x41364b
jmp 0x4137c4
xor eax, eax
inc eax
push ebx
mov dword [ebp - 0x844], eax
push eax
lea ecx, [ebp - 0x82c]
call fcn.0040329c
cmp dword [ebp - 0x830], ebx
je 0x4137d8
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 0x4137f3
mov eax, 0x80004005
call fcn.0042b3f9
ret