Function at 0x4649c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf70d
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x509074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x5c], edi
call fcn.004043d0
mov ecx, eax
test ecx, ecx
je 0x464f65
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 1
call fcn.004043d0
mov ecx, eax
test ecx, ecx
je 0x464f65
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x25]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [edi + 0xf4]
lea edx, [ebp - 0x2c]
call fcn.00479860
add esp, 0xc
or esi, 0xffffffff
test al, al
jne 0x464a5e
mov byte [ebp - 0x25], al
jmp 0x464f0a
mov al, byte [edi + 0xf0]
and al, 1
mov byte [ebp - 0x31], al
mov eax, dword [edi + 0x94]
shr eax, 3
cmp byte [ebp - 0x25], 0
je 0x464e36
and eax, 0xffffff01
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], eax
call fcn.004043d0
mov ecx, eax
test ecx, ecx
je 0x464f65
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x44], SysStringLen
call fcn.00409440
mov ecx, dword [ebp - 0x2c]
movzx eax, cl
lea ecx, [ebp - 0x40]
push ecx
shl eax, 8
or eax, 0x20019
push eax
push 0
push dword [ebp - 0x3c]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov byte [ebp - 4], 6
mov eax, dword [edi + 0x94]
shr eax, 3
and eax, 0xffffff01
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x30], eax
call fcn.004043d0
mov ecx, eax
test ecx, ecx
je 0x464f65
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 8
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x58], reloc.OLEAUT32.dll_SysReAllocString
call fcn.00409440
mov ecx, dword [ebp - 0x2c]
movzx eax, cl
lea ecx, [ebp - 0x54]
push ecx
shl eax, 8
or eax, 0x20019
push eax
push 0
push dword [ebp - 0x50]
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov byte [ebp - 4], 9
cmp dword [ebp - 0x40], 0
jne 0x464b82
cmp dword [ebp - 0x54], 0
jne 0x464b82
mov byte [ebp - 0x25], 0
jmp 0x464d62
cmp byte [ebp - 0x31], 0
je 0x464dbb
call fcn.004043d0
mov ecx, eax
test ecx, ecx
je 0x464f65
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x464c50
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push ecx
push 0
push 0
push 0
push dword [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x464c50
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x464c50
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00496f43
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x30]
push eax
push edi
push 0
push 0
push dword [ebp - 0x38]
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x464c39
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x464c20
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x48]
call fcn.004035e0
mov byte [ebp - 4], 0xf
push edi
call fcn.00496f3e
mov edi, dword [ebp - 0x5c]
add esp, 4
mov dword [ebp - 0x2c], 0
push ecx
lea eax, [ebp - 0x48]
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x24]
push eax
movups xmmword [ebp - 0x24], xmm0
call fcn.0041e8d0
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.004646c0
test al, al
jne 0x464d40
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x464d20
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push ecx
push 0
push 0
push 0
push dword [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x464d20
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x464d20
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00496f43
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x30]
push eax
push edi
push 0
push 0
push dword [ebp - 0x38]
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x464d09
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x464cf0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x48]
call fcn.004035e0
mov byte [ebp - 4], 0xf
push edi
call fcn.00496f3e
mov edi, dword [ebp - 0x5c]
add esp, 4
mov dword [ebp - 0x2c], 0
push ecx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x24]
call fcn.0041e8d0
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.004646c0
mov byte [ebp - 0x25], 0
test al, al
je 0x464d44
mov byte [ebp - 0x25], 1
mov byte [ebp - 4], 9
mov eax, esi
mov edx, dword [ebp - 0x48]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x464d62
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x1b
mov eax, dword [ebp - 0x54]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x464d76
push eax
call edi
mov byte [ebp - 4], 6
lea eax, [ebp - 0x50]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 6
mov eax, esi
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x464d9e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x1d
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x464dac
push eax
call edi
mov byte [ebp - 4], 3
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x2c], eax
jmp 0x464eec
mov byte [ebp - 4], 0x1f
mov eax, dword [ebp - 0x54]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x464dcf
push eax
call edi
mov byte [ebp - 4], 6
lea eax, [ebp - 0x50]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 6
mov eax, esi
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x464df7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x21
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x464e05
push eax
call edi
mov byte [ebp - 4], 3
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 3
mov eax, esi
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x464e2d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 0x25], 1
jmp 0x464f0a
push ecx
lea ecx, [ebp - 0x4c]
and al, 1
push ecx
push eax
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.004087d0
mov byte [ebp - 4], 0x23
cmp dword [ebp - 0x40], 0
jne 0x464e59
mov byte [ebp - 0x25], 0
jmp 0x464ed0
call fcn.004043d0
mov ecx, eax
test ecx, ecx
je 0x464f6f
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0x27
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x44]
call fcn.00408900
push ecx
lea eax, [ebp - 0x30]
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x24]
push eax
movups xmmword [ebp - 0x24], xmm0
call fcn.0041e8d0
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.004646c0
mov byte [ebp - 0x25], al
mov byte [ebp - 4], 0x23
mov eax, esi
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x464ed0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x29
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x464ee2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 3
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 3
mov eax, esi
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x464f0a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x464f28
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x464f47
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0x25]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00496b9e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402570
push 0x80004005
call fcn.00402570
int3