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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10022578
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 + 0x1002a4b0]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x3c], dl
jns 0x100172d4
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xd
jl 0x100172b7
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 0x10017309
xor eax, eax
jmp 0x1001752d
push 0x40
push ebx
push 0x1015fba0
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 0x1015fba0
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 0x10017302
mov edi, 0x1010c4fd
lea esi, [ebp - 0x8c]
call fcn.1001d250
push 0x1015f22c
push 0xf003f
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, 1
mov eax, 0x1002a500
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.10003350
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x100173b4
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10017ec0
push 1
mov eax, 0x1002a504
lea ecx, [ebp - 0x2c]
call fcn.10017ec0
call fcn.10003350
mov ecx, eax
lea esi, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x100173e0
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10017ec0
push 1
mov eax, 0x1002a504
lea ecx, [ebp - 0x2c]
call fcn.10017ec0
call fcn.10003350
mov ecx, eax
lea esi, [ecx + 1]
jmp 0x10017410
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x10017410
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10017ec0
push 1
mov eax, 0x1002a504
lea ecx, [ebp - 0x2c]
call fcn.10017ec0
call fcn.10003350
mov ecx, eax
lea esi, [ecx + 1]
jmp 0x10017440
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x10017440
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10017ec0
push 1
mov eax, 0x1002a504
lea ecx, [ebp - 0x2c]
call fcn.10017ec0
call fcn.10003350
mov ecx, eax
lea esi, [ecx + 1]
jmp 0x10017470
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x10017470
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10017ec0
push 1
mov eax, 0x1002a508
lea ecx, [ebp - 0x2c]
call fcn.10017ec0
mov edi, 0x1010c549
lea esi, [ebp - 0x3c]
call fcn.1001d290
cmp dword [ebp - 0x18], 0x10
mov ecx, dword [ebp - 0x2c]
jae 0x100174aa
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, 0x1024c437
lea esi, [ebp - 0x4c]
call fcn.1001d310
mov ebx, eax
mov edi, 0x1024c447
lea esi, [ebp - 0x3c]
call fcn.1001d2d0
push 0x100170d0
push ebx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.1001e760
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.1001f6a0
mov edi, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0x10016cf0
mov esi, 7
mov dword [0x1015fa08], eax
call fcn.10002e00
add esp, 4
cmp dword [ebp - 0x18], 0x10
mov dword [0x101603bc], eax
jb 0x1001752d
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.1001eb32
mov esp, ebp
pop ebp
ret