Function at 0x100b2ab
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
cmp dword [ebp + 8], ebx
jne 0x100b2fb
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100b2f1
test byte [eax + 0x1c], 1
je 0x100b2f1
push 0x1001fd0
push 0x27
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
mov eax, 0x80070057
jmp 0x100b4ec
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 2
push 1
push ebx
push ebx
push 0x1002168
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x100b34c
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100b342
test byte [eax + 0x1c], 1
je 0x100b342
push 0x1001fd0
push 0x28
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
mov edi, 0x80004005
jmp 0x100b4dc
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x100b352
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
push 1
push ebx
push 0x1002138
push dword [ebp - 4]
call esi
test eax, eax
je 0x100b39b
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100b3e7
test byte [eax + 0x1c], 1
je 0x100b3e7
push 0x1001fd0
push 0x29
jmp 0x100b3dc
add edi, 4
mov ecx, edi
call fcn.01012951
lea eax, [eax + eax + 2]
push eax
mov ecx, edi
call fcn.01012949
push eax
push 1
push ebx
push 0x1002158
push dword [ebp - 4]
call esi
test eax, eax
je 0x100b3f1
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100b3e7
test byte [eax + 0x1c], 1
je 0x100b3e7
push 0x1001fd0
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
mov edi, 0x80004005
jmp 0x100b4db
mov ecx, dword [ebp - 0x10]
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0100af0e
mov edi, eax
cmp edi, ebx
jge 0x100b42e
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100b4bf
test byte [eax + 0x1c], 1
je 0x100b4bf
push 0x1001fd0
push 0x2b
jmp 0x100b4b0
mov eax, dword [ebp - 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x100b434
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 8]
push 1
push ebx
push 0x1002204
push dword [ebp - 4]
call esi
test eax, eax
je 0x100b486
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100b47f
test byte [eax + 0x1c], 1
je 0x100b47f
push 0x1001fd0
push 0x2c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
mov edi, 0x80004005
jmp 0x100b4bf
push dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
call fcn.0100a74b
mov edi, eax
cmp edi, ebx
jge 0x100b4bd
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100b4bf
test byte [eax + 0x1c], 1
je 0x100b4bf
push 0x1001fd0
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
jmp 0x100b4bf
xor edi, edi
cmp dword [ebp - 0xc], ebx
je 0x100b4cd
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [ebp - 8], ebx
je 0x100b4db
push dword [ebp - 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop esi
cmp dword [ebp - 4], ebx
je 0x100b4ea
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebx
leave
ret 4