Function at 0x1006edd5
Capabilities:
Set registry value

Disassembly:
push 0x188
mov eax, 0x101a1384
call fcn.10003f0f
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push 0x10
pop edi
cmp dword [eax + 0x14], edi
jb 0x1006edf4
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.100053e6
push 0x101c0588
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.100053e6
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.1001024d
push 0x101c0584
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 2
push eax
call fcn.1001024d
add esp, 0x18
mov byte [ebp - 4], 3
cmp dword [esi + 0x14], edi
jb 0x1006ee62
mov esi, dword [esi]
push esi
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.1001024d
add esp, 0xc
lea ecx, [ebp - 0x70]
call fcn.10046f85
lea ecx, [ebp - 0x88]
call fcn.10046f85
mov eax, dword [ebp - 0x14]
cmp eax, edi
jb 0x1006eecf
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 0x1006eec6
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x194]
push eax
call fcn.1001024d
mov eax, dword [ebp - 0x190]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x194]
push eax
push ecx
call fcn.1001024d
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 0x1006ef2f
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 0x1006ef22
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x190]
push eax
call fcn.1001024d
mov eax, dword [ebp - 0x194]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x190]
push eax
push ecx
call fcn.1001024d
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.1001024d
test eax, eax
je 0x1006f05e
mov dword [ebp - 0x190], ebx
lea eax, [ebp - 0x190]
mov byte [ebp - 4], 0xb
push eax
push 0x101c03fc
push 4
push ebx
push 0x101c040c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x1006f03e
mov eax, dword [ebp - 0x190]
push ecx
mov ecx, esp
mov dword [ecx], eax
test eax, eax
je 0x1006ef90
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 4]
mov ecx, esi
call dword [0x101b03f8]
call esi
call fcn.100dbec2
mov edi, eax
movzx eax, byte [ebp + 0x10]
mov dword [ebp - 0x194], eax
pop ecx
test edi, edi
je 0x1006f03e
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.1001024d
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 0x1006f000
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 [0x101b03f8]
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 [0x101b03f8]
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 0x1006f098
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x101b03f8]
call esi
jmp 0x1006f098
call fcn.1001024d
movzx ecx, byte [ebp + 0x10]
mov esi, eax
mov dword [ebp - 0x194], ecx
test esi, esi
je 0x1006f098
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.10046f85
call fcn.10004ff0
ret