Function at 0x41a570
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b495b
mov eax, dword fs:[0]
push eax
sub esp, 0x814
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x820], eax
mov dword [ebp - 0x81c], edi
mov dword [ebp - 0x818], edi
mov dword [ebp - 0x814], edi
mov ecx, dword [str.CLSID00024512_0000_0000_C000_000000000046InprocServer32]
push 2
push ecx
push edi
mov dword [ebp - 4], edi
call fcn.0043b220
add esp, 4
push eax
lea ecx, [ebp - 0x81c]
call fcn.00412570
test eax, eax
jne 0x41a654
mov ebx, dword [ebp - 0x81c]
cmp esi, edi
je 0x41a60d
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push esi
push 1
push edi
push 0x4c79ac
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, edi
je 0x41a622
cmp ebx, edi
je 0x41a618
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80004005
jmp 0x41a80b
mov eax, dword [ebp - 0x820]
push eax
push str.InprocServer32
lea ecx, [ebp - 0x81c]
call fcn.004176f0
test eax, eax
jne 0x41a60d
cmp ebx, edi
je 0x41a64e
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x81c], edi
mov dword [ebp - 0x818], edi
mov ecx, dword [str.CLSID00024512_0000_0000_C000_000000000046ToolboxBitmap32]
push 2
push ecx
push edi
call fcn.0043b220
add esp, 4
push eax
lea ecx, [ebp - 0x81c]
call fcn.00412570
test eax, eax
jne 0x41a721
lea edx, [ebp - 0x810]
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, di
jne 0x41a684
lea eax, [ebp - 0x810]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, di
jne 0x41a6a0
mov edx, dword [0x4cb970]
mov cx, word [0x4cb974]
mov dword [eax], edx
lea edx, [ebp - 0x810]
push edx
mov word [eax + 4], cx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [ebp - 0x81c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x810]
push ecx
push 1
push edi
push 0x4c79ac
push esi
call ebx
cmp eax, edi
je 0x41a708
cmp esi, edi
je 0x41a6fe
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80004005
jmp 0x41a80b
cmp esi, edi
je 0x41a719
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x81c], edi
mov dword [ebp - 0x818], edi
jmp 0x41a727
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [str.CLSID00024512_0000_0000_C000_000000000046TypeLib]
push 2
push edx
push edi
call fcn.0043b220
add esp, 4
push eax
lea ecx, [ebp - 0x81c]
call fcn.00412570
test eax, eax
jne 0x41a78a
push str.00024517_0000_0000_C000_000000000046
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [ebp - 0x81c]
lea eax, [eax + eax + 2]
push eax
push str.00024517_0000_0000_C000_000000000046
push 1
push edi
push 0x4c79ac
push esi
call ebx
cmp eax, edi
jne 0x41a6f3
cmp esi, edi
je 0x41a784
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x81c], edi
mov dword [ebp - 0x818], edi
mov ecx, dword [str.CLSID00024512_0000_0000_C000_000000000046MiscStatus]
push 2
push ecx
push edi
call fcn.0043b220
add esp, 4
push eax
lea ecx, [ebp - 0x81c]
call fcn.00412570
test eax, eax
jne 0x41a7f8
push str.131201
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [ebp - 0x81c]
lea edx, [eax + eax + 2]
push edx
push str.131201
push 1
push edi
push 0x4c79ac
push esi
call ebx
cmp eax, edi
jne 0x41a6f3
push str.CLSID00024512_0000_0000_C000_000000000046MiscStatus1
push edi
call fcn.0043b220
add esp, 4
push eax
call fcn.00435510
add esp, 8
cmp esi, edi
je 0x41a809
push esi
jmp 0x41a803
mov eax, dword [ebp - 0x81c]
cmp eax, edi
je 0x41a809
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret