Function at 0x1001605e
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push 0xa0
mov eax, 0x10107d0e
call fcn.100c7e75
mov dword [ebp - 0x1c], edx
mov edi, ecx
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x7c], eax
mov esi, eax
mov byte [ebp - 0x74], al
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], al
inc eax
lea ecx, [ebp - 0x68]
mov edx, edi
mov dword [ebp - 4], eax
call fcn.10015f8e
mov byte [ebp - 4], 2
cmp dword [ebp - 0x58], esi
je 0x10016457
lea edx, [ebp - 0x50]
mov ecx, edi
call fcn.10015bb3
mov esi, eax
mov dword [ebp - 0x78], esi
test esi, esi
je 0x10016457
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x94]
call fcn.10018e09
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.1000e6f0
push eax
lea ecx, [ebp - 0x50]
call fcn.1000fedd
lea ecx, [ebp - 0x38]
call fcn.10002013
lea ecx, [ebp - 0x94]
call fcn.10002013
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 4
call fcn.10015da1
mov ecx, 0xf013f
test al, al
push ecx
mov edi, 0xf023f
cmovne edi, ecx
push ecx
lea ecx, [ebp - 0x70]
call fcn.10014342
push ecx
lea edx, [ebp - 0x50]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x94]
call fcn.10016675
pop ecx
cmp dword [eax + 0x14], 8
jb 0x1001614a
mov eax, dword [eax]
push edi
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.10015dda
lea ecx, [ebp - 0x94]
mov esi, eax
call fcn.100145b0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.100143bd
test esi, esi
je 0x100161e4
push ecx
push ecx
lea ecx, [ebp - 0x70]
call fcn.10014342
push ecx
lea edx, [ebp - 0x50]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x94]
call fcn.10016675
pop ecx
cmp dword [eax + 0x14], 8
jb 0x10016198
mov eax, dword [eax]
sub esp, 0x14
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x78]
call fcn.10015eb0
lea ecx, [ebp - 0x94]
mov esi, eax
call fcn.100145b0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.100143bd
test esi, esi
je 0x100161e4
cmp dword [ebp - 0x2c], 0
je 0x100161da
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x2c], eax
jmp 0x100161dc
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x1001644c
push ecx
xor esi, esi
push ecx
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
call fcn.10014342
lea edx, [ebp - 0x50]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xac]
call fcn.10015f8e
push ecx
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x94]
call fcn.10016675
pop ecx
cmp dword [eax + 0x14], 8
jb 0x10016223
mov eax, dword [eax]
mov edi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x18]
push ecx
push esi
lea ecx, [ebp - 0x14]
push ecx
push esi
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x94]
call fcn.100145b0
lea ecx, [ebp - 0xac]
call fcn.10002013
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.100143bd
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi]
cmp eax, dword [ebp - 0x14]
jne 0x1001626a
cmp dword [ebp - 0x18], 0
ja 0x100162af
push ecx
push ecx
lea ecx, [ebp - 0x70]
call fcn.10014342
push ecx
lea edx, [ebp - 0x68]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xac]
call fcn.10016675
pop ecx
cmp dword [eax + 0x14], 8
jb 0x10016290
mov eax, dword [eax]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [ebp - 0xac]
call fcn.100145b0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.100143bd
mov eax, dword [esi]
sub eax, 1
je 0x10016373
dec eax
sub eax, 1
je 0x1001633c
sub eax, 1
jne 0x10016439
cmp dword [ebx + 0x14], 0x10
jb 0x100162d1
mov ebx, dword [ebx]
push ebx
call fcn.100d2f11
push ecx
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.10014342
push ecx
lea edx, [ebp - 0x68]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xac]
call fcn.10016675
pop ecx
cmp dword [eax + 0x14], 8
jb 0x100162fe
mov eax, dword [eax]
push 4
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
push ecx
push 4
xor ebx, ebx
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0xac]
mov esi, eax
call fcn.100145b0
lea ecx, [ebp - 0x70]
call fcn.100143bd
test esi, esi
jne 0x1001643b
xor ecx, ecx
inc ecx
mov byte [ebp - 0x74], cl
jmp 0x1001643b
cmp dword [ebx + 0x14], 0x10
mov esi, dword [ebx + 0x10]
jb 0x10016347
mov ebx, dword [ebx]
push ecx
push ecx
lea ecx, [ebp - 0x70]
call fcn.10014342
push ecx
lea edx, [ebp - 0x68]
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xac]
call fcn.10016675
pop ecx
cmp dword [eax + 0x14], 8
jb 0x1001636d
mov eax, dword [eax]
push esi
push ebx
push 3
jmp 0x10016309
push ecx
push ecx
lea ecx, [ebp - 0x20]
call fcn.10014342
push ecx
mov edx, ebx
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x94]
call fcn.10016675
pop ecx
mov esi, eax
mov byte [ebp - 4], 0xb
cmp dword [esi + 0x14], 8
jb 0x1001639e
mov esi, dword [esi]
push ecx
push ecx
lea ecx, [ebp - 0x70]
call fcn.10014342
push ecx
lea edx, [ebp - 0x68]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xac]
call fcn.10016675
mov edx, eax
pop ecx
cmp dword [edx + 0x14], 8
jb 0x100163c6
mov edx, dword [edx]
test esi, esi
jne 0x100163d1
push 0xd
pop esi
xor ebx, ebx
jmp 0x10016400
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x7c]
jne 0x100163d6
sub ecx, ebx
xor ebx, ebx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
xor eax, eax
inc eax
push eax
push ebx
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea ecx, [ebp - 0xac]
call fcn.100145b0
lea ecx, [ebp - 0x70]
call fcn.100143bd
lea ecx, [ebp - 0x94]
call fcn.100145b0
lea ecx, [ebp - 0x20]
call fcn.100143bd
mov eax, dword [ebp - 0x74]
test esi, esi
push 1
movzx eax, al
pop ecx
cmove eax, ecx
mov dword [ebp - 0x74], eax
jmp 0x1001643b
xor ebx, ebx
test edi, edi
je 0x10016449
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
lea ecx, [ebp - 0x2c]
call fcn.10016044
mov esi, dword [ebp - 0x78]
lea ecx, [ebp - 0x68]
call fcn.10002013
lea ecx, [ebp - 0x50]
call fcn.10002013
test esi, esi
je 0x10016472
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x74]
call fcn.100c7e24
ret