Function at 0x100a22b
Capabilities:
Set registry value

Disassembly:
push 0x70
mov eax, 0x101d931
call fcn.0100429e
mov eax, dword [ebp + 8]
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x64], ebx
push ebx
push ebx
push ebx
push ebx
mov byte [ebp - 4], 1
lea esi, [edi + 0x10]
call dword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_CreateEventW]
push eax
mov ecx, esi
call fcn.01007b25
cmp dword [esi], ebx
je 0x100d563
mov eax, dword [edi]
lea ecx, [ebp - 0x64]
push ecx
push 0x1002690
push edi
call dword [eax]
mov esi, eax
cmp esi, ebx
jl 0x100a3d9
lea eax, [ebp - 0x5c]
push eax
xor edi, edi
inc edi
push edi
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov esi, eax
cmp esi, ebx
jl 0x100a3d9
push edi
push ebx
push edi
push dword [ebp - 0x64]
push 0x1002690
push dword [ebp - 0x5c]
call dword [sym.imp.ole32.dll_CoMarshalInterface]
mov esi, eax
cmp esi, ebx
jl 0x100a3d9
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax]
push edi
lea edx, [ebp - 0x58]
push edx
push eax
call dword [ecx + 0x30]
cmp eax, ebx
jl 0x100a3fa
mov dword [ebp - 0x60], ebx
mov eax, dword [ebp - 0x50]
mov byte [ebp - 4], 2
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x4c], ebx
jne 0x100d580
push eax
call fcn.0100154c
pop ecx
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x6c]
mov byte [ebp - 4], 3
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x100a2fd
sub eax, ecx
sar eax, 1
lea esi, [eax + 0x42]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0100154c
mov edi, eax
mov dword [ebp - 0x78], edi
mov dword [esp], 0x100a418
push esi
push edi
mov byte [ebp - 4], 4
call fcn.0100a08f
push 0x1003394
push esi
push edi
call fcn.01008842
push dword [ebp - 0x6c]
push esi
push edi
call fcn.01008842
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax]
push ebx
push ebx
push dword [0x100a404]
push dword [0x100a400]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax]
lea edx, [ebp - 0x7c]
push edx
push dword [ebp - 0x70]
push dword [ebp - 0x68]
push eax
call dword [ecx + 0xc]
mov esi, eax
cmp esi, ebx
jl 0x100a3c1
lea eax, [ebp - 0x60]
push eax
push 2
push ebx
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x100a3b1
push dword [ebp - 0x70]
push dword [ebp - 0x68]
push 3
push ebx
push 0x100a408
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
jg 0x100d592
mov esi, eax
cmp esi, ebx
jl 0x100d5a1
push edi
call fcn.0100151c
push dword [ebp - 0x68]
call fcn.0100151c
pop ecx
pop ecx
lea ecx, [ebp - 0x60]
call fcn.0100a49d
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], bl
call fcn.010015f4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.010015f4
mov eax, esi
call fcn.01009a74
ret 4
mov esi, eax
jmp 0x100a3d9
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
cmp eax, ebx
jle 0x100a3fa
and eax, 0xffff
or eax, 0x80070000
jmp 0x100a3fa
lea ecx, [ebp - 0x60]
call fcn.0100a49d
mov esi, 0x8000ffff
jmp 0x100a3d9
and eax, 0xffff
or eax, 0x80070000
jmp 0x100a3b7
push ebx
push dword [ebp - 0x74]
call dword [sym.imp.ole32.dll_CoDisconnectObject]
jmp 0x100a3c1