Function at 0x10084770
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10173f16
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x101d7c7c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24c], ecx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 4], 0
mov ecx, str.ComputerZ_Tray
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100847fc
test dx, dx
je 0x100847f8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100847fc
add eax, 4
add ecx, 4
test dx, dx
jne 0x100847d6
xor eax, eax
jmp 0x10084801
sbb eax, eax
or eax, 1
test eax, eax
lea eax, [ebp - 0x230]
push 0x1c
push eax
jne 0x10084841
call fcn.10038cd0
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x1008481e
mov eax, dword [eax]
push 0x2001f
push eax
push SysReAllocString
lea ecx, [ebp - 0x244]
call fcn.1003ac30
lea ecx, [ebp - 0x230]
call fcn.100109e0
jmp 0x1008487c
call fcn.10038cd0
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x10084851
mov eax, dword [eax]
push 0x2001f
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x244]
call fcn.1003ac30
lea ecx, [ebp - 0x230]
mov esi, eax
call fcn.100109e0
test esi, esi
jne 0x1008499a
call fcn.1000cdc0
mov ecx, eax
test ecx, ecx
je 0x100849cd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x238], eax
push dword [edi + 8]
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 1
push dword [edi]
push str._s__s
push eax
call fcn.1000b130
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10112750
mov edi, dword [ebp - 0x244]
lea eax, [ebp - 0x234]
add esp, 0x1c
mov dword [ebp - 0x234], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x248]
push eax
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1008491e
mov eax, dword [ebp - 0x248]
cmp eax, 1
je 0x1008490c
cmp eax, 2
jne 0x1008491e
cmp dword [ebp - 0x234], 0
jne 0x1008491e
xor eax, eax
mov word [ebp - 0x218], ax
mov esi, dword [ebp - 0x238]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.1013da92
add esp, 8
test eax, eax
je 0x10084965
test esi, esi
je 0x10084965
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10084941
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x24c]
push 0
push str.Computer_Z
call fcn.10085a60
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10084993
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x100849a2
mov edi, dword [ebp - 0x244]
xor esi, esi
test edi, edi
je 0x100849ad
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100acb08
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.1000ae00
int3