Function at 0x6013c380
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6014b663
push eax
mov dword fs:[0], esp
sub esp, 0x138
push ebx
push esi
mov esi, dword [esp + 0x150]
mov eax, dword [esi + 0x10]
mov eax, dword [eax - 0xc]
xor ebx, ebx
cmp eax, ebx
push edi
jne 0x6013c4ff
mov ecx, dword [esi + 0xc]
cmp dword [ecx - 0xc], ebx
jne 0x6013c4ff
mov eax, dword [esi + 8]
lea edx, [esp + 0x3c]
add esi, 8
push edx
push eax
call fcn.6011c190
test eax, eax
je 0x6013c4d6
cmp dword [esp + 0x3c], ebx
jne 0x6013c409
mov ecx, dword [esp + 0x158]
mov edx, dword [esi]
mov eax, dword [ecx]
push ebx
push ebx
push edx
call dword [eax + 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
add esp, 0x144
ret
push 0x5c
mov ecx, esi
call fcn.60109040
mov edi, eax
cmp edi, 0xffffffff
je 0x6013c82e
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
sub eax, edi
dec eax
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.6011b230
push edi
lea edx, [esp + 0x18]
push edx
mov ecx, esi
mov dword [esp + 0x154], 6
call fcn.601144e0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x150], 7
call fcn.601097e0
push 0x7c
lea ecx, [esp + 0x10]
mov byte [esp + 0x150], 8
call fcn.6010a1e0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x14]
call fcn.601044e0
push 0x7c
lea ecx, [esp + 0x10]
call fcn.6010a1e0
mov ecx, dword [esp + 0x158]
mov eax, dword [esp + 0xc]
mov edx, dword [ecx]
push ebx
push ebx
push eax
call dword [edx + 0x18]
lea ecx, [esp + 0xc]
call fcn.601042d0
lea ecx, [esp + 0x14]
call fcn.601042d0
lea ecx, [esp + 0x10]
call fcn.601042d0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
add esp, 0x144
ret
mov ecx, dword [esp + 0x158]
mov eax, dword [esi]
mov edx, dword [ecx]
push ebx
push ebx
push eax
call dword [edx + 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
add esp, 0x144
ret
mov ecx, dword [esi + 0xc]
cmp dword [ecx - 0xc], ebx
je 0x6013c577
mov eax, dword [esi + 8]
sub eax, 0x10
push eax
call fcn.60109070
add eax, 0x10
add esp, 4
mov dword [esp + 0xc], eax
push 0x7c
lea ecx, [esp + 0x10]
mov dword [esp + 0x150], ebx
call fcn.6010a1e0
mov eax, dword [esi + 0xc]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x14]
call fcn.601044e0
push 0x7c
lea ecx, [esp + 0x10]
call fcn.6010a1e0
mov esi, dword [esi + 0x10]
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [esp + 0x14]
call fcn.601044e0
mov ecx, dword [esp + 0x158]
mov esi, dword [esp + 0xc]
mov edx, dword [ecx]
push ebx
push ebx
push esi
call dword [edx + 0x18]
lea eax, [esi - 0x10]
jmp 0x6013c80c
mov eax, dword [0x6015b6f8]
mov ecx, 0x6015b6f8
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x158], 1
call fcn.6011be20
test eax, eax
jl 0x6013c805
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
push 0x2001f
push eax
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x158], 2
call fcn.60108dc0
test eax, eax
je 0x6013c60c
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x6013c5e8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x14c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x6013c824
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
push ebx
lea ecx, [esp + 0x2c]
push ecx
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x54]
push eax
push ebx
push edi
mov dword [esp + 0x38], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x6013c7fa
push ebp
mov ebp, dword [esp + 0x15c]
lea ecx, [esp + 0x30]
call fcn.6011b120
lea eax, [esp + 0x44]
mov byte [esp + 0x150], 3
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x6013c660
sub eax, edx
push eax
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x38]
call fcn.60104370
mov eax, dword [esp + 0x18]
test eax, eax
mov edx, dword [esp + 0x28]
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], eax
jbe 0x6013c696
push eax
lea ecx, [esp + 0x3c]
call fcn.6011aef0
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x18]
push eax
push ecx
push 0
push 0
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x58]
push eax
push ebx
push edi
mov dword [esp + 0x3c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x6013c7b7
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x34]
call fcn.6011b840
mov eax, dword [esi + 0x10]
mov edx, dword [esp + 0x24]
push eax
push edx
mov byte [esp + 0x158], 4
call dword [sym.imp.MSVCR71.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x6013c791
mov eax, dword [esi + 8]
sub eax, 0x10
push eax
call fcn.60109070
add eax, 0x10
add esp, 4
mov dword [esp + 0x10], eax
push 0x7c
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], 5
call fcn.6010a1e0
lea eax, [esp + 0x44]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x6013c726
sub eax, ecx
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x18]
call fcn.601044e0
push 0x7c
lea ecx, [esp + 0x14]
call fcn.6010a1e0
mov eax, dword [esi + 0x10]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.601044e0
mov edi, dword [esp + 0x10]
mov edx, dword [ebp]
push 0
push 0
push edi
mov ecx, ebp
call dword [edx + 0x18]
lea eax, [edi - 0x10]
mov byte [esp + 0x150], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6013c78d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x150], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6013c7b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x30]
inc ebx
mov dword [esp + 0x1c], 0x104
mov byte [esp + 0x150], 2
call fcn.6011b150
lea eax, [esp + 0x18]
push eax
push 0
lea ecx, [esp + 0x30]
push ecx
push 0
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x58]
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x6013c646
pop ebp
test edi, edi
je 0x6013c805
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x14c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6013c82e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x144
ret