Function at 0x10084650
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10146d73
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x100
mov eax, dword [0x1019a128]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x18], edi
xor eax, eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 7
mov word [ebp - 0x54], ax
mov dword [ebp - 4], eax
call fcn.100deed0
mov dword [ebp - 0x5c], 6
lea esi, [eax + 0x60]
lea eax, [ebp - 0x5c]
mov ecx, esi
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.100e1770
mov edx, dword [ebp - 0x60]
cmp byte [edx + 0xd], 0
jne 0x100846e4
cmp dword [edx + 0x10], 6
jle 0x100846e6
mov edx, dword [esi]
cmp edx, dword [esi]
je 0x100846f7
add edx, 0x14
cmp dword [edx + 0x14], 8
jb 0x100846fc
mov edx, dword [edx]
jmp 0x100846fc
mov edx, 0x10168c44
mov ecx, edx
mov dword [ebp - 0x3c], 0
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10084720
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x3c]
call fcn.10002060
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
cmp dword [ebp - 0x28], 8
mov eax, dword [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x3c]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x10084762
push 1
push 0x1016ae40
lea ecx, [ebp - 0x3c]
call fcn.100021c0
push 7
push 0x10165788
lea ecx, [ebp - 0x3c]
call fcn.100021c0
cmp dword [ebp - 0x28], 8
lea ecx, [ebp - 0x58]
push ecx
push 1
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x58], 0
cmovae eax, dword [ebp - 0x3c]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x1008485e
push str.GetAgentVersion
mov edx, 4
lea ecx, [ebp - 0x110]
call fcn.1000aed0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 2
mov al, byte [esi + 0x48]
test al, al
je 0x10084815
mov edx, str.RegOpenKeyEx
mov ecx, esi
call fcn.10020800
mov al, byte [esi + 0x48]
test al, al
je 0x10084815
cmp dword [ebp - 0x28], 8
lea edx, [ebp - 0x3c]
push dword [ebp - 0x2c]
cmovae edx, dword [ebp - 0x3c]
mov ecx, esi
call fcn.10021f70
mov al, byte [esi + 0x48]
add esp, 4
test al, al
je 0x10084815
mov edx, 0x1016dc00
mov ecx, esi
call fcn.10020800
cmp byte [esi + 0x48], 0
je 0x10084815
push dword [ebp - 0x5c]
mov ecx, esi
call fcn.100201d0
lea ecx, [ebp - 0x110]
call fcn.1000ad70
movups xmm0, xmmword [ebp - 0x54]
mov dword [edi], 0
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
mov word [ebp - 0x54], ax
movq xmm0, qword [ebp - 0x44]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 7
jmp 0x10084997
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movq qword [ebp - 0x24], xmm0
lea ecx, [ebp - 0x24]
push 0x7fff
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.10002350
push 0xfffe
push 0
push eax
lea esi, [eax + 0xfffe]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], esi
call fcn.10117ff0
add esp, 0xc
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x24]
sub esi, ecx
sar esi, 1
lea eax, [esi + esi]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push ecx
push 0
push 0
push 0x1016a1e4
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x5c], eax
test eax, eax
jne 0x10084900
mov edx, dword [ebp - 0x24]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100848e5
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x54]
call fcn.10002060
jmp 0x1008494d
push str.GetAgentVersion
mov edx, 4
lea ecx, [ebp - 0x110]
call fcn.1000aed0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 4
mov al, byte [esi + 0x48]
test al, al
je 0x10084942
mov edx, str.RegQueryValueEx_ProductVersion_failed
mov ecx, esi
call fcn.10020800
mov al, byte [esi + 0x48]
test al, al
je 0x10084942
push dword [ebp - 0x5c]
mov ecx, esi
call fcn.100201d0
lea ecx, [ebp - 0x110]
call fcn.1000ad70
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movups xmm0, xmmword [ebp - 0x54]
mov dword [edi], 0
lea ecx, [ebp - 0x24]
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
mov word [ebp - 0x54], ax
movq xmm0, qword [ebp - 0x44]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 7
call fcn.100825d0
lea ecx, [ebp - 0x3c]
call fcn.10002400
lea ecx, [ebp - 0x54]
call fcn.10002400
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101157bc
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret