Function at 0x102c16a
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 0x102c1ba
mov eax, dword [section..data]
cmp eax, section..data
je 0x102c1b0
test byte [eax + 0x1c], 1
je 0x102c1b0
push 0x1005f1c
push 0x27
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
mov eax, 0x80070057
jmp 0x102c3ab
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 2
push 1
push ebx
push ebx
push 0x10060b8
push 0x80000001
call dword [sym.imp.KERNEL32.dll_RegCreateKeyExW]
test eax, eax
je 0x102c20b
mov eax, dword [section..data]
cmp eax, section..data
je 0x102c201
test byte [eax + 0x1c], 1
je 0x102c201
push 0x1005f1c
push 0x28
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
mov edi, 0x80004005
jmp 0x102c39b
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x102c211
push esi
mov esi, dword [sym.imp.KERNEL32.dll_RegSetValueExW]
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
push 1
push ebx
push 0x1006088
push dword [ebp - 4]
call esi
test eax, eax
je 0x102c25a
mov eax, dword [section..data]
cmp eax, section..data
je 0x102c2a6
test byte [eax + 0x1c], 1
je 0x102c2a6
push 0x1005f1c
push 0x29
jmp 0x102c29b
add edi, 4
mov ecx, edi
call fcn.0101482f
lea eax, [eax + eax + 2]
push eax
mov ecx, edi
call fcn.01015d45
push eax
push 1
push ebx
push 0x10060a8
push dword [ebp - 4]
call esi
test eax, eax
je 0x102c2b0
mov eax, dword [section..data]
cmp eax, section..data
je 0x102c2a6
test byte [eax + 0x1c], 1
je 0x102c2a6
push 0x1005f1c
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
mov edi, 0x80004005
jmp 0x102c39a
mov ecx, dword [ebp - 0x10]
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0102bdcd
mov edi, eax
cmp edi, ebx
jge 0x102c2ed
mov eax, dword [section..data]
cmp eax, section..data
je 0x102c37e
test byte [eax + 0x1c], 1
je 0x102c37e
push 0x1005f1c
push 0x2b
jmp 0x102c36f
mov eax, dword [ebp - 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x102c2f3
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 8]
push 1
push ebx
push 0x1006154
push dword [ebp - 4]
call esi
test eax, eax
je 0x102c345
mov eax, dword [section..data]
cmp eax, section..data
je 0x102c33e
test byte [eax + 0x1c], 1
je 0x102c33e
push 0x1005f1c
push 0x2c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
mov edi, 0x80004005
jmp 0x102c37e
push dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
call fcn.0102b60a
mov edi, eax
cmp edi, ebx
jge 0x102c37c
mov eax, dword [section..data]
cmp eax, section..data
je 0x102c37e
test byte [eax + 0x1c], 1
je 0x102c37e
push 0x1005f1c
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
jmp 0x102c37e
xor edi, edi
cmp dword [ebp - 0xc], ebx
je 0x102c38c
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [ebp - 8], ebx
je 0x102c39a
push dword [ebp - 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop esi
cmp dword [ebp - 4], ebx
je 0x102c3a9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebx
leave
ret 4