Function at 0x1006ef05
Capabilities:
Set registry value

Disassembly:
push 0x188
mov eax, 0x101a22f4
call fcn.10003f96
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push 0x10
pop edi
cmp dword [eax + 0x14], edi
jb 0x1006ef24
mov eax, dword [eax]
xor ebx, ebx
mov dword [ebp - 0x2c], 0xf
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x40], bl
call fcn.10005476
push 0x101c35c0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.10005476
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.10108fd4
push 0x101c35bc
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 2
push eax
call fcn.10108fd4
add esp, 0x18
mov byte [ebp - 4], 3
cmp dword [esi + 0x14], edi
jb 0x1006ef92
mov esi, dword [esi]
push esi
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.10108fd4
add esp, 0xc
lea ecx, [ebp - 0x70]
call fcn.100482a7
lea ecx, [ebp - 0x88]
call fcn.100482a7
mov eax, dword [ebp - 0x14]
cmp eax, edi
jb 0x1006efff
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x194], ecx
mov byte [ebp - 4], 8
cmp eax, 0x1000
jb 0x1006eff6
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x194]
push eax
call fcn.10108fd4
mov eax, dword [ebp - 0x190]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x194]
push eax
push ecx
call fcn.10108fd4
pop ecx
pop ecx
push 0xf
pop esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x28], bl
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 9
cmp eax, edi
jb 0x1006f05f
mov ecx, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x190], ecx
mov byte [ebp - 4], 0xa
cmp eax, 0x1000
jb 0x1006f052
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x190]
push eax
call fcn.10108fd4
mov eax, dword [ebp - 0x194]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x190]
push eax
push ecx
call fcn.10108fd4
pop ecx
pop ecx
mov byte [ebp - 4], 9
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], esi
mov byte [ebp - 0x40], bl
call fcn.10108fd4
test eax, eax
je 0x1006f18e
mov dword [ebp - 0x190], ebx
lea eax, [ebp - 0x190]
mov byte [ebp - 4], 0xb
push eax
push 0x101c3438
push 4
push ebx
push 0x101c3448
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x1006f16e
mov eax, dword [ebp - 0x190]
push ecx
mov ecx, esp
mov dword [ecx], eax
test eax, eax
je 0x1006f0c0
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 4]
mov ecx, esi
call dword [0x101b33f8]
call esi
call fcn.100dc747
mov edi, eax
movzx eax, byte [ebp + 0x10]
mov dword [ebp - 0x194], eax
pop ecx
test edi, edi
je 0x1006f16e
cmp dword [ebp - 0x44], 0x10
lea ecx, [ebp - 0x58]
push 3
cmovae ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x188]
push ecx
lea ecx, [ebp - 0x18c]
mov dword [ebp - 0x18c], eax
call fcn.10108fd4
push dword [ebp - 0x18c]
mov byte [ebp - 4], 0xc
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ebx, eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x188]
cmp dword [ebp - 0x18c], eax
je 0x1006f130
push dword [ebp - 0x18c]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov eax, dword [ebp - 0x190]
push dword [ebp - 0x194]
push ebx
mov esi, dword [eax]
push edi
push eax
mov ecx, dword [esi + 0x78]
call dword [0x101b33f8]
call dword [esi + 0x78]
mov eax, dword [ebp - 0x190]
push edi
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x8c]
mov ecx, esi
call dword [0x101b33f8]
call esi
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x190]
mov byte [ebp - 4], 9
test eax, eax
je 0x1006f1c8
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x101b33f8]
call esi
jmp 0x1006f1c8
call fcn.10108fd4
movzx ecx, byte [ebp + 0x10]
mov esi, eax
mov dword [ebp - 0x194], ecx
test esi, esi
je 0x1006f1c8
cmp dword [ebp - 0x44], edi
lea eax, [ebp - 0x194]
push 4
push eax
push 4
lea ecx, [ebp - 0x58]
cmovae ecx, dword [ebp - 0x58]
push ebx
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x58]
call fcn.100482a7
call fcn.10005073
ret