Function at 0x4641c0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x57f9a8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5ecfcc]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ecfcc]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [esp + 0x60]
mov ebp, dword [esp + 0x68]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x48], ebp
mov edx, dword [ecx + 0x1c]
mov esi, 1
mov dword [esp + 0x58], esi
test edx, edx
je 0x4642c0
mov edi, dword [ecx + 0x18]
mov ebx, dword [ecx]
lea eax, [esp + 0x6c]
push eax
lea edx, [esp + 0x3c]
push edx
call fcn.00463c60
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x46423a
cmp eax, ebx
je 0x46423f
call fcn.0055a9e3
cmp dword [esi + 4], edi
sete al
test al, al
jne 0x4642b7
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x58], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46426e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
mov dword [esp + 0x58], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x464296
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0055953b
add esp, 0x48
ret 0x10
mov eax, dword [esp + 0x18]
mov esi, 1
test byte [0x5ef454], 1
jne 0x4642d4
or dword [0x5ef454], esi
mov dword [0x5ef450], eax
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0x18]
push ecx
push esi
xor edi, edi
push edi
push edx
push eax
mov dword [esp + 0x48], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x464249
push edi
push edi
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x54]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push ecx
mov dword [esp + 0x74], edi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x44], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp eax, edi
je 0x464345
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
mov byte [esp + 0x58], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x464262
mov ecx, dword [esp + 0x6c]
push ecx
push str._n__s__n
push ebp
call fcn.0055f202
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
add dword [esp + 0x20], esi
add eax, esi
push eax
mov dword [0x5ef450], edx
mov dword [esp + 0x2c], eax
call fcn.00525c36
mov esi, eax
mov eax, dword [esp + 0x24]
push eax
call fcn.00525c36
add esp, 0x14
mov ebx, eax
call fcn.005322b0
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x46439e
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x38], edi
mov byte [esp + 0x58], 2
call fcn.005322b0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4643cd
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x20], ebp
mov ecx, dword [esp + 0x14]
push ecx
push 0
push ebx
mov byte [esp + 0x64], 3
call fcn.00559e10
mov edx, dword [esp + 0x28]
push edx
push 0
push esi
call fcn.00559e10
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
add esp, 0x18
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x1c]
push ebx
mov dword [esp + 0x38], eax
lea eax, [esp + 0x30]
push eax
push 0
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x40]
push ecx
push esi
push 0
push edx
mov dword [esp + 0x48], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x46458b
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x38]
push eax
push ecx
mov ecx, dword [esp + 0x48]
push ebx
push edx
call fcn.00463cf0
call fcn.005322b0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x464394
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0x58], 4
test esi, esi
jne 0x46448c
xor eax, eax
jmp 0x46449a
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x464491
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x34]
call fcn.00403070
mov ecx, dword [esp + 0x2c]
cmp dword [ecx - 0xc], 0
jne 0x4644c3
lea edx, [esp + 0x20]
push 0x590960
push edx
call fcn.00407040
add esp, 8
jmp 0x4644d6
push esi
lea eax, [esp + 0x24]
push str.__s__
push eax
call fcn.00407040
add esp, 0xc
mov edi, dword [esp + 0x38]
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [esp + 0x28]
call fcn.00403470
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x48]
push ebp
push 0x58c830
push ecx
call fcn.0055f202
mov eax, dword [esp + 0x38]
inc dword [esp + 0x40]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x58], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x464528
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
push 0
push ebx
call fcn.00559e10
mov edx, dword [esp + 0x28]
push edx
push 0
push esi
call fcn.00559e10
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
add esp, 0x18
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x38]
push ebx
mov dword [esp + 0x38], eax
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x24]
push 0
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x40]
push ecx
push esi
push edx
push eax
mov dword [esp + 0x48], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x464442
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.00525c2b
push ebx
call fcn.00525c2b
add ebp, 0xfffffff0
add esp, 8
mov byte [esp + 0x58], 2
lea edx, [ebp + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4645c7
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
add edi, 0xfffffff0
mov byte [esp + 0x58], 1
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x464249
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
jmp 0x464249