Function at 0x465820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498220
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x4c4074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], edx
mov esi, ecx
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x465c28
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 1
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x465c32
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x1c]
call fcn.00465c40
mov esi, dword [ebp - 0x28]
add esp, 0xc
mov edi, dword [ebp - 0x24]
test al, al
je 0x465bd7
lea eax, [ebp - 0x20]
push eax
push 0x20019
push 0
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x465bd7
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x14], 0x104
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 8
push dword [ebp - 0x14]
call fcn.0046e3d0
mov ebx, eax
add esp, 4
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 9
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x2c]
push eax
push 0
push esi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x465960
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x465a16
mov byte [ebp - 4], 8
push ebx
call fcn.0046eb32
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], 0
call fcn.0046e3d0
mov ebx, eax
add esp, 8
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 9
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x2c]
push eax
push 0
push esi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x465911
mov eax, dword [ebp - 0x2c]
cmp eax, 1
je 0x465af4
cmp eax, 2
je 0x465af4
cmp eax, 7
jne 0x465a4b
mov edx, dword [ebp - 0x14]
xor ecx, ecx
lea eax, [edx - 1]
test eax, eax
je 0x4659a5
nop word [eax + eax]
cmp byte [ecx + ebx], 0
jne 0x46599d
mov byte [ecx + ebx], 0xa
mov edx, dword [ebp - 0x14]
inc ecx
lea eax, [edx - 1]
cmp ecx, eax
jb 0x465990
lea ebx, [edx - 1]
call fcn.00403d50
push eax
push ebx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x30]
call fcn.00408450
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x30]
mov edx, dword [edx]
sub edx, 0x10
lea ebx, [eax - 0x10]
mov dword [ebp - 0x38], edx
cmp ebx, edx
je 0x465a46
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
mov dword [ebp - 0x34], ecx
jl 0x465a3a
mov ecx, dword [ebx]
cmp ecx, dword [edx]
jne 0x465a3a
mov ecx, ebx
call fcn.004025a0
mov edx, dword [ebp - 0x34]
or ecx, 0xffffffff
mov dword [ebp - 0x3c], eax
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x465a0c
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x18]
add eax, 0x10
mov dword [ecx], eax
jmp 0x465a46
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 8
push ebx
call fcn.0046eb32
add esp, 4
mov dword [ebp - 0x1c], 0
xor bl, bl
jmp 0x465bac
push dword [eax - 0xc]
mov ecx, dword [ebp - 0x18]
push eax
call fcn.00407350
jmp 0x465b72
xor ebx, ebx
cmp dword [ebp - 0x14], ebx
jbe 0x465a6a
mov edi, dword [ebp - 0x1c]
lea eax, [ebx + edi]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040c320
inc ebx
cmp ebx, dword [ebp - 0x14]
jb 0x465a55
mov edi, dword [ebp - 0x24]
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x38]
call fcn.0040ccb0
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x18]
mov edx, dword [eax]
mov ebx, dword [ecx]
lea eax, [edx - 0x10]
sub ebx, 0x10
mov dword [ebp - 0x3c], eax
cmp eax, ebx
je 0x465ad1
cmp dword [ebx + 0xc], 0
jl 0x465ac8
mov eax, dword [eax]
cmp eax, dword [ebx]
jne 0x465ac8
mov ecx, dword [ebp - 0x3c]
call fcn.004025a0
mov dword [ebp - 0x3c], eax
or ecx, 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x465abb
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x3c]
add eax, 0x10
mov dword [ecx], eax
jmp 0x465ad1
push dword [edx - 0xc]
push edx
call fcn.00407350
mov byte [ebp - 4], 9
or eax, 0xffffffff
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x465b8b
mov ecx, dword [edx]
push edx
jmp 0x465b86
mov ebx, dword [ebp - 0x14]
dec ebx
call fcn.00403d50
push eax
push ebx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x3c]
call fcn.00408450
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x3c]
mov edx, dword [ecx]
sub edx, 0x10
lea ebx, [eax - 0x10]
mov dword [ebp - 0x34], edx
cmp ebx, edx
je 0x465b72
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
mov dword [ebp - 0x38], ecx
jl 0x465b66
mov ecx, dword [ebx]
cmp ecx, dword [edx]
jne 0x465b66
mov ecx, ebx
call fcn.004025a0
mov edx, dword [ebp - 0x38]
or ecx, 0xffffffff
mov dword [ebp - 0x30], eax
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x465b5c
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x18]
add eax, 0x10
mov dword [ecx], eax
jmp 0x465b72
push dword [eax - 0xc]
mov ecx, dword [ebp - 0x18]
push eax
call fcn.00407350
mov byte [ebp - 4], 9
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x465b8b
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
push dword [ebp - 0x1c]
call fcn.0046eb32
add esp, 4
mov dword [ebp - 0x1c], 0
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x465bc7
push eax
call fcn.00473d1a
add esp, 4
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
jmp 0x465bd9
xor bl, bl
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x465bf5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x465c14
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004024c0
push 0x80004005
call fcn.004024c0
int3