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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0xa4], edi
call fcn.0043cc70
push 0x7e
xor ebx, ebx
mov dword [ebp - 0xa0], eax
lea ecx, [ebp - 0x82]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x84], ax
call sub.MSVCR100.dll_memset
push edi
lea edx, [ebp - 0x84]
push str.SoftwareKingsoftOffice_sAddinsBL
push edx
call dword [sym.imp.MSVCR100.dll__swprintf]
add esp, 0x18
push 2
lea eax, [ebp - 0x84]
push eax
push esi
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
call fcn.00412570
test eax, eax
je 0x41b6ae
mov edi, dword [ebp - 0x90]
mov dword [ebp - 0x88], ebx
cmp edi, ebx
je 0x41b63a
cmp dword [edi], ebx
je 0x41b62e
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
jne 0x41b5fa
lea eax, [ebx + 1]
jmp 0x41b65c
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x41b633
mov ecx, dword [edi]
push ebx
push ecx
lea edx, [ebp - 0x9c]
push edx
lea ecx, [ebp - 0x88]
push ecx
push ebx
push 2
push ebx
push ebx
push ebx
lea edx, [ebp - 0x84]
push edx
push esi
call eax
jmp 0x41b65c
cmp dword [edi + 4], ebx
jne 0x41b63a
mov eax, 1
jmp 0x41b65c
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x88]
push ecx
push ebx
push 2
push ebx
push ebx
push ebx
lea edx, [ebp - 0x84]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x41b683
mov ecx, dword [ebp - 0x98]
xor eax, eax
cmp ecx, ebx
je 0x41b673
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x98], ecx
cmp eax, ebx
je 0x41b6ae
mov eax, dword [ebp - 0x98]
mov esi, 0x80004005
cmp eax, ebx
je 0x41b699
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp - 0x8c]
mov ebx, dword [edx]
mov eax, edx
cmp dword [eax + 4], ebx
je 0x41b762
mov eax, dword [ebx]
test eax, eax
je 0x41b6d3
cmp eax, dword [ebp - 0xa0]
jne 0x41b750
mov ecx, dword [ebp - 0xa4]
mov eax, dword [ebx + 4]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41b706
test dx, dx
je 0x41b702
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41b706
add eax, 4
add ecx, 4
test dx, dx
jne 0x41b6e0
xor eax, eax
jmp 0x41b70b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41b750
cmp dword [ebp + 0x10], eax
je 0x41b73f
mov esi, dword [ebx + 0xc]
mov edi, dword [ebx + 8]
test esi, esi
je 0x41b750
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp - 0x98]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x41b750
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0x98]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [ebp - 0x8c]
add ebx, 0x10
cmp dword [edx + 4], ebx
jne 0x41b6c1
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x41b773
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004b12f6
mov esp, ebp
pop ebp
ret 0xc