Function at 0x463c70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495f20
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x4c0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], edx
mov esi, ecx
call fcn.00403f70
mov ecx, eax
test ecx, ecx
je 0x464078
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 1
call fcn.00403f70
mov ecx, eax
test ecx, ecx
je 0x464082
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.00464090
mov esi, dword [ebp - 0x28]
add esp, 0xc
mov edi, dword [ebp - 0x24]
test al, al
je 0x464027
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 0x464027
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.0046ce3d
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 0x463db0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x463e66
mov byte [ebp - 4], 8
push ebx
call fcn.0046ce46
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], 0
call fcn.0046ce3d
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 0x463d61
mov eax, dword [ebp - 0x2c]
cmp eax, 1
je 0x463f44
cmp eax, 2
je 0x463f44
cmp eax, 7
jne 0x463e9b
mov edx, dword [ebp - 0x14]
xor ecx, ecx
lea eax, [edx - 1]
test eax, eax
je 0x463df5
nop word [eax + eax]
cmp byte [ecx + ebx], 0
jne 0x463ded
mov byte [ecx + ebx], 0xa
mov edx, dword [ebp - 0x14]
inc ecx
lea eax, [edx - 1]
cmp ecx, eax
jb 0x463de0
lea ebx, [edx - 1]
call fcn.00403f70
push eax
push ebx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x30]
call fcn.00403460
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 0x463e96
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
mov dword [ebp - 0x34], ecx
jl 0x463e8a
mov ecx, dword [ebx]
cmp ecx, dword [edx]
jne 0x463e8a
mov ecx, ebx
call fcn.00402480
mov edx, dword [ebp - 0x34]
or ecx, 0xffffffff
mov dword [ebp - 0x3c], eax
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x463e5c
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 0x463e96
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 8
push ebx
call fcn.0046ce46
add esp, 4
mov dword [ebp - 0x1c], 0
xor bl, bl
jmp 0x463ffc
push dword [eax - 0xc]
mov ecx, dword [ebp - 0x18]
push eax
call fcn.00403ae0
jmp 0x463fc2
xor ebx, ebx
cmp dword [ebp - 0x14], ebx
jbe 0x463eba
mov edi, dword [ebp - 0x1c]
lea eax, [ebx + edi]
push eax
lea ecx, [ebp - 0x48]
call fcn.004080c0
inc ebx
cmp ebx, dword [ebp - 0x14]
jb 0x463ea5
mov edi, dword [ebp - 0x24]
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x38]
call fcn.00408c10
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 0x463f21
cmp dword [ebx + 0xc], 0
jl 0x463f18
mov eax, dword [eax]
cmp eax, dword [ebx]
jne 0x463f18
mov ecx, dword [ebp - 0x3c]
call fcn.00402480
mov dword [ebp - 0x3c], eax
or ecx, 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x463f0b
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 0x463f21
push dword [edx - 0xc]
push edx
call fcn.00403ae0
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 0x463fdb
mov ecx, dword [edx]
push edx
jmp 0x463fd6
mov ebx, dword [ebp - 0x14]
dec ebx
call fcn.00403f70
push eax
push ebx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x3c]
call fcn.00403460
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 0x463fc2
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
mov dword [ebp - 0x38], ecx
jl 0x463fb6
mov ecx, dword [ebx]
cmp ecx, dword [edx]
jne 0x463fb6
mov ecx, ebx
call fcn.00402480
mov edx, dword [ebp - 0x38]
or ecx, 0xffffffff
mov dword [ebp - 0x30], eax
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x463fac
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 0x463fc2
push dword [eax - 0xc]
mov ecx, dword [ebp - 0x18]
push eax
call fcn.00403ae0
mov byte [ebp - 4], 9
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x463fdb
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.0046ce46
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 0x464017
push eax
call fcn.00472077
add esp, 4
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
jmp 0x464029
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 0x464045
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 0x464064
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.004023a0
push 0x80004005
call fcn.004023a0
int3