Function at 0x1016d7cc
Capabilities:
Delete registry value
Set registry value

Disassembly:
sub esp, 0x338
mov eax, dword [0x1023904c]
xor eax, esp
mov dword [esp + 0x334], eax
or dword [esp], 0xffffffff
or dword [esp + 4], 0xffffffff
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push ebp
mov ebp, dword [esp + 0x344]
push esi
push edi
push dword [ebp + 8]
lea eax, [esp + 0xb0]
push dword [ebp + 4]
push str._s._s
push eax
call ebx
add esp, 0x10
push 0x27
lea ecx, [esp + 0xd8]
lea eax, [ebp + 0x10]
push ecx
push eax
call fcn.1015692e
push 0x27
lea eax, [esp + 0x100]
push eax
lea eax, [ebp + 0x30]
push eax
call fcn.1015692e
movzx eax, word [ebp + 0x5a]
push eax
movzx eax, word [ebp + 0x58]
push eax
lea eax, [esp + 0x12c]
push 0x1014cbc8
push eax
call ebx
lea eax, [esp + 0xe4]
push eax
lea eax, [esp + 0x158]
push 0x1014cbd0
push eax
call ebx
add esp, 0x1c
cmp dword [ebp + 0x48], 0
mov edi, str.InprocServer32
jne 0x1016d87b
mov edi, str.LocalServer32
cmp dword [ebp + 0x50], 0
mov ebx, SysReAllocString
je 0x1016d894
lea eax, [esp + 0x144]
push eax
push ebx
call fcn.10169fc9
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x148]
push eax
push ebx
call fcn.1015692e
mov ebx, eax
test ebx, ebx
je 0x1016d8f8
mov dword [esp + 0x10], esi
cmp dword [esp + 0x10], 0xffffffff
je 0x1016d8c6
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x14], 0xffffffff
je 0x1016d8d7
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.100bb859
mov ecx, dword [esp + 0x344]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10001e57
add esp, 0x338
ret 4
mov esi, dword [ebp + 0xc]
mov al, byte [esi]
mov ecx, esi
test al, al
jne 0x1016d90c
lea ecx, [esp + 0xac]
mov esi, ecx
push ecx
call dword [sym.imp.kernel32.dll_lstrlenA]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push 1
push 0
push dword [esp + 0x20]
call esi
mov ebx, eax
test ebx, ebx
jne 0x1016d8b5
mov eax, 0x1200
test word [ebp + 0x5c], ax
je 0x1016d9a8
cmp dword [ebp + 0x48], ebx
je 0x1016d974
lea eax, [esp + 0xd4]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
inc eax
push eax
lea eax, [esp + 0xd8]
push eax
push 1
push ebx
push 0x1014cbdc
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
test ebx, ebx
jne 0x1016d8b5
mov eax, 0x1200
test word [ebp + 0x5c], ax
je 0x1016d9a8
lea eax, [esp + 0xac]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
push eax
lea eax, [esp + 0xb0]
push eax
push 1
push str.ProgID
push dword [esp + 0x20]
call esi
mov ebx, eax
test ebx, ebx
jne 0x1016d8b5
cmp dword [ebp + 0x44], 0
je 0x1016da5f
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x14]
push eax
push edi
push dword [esp + 0x18]
call fcn.1015692e
mov ebx, eax
test ebx, ebx
je 0x1016d9d4
mov dword [esp + 0x14], esi
jmp 0x1016d8b5
push dword [ebp]
mov edi, dword [sym.imp.kernel32.dll_lstrlenA]
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push eax
push dword [ebp]
push 1
push 0
push dword [esp + 0x24]
call esi
mov ebx, eax
test ebx, ebx
jne 0x1016d8b5
cmp dword [ebp + 0x48], eax
je 0x1016da30
cmp dword [ebp + 0x4c], eax
jne 0x1016da30
mov ebx, str.Apartment
push ebx
call edi
inc eax
push eax
push ebx
push 1
push 0
push str.ThreadingModel
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
test ebx, ebx
je 0x1016da44
jmp 0x1016d8b5
cmp dword [ebp + 0x50], eax
jne 0x1016da44
push 0x1016dd2c
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [esp + 0x14], 0xffffffff
mov ebx, eax
test ebx, ebx
jne 0x1016d8b5
jmp 0x1016da6f
push edi
push dword [esp + 0x14]
call fcn.10169fc9
mov edi, dword [sym.imp.kernel32.dll_lstrlenA]
mov eax, 0x1200
test word [ebp + 0x5c], ax
je 0x1016dace
lea eax, [esp + 0xfc]
push eax
call edi
push eax
lea eax, [esp + 0x100]
push eax
push 1
push str.TypeLib
push dword [esp + 0x20]
call esi
mov ebx, eax
test ebx, ebx
jne 0x1016d8b5
lea eax, [esp + 0x124]
push eax
call edi
push eax
lea eax, [esp + 0x128]
push eax
push 1
push str.VERSION
push dword [esp + 0x20]
call esi
mov ebx, eax
test ebx, ebx
jne 0x1016d8b5
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [esp + 0x10], 0xffffffff
mov ebx, eax
test ebx, ebx
jne 0x1016d8c6
mov esi, 0x1200
test word [ebp + 0x5c], si
je 0x1016dd04
lea eax, [esp + 0xac]
push eax
mov ebx, SysReAllocString
push ebx
call fcn.10169fc9
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0xb0]
push eax
push ebx
call fcn.1015692e
mov ebx, eax
test ebx, ebx
jne 0x1016d8b1
mov esi, dword [ebp + 0xc]
mov al, byte [esi]
mov ecx, esi
test al, al
jne 0x1016db3e
lea ecx, [esp + 0xac]
mov esi, ecx
push ecx
call edi
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push 1
push 0
push dword [esp + 0x20]
call esi
mov ebx, eax
test ebx, ebx
jne 0x1016d8b5
lea eax, [esp + 0xd4]
push eax
call edi
push eax
lea eax, [esp + 0xd8]
push eax
push 1
push str.Clsid
push dword [esp + 0x20]
call esi
mov ebx, eax
test ebx, ebx
jne 0x1016d8b5
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [esp + 0x10], 0xffffffff
mov ebx, eax
test ebx, ebx
jne 0x1016d8c6
mov esi, 0x1200
test word [ebp + 0x5c], si
je 0x1016dd04
cmp dword [ebp + 0x48], eax
je 0x1016dc79
lea eax, [esp + 0xd4]
push eax
lea eax, [esp + 0x248]
push 0x1014cbe4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x244]
push eax
mov ebx, SysReAllocString
push ebx
call fcn.10169fc9
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x248]
push eax
push ebx
call fcn.1015692e
mov ebx, eax
test ebx, ebx
jne 0x1016d8b1
lea eax, [esp + 0xd4]
push eax
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc eax
push eax
lea eax, [esp + 0xd8]
push eax
push 1
push ebx
push 0x1014cbdc
push dword [esp + 0x24]
call esi
mov ebx, eax
test ebx, ebx
jne 0x1016d8b5
push 0x11
push 0x1016dd3c
push 1
push eax
push 0x1016dd50
push dword [esp + 0x24]
call esi
mov ebx, eax
test ebx, ebx
jne 0x1016d8b5
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [esp + 0x10], 0xffffffff
mov ebx, eax
test ebx, ebx
jne 0x1016d8c6
mov esi, 0x1200
test word [ebp + 0x5c], si
je 0x1016dd04
push 0x1016dd58
lea eax, [esp + 0x100]
push eax
push ebp
push dword [ebp + 0x24]
push dword [ebp + 0x20]
call fcn.1016d297
mov ebx, eax
test ebx, ebx
jne 0x1016d8b5
push 0x1016dd80
lea eax, [esp + 0x100]
push eax
push ebp
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
call fcn.1016d297
mov ebx, eax
test ebx, ebx
jne 0x1016d8b5
test word [ebp + 0x5c], si
je 0x1016dd04
mov esi, 0x1016dda8
lea edi, [esp + 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x18]
push eax
push 0x1014e5cc
movsd dword es:[edi], dword [esi]
call fcn.1016a1ca
test eax, eax
js 0x1016dd04
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push 1
lea edx, [ebp + 0x10]
push edx
push eax
call dword [ecx + 0x14]
test ebx, ebx
jne 0x1016d8b5
test byte [ebp + 0x62], 1
je 0x1016d8d7
push 1
lea eax, [esp + 0xb0]
push eax
push ebp
call fcn.1016d551
jmp 0x1016d8dd