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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10022938
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x1002f018]
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
xor ebx, ebx
mov ecx, 0x4f
xor eax, eax
mov dl, byte [eax + 0x1002a504]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x3c], dl
jns 0x10017554
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xd
jl 0x10017537
lea eax, [ebp - 0x98]
push eax
push 0x20019
push ebx
lea ecx, [ebp - 0x3c]
push ecx
push 0x80000001
mov byte [ebp - 0x2f], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
setne al
cmp al, bl
je 0x10017589
xor eax, eax
jmp 0x100177ad
push 0x40
push ebx
push 0x1015fbc8
mov dword [ebp - 0x94], 0x40
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x94]
push edx
mov edx, dword [ebp - 0x98]
push 0x1015fbc8
lea eax, [ebp - 0x9c]
push eax
push ebx
lea ecx, [ebp - 0x90]
push ecx
push edx
mov dword [ebp - 0x90], 0x43414d
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
setne al
cmp al, bl
jne 0x10017582
mov edi, 0x1010c551
lea esi, [ebp - 0x8c]
call fcn.1001d550
push 0x1015f22c
push 0xf003f
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, 1
mov eax, 0x1002a554
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.10001570
mov dword [ebp - 4], ebx
lea ebx, [esi + 4]
call fcn.10003330
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x10017634
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10018160
push 1
mov eax, 0x1002a558
lea ecx, [ebp - 0x2c]
call fcn.10018160
call fcn.10003330
mov ecx, eax
lea esi, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x10017660
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10018160
push 1
mov eax, 0x1002a558
lea ecx, [ebp - 0x2c]
call fcn.10018160
call fcn.10003330
mov ecx, eax
lea esi, [ecx + 1]
jmp 0x10017690
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x10017690
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10018160
push 1
mov eax, 0x1002a558
lea ecx, [ebp - 0x2c]
call fcn.10018160
call fcn.10003330
mov ecx, eax
lea esi, [ecx + 1]
jmp 0x100176c0
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x100176c0
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10018160
push 1
mov eax, 0x1002a558
lea ecx, [ebp - 0x2c]
call fcn.10018160
call fcn.10003330
mov ecx, eax
lea esi, [ecx + 1]
jmp 0x100176f0
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x100176f0
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10018160
push 1
mov eax, 0x1002a55c
lea ecx, [ebp - 0x2c]
call fcn.10018160
mov edi, 0x1010c59d
lea esi, [ebp - 0x3c]
call fcn.1001d590
cmp dword [ebp - 0x18], 0x10
mov ecx, dword [ebp - 0x2c]
jae 0x1001772a
lea ecx, [ebp - 0x2c]
push 0x1f
push ecx
push 1
push 0
push eax
mov eax, dword [0x1015f22c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, 0x1024c48b
lea esi, [ebp - 0x4c]
call fcn.1001d610
mov ebx, eax
mov edi, 0x1024c49b
lea esi, [ebp - 0x3c]
call fcn.1001d5d0
push 0x10017350
push ebx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.1001ea60
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.1001f9e0
mov edi, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0x10016f70
mov esi, 7
mov dword [0x1015fa08], eax
call fcn.10002de0
add esp, 4
cmp dword [ebp - 0x18], 0x10
mov dword [0x101603e4], eax
jb 0x100177ad
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
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.1001ee72
mov esp, ebp
pop ebp
ret