Function at 0x1001c8d0
Capabilities:
Delete registry key
Set registry value

Disassembly:
sub esp, 0x110
push ebx
mov ebx, dword [esp + 0x118]
xor eax, eax
lea edx, [esp + 0x10]
mov ecx, dword [ebx + 0x80]
mov ax, word [ebx]
push ecx
push 0x10042b64
push 0x10042b94
push edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esp + 0x12c]
add esp, 0x10
cmp eax, 2
jne 0x1001c967
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push 0x10042b9c
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001c95a
mov ecx, dword [ebx + 0x80]
mov edx, dword [esp + 4]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ebx
add esp, 0x110
ret
lea edx, [esp + 8]
lea eax, [esp + 0x10]
push edx
push 0xf003f
push 0
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1001c9ab
lea ecx, [esp + 8]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0
lea edx, [esp + 0x28]
push 0
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [ebx + 0x88]
push ebp
push esi
push edi
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, dword [ebx + 0x88]
mov edx, dword [esp + 0x18]
add esp, 4
lea eax, [eax + eax + 1]
push eax
push ecx
push 1
push 0
push 0
push edx
call dword [0x1004c1b4]
mov ecx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea eax, [esp + 0x18]
push 4
push eax
push 4
push 0
push 0x10042bcc
push ecx
call ebp
mov edx, dword [ebx + 0x8c]
or esi, eax
mov dword [esp + 0x10], 1
cmp byte [edx], 0
je 0x1001ca3f
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
mov edi, edx
not ecx
dec ecx
lea ecx, [eax + ecx + 1]
xor eax, eax
mov dword [esp + 0x10], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [edx + ecx + 1]
lea edx, [edx + ecx + 1]
test al, al
jne 0x1001ca0f
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 0x8c]
push edx
push eax
mov eax, dword [esp + 0x1c]
push 7
push 0
push 0x10042bd0
push eax
call ebp
mov edx, dword [ebx + 0x94]
or esi, eax
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x18]
push edx
push 1
push eax
push str.Uninstall
push ecx
call ebp
mov edx, dword [ebx + 0x90]
or esi, eax
mov dword [esp + 0x10], 1
cmp byte [edx], 0
je 0x1001cac4
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
mov edi, edx
not ecx
dec ecx
lea ecx, [eax + ecx + 1]
xor eax, eax
mov dword [esp + 0x10], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [edx + ecx + 1]
lea edx, [edx + ecx + 1]
test al, al
jne 0x1001ca94
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 0x90]
push edx
push eax
mov eax, dword [esp + 0x1c]
push 7
push 0
push str.Setup
push eax
call ebp
mov edx, dword [ebx + 0x80]
or esi, eax
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x10], 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [ecx + edx + 1]
lea edx, [ecx + edx + 1]
test al, al
je 0x1001cb38
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
mov edi, edx
not ecx
dec ecx
lea ecx, [eax + ecx + 1]
xor eax, eax
mov dword [esp + 0x10], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [edx + ecx + 1]
lea edx, [edx + ecx + 1]
test al, al
jne 0x1001cb08
mov edx, dword [esp + 0x10]
or ecx, 0xffffffff
push edx
mov edx, dword [ebx + 0x80]
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + edx + 1]
mov ecx, dword [esp + 0x18]
push eax
push 7
push 0
push str.Parents
push ecx
call ebp
lea edx, [ebx + 0x10]
push 4
push edx
or esi, eax
mov eax, dword [esp + 0x1c]
push 4
push 0
push str.SetupType
push eax
call ebp
mov edx, dword [ebx + 0x98]
or esi, eax
mov dword [esp + 0x10], 1
cmp byte [edx], 0
je 0x1001cbc1
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
mov edi, edx
not ecx
dec ecx
lea ecx, [eax + ecx + 1]
xor eax, eax
mov dword [esp + 0x10], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [edx + ecx + 1]
lea edx, [edx + ecx + 1]
test al, al
jne 0x1001cb91
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 0x98]
push edx
push eax
mov eax, dword [esp + 0x1c]
push 7
push 0
push str.RegVersion
push eax
call ebp
mov edx, dword [esp + 0x14]
lea ecx, [ebx + 0x60]
push 8
push ecx
push 3
push 0
push str.LastUpdate
push edx
or esi, eax
call ebp
mov edx, dword [ebx + 0x9c]
or esi, eax
mov dword [esp + 0x10], 1
cmp byte [edx], 0
je 0x1001cc3a
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
mov edi, edx
not ecx
dec ecx
lea ecx, [eax + ecx + 1]
xor eax, eax
mov dword [esp + 0x10], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [edx + ecx + 1]
lea edx, [edx + ecx + 1]
test al, al
jne 0x1001cc0a
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 0x9c]
push edx
push eax
mov eax, dword [esp + 0x1c]
push 7
push 0
push str.DeviceInfo
push eax
call ebp
mov ecx, dword [esp + 0x14]
or esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x1001cc79
mov dword [ebx + 0x1c], 0x80040000
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebp
sete al
pop ebx
add esp, 0x110
ret