Function at 0x41ae50
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x63949c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44c
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x18], bx
mov ebp, dword [esp + 0x46c]
mov dword [esp + 0x464], ebx
cmp ebp, ebx
mov edi, str.IDMMsgHost.json
jne 0x41ae9e
mov edi, str.IDMMsgHostMoz.json
mov esi, dword [0x6fca20]
cmp esi, ebx
jne 0x41aead
mov esi, 0x6fca24
mov eax, 0x6c900c
test eax, eax
je 0x41afe0
cmp esi, ebx
je 0x41afe0
cmp edi, ebx
je 0x41afe0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov word [esp + 0x28], bx
push ebx
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x46c], 1
call fcn.004027e0
push esi
lea ecx, [esp + 0x44]
call fcn.00401ee0
push edi
lea ecx, [esp + 0x38]
mov byte [esp + 0x468], 2
call fcn.00401ee0
lea ecx, [esp + 0x14]
mov byte [esp + 0x464], 3
call fcn.00401070
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x34]
call fcn.00401f10
push eax
call fcn.00609a4e
add esp, 4
lea ecx, [esp + 0x40]
mov edi, eax
call fcn.00401f10
push eax
call fcn.00609a4e
add esi, edi
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.00622acb
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x14], edi
je 0x41afa6
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x34]
call fcn.00401f10
push eax
lea ecx, [esp + 0x44]
call fcn.00401f10
push eax
lea ecx, [esp + 0x2c]
call fcn.00401f10
push eax
mov eax, dword [esp + 0x20]
push esi
push eax
call fcn.006099de
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00609a4e
add esp, 0x18
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x464], 2
call fcn.00401070
lea ecx, [esp + 0x40]
mov byte [esp + 0x464], 1
call fcn.00401070
lea ecx, [esp + 0x24]
mov byte [esp + 0x464], 0
call fcn.00401070
mov ebp, dword [esp + 0x46c]
cmp ebp, ebx
mov eax, str.SOFTWAREGoogleChromeNativeMessagingHostscom.tonec.idm
jne 0x41afee
mov eax, str.SOFTWAREMozillaNativeMessagingHostscom.tonec.idm
mov esi, dword [esp + 0x470]
xor edx, edx
cmp ebp, ebx
lea ecx, [esp + 0x10]
setne dl
add edx, 0x80000001
push ecx
mov ebp, edx
mov edx, esi
neg edx
sbb edx, edx
and edx, 0x100
add edx, 0x20019
push edx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push ebp
call ebx
test eax, eax
jne 0x41b08f
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x4c]
push eax
push ecx
push 0
push 0
push 0x6fc41c
push edx
mov dword [esp + 0x38], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41b078
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x41b061
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.0060c3d3
add esp, 8
mov edi, 1
test eax, eax
je 0x41b07c
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x41b204
mov eax, dword [esp + 0x46c]
test eax, eax
mov eax, str.SOFTWAREGoogleChromeNativeMessagingHosts
jne 0x41b0a4
mov eax, str.SOFTWAREMozillaNativeMessagingHosts
neg esi
sbb esi, esi
lea edx, [esp + 0x10]
and esi, 0x100
push edx
add esi, 0xf003f
push esi
push 0
push eax
push ebp
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x41b193
mov eax, dword [esp + 0x46c]
test eax, eax
jne 0x41b127
lea eax, [esp + 0x10]
push eax
push esi
push 0
push str.SOFTWAREMozilla
push 0x80000001
call ebx
test eax, eax
jne 0x41b204
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call ebx
mov eax, str.SOFTWAREMozillaNativeMessagingHosts
lea ecx, [esp + 0x10]
push 0
push ecx
push 0
push esi
push 0
push 0x6fc418
push 0
push eax
push ebp
call edi
test eax, eax
je 0x41b199
jmp 0x41b204
lea edx, [esp + 0x10]
push 0
push edx
push 0
push esi
push 0
push 0x6fc418
push 0
push str.SoftwareGoogle
push 0x80000002
call edi
test eax, eax
jne 0x41b204
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebx
lea ecx, [esp + 0x10]
push 0
push ecx
push 0
push esi
push 0
push 0x6fc418
push 0
push str.SoftwareGoogleChrome
push 0x80000002
call edi
test eax, eax
jne 0x41b204
mov edx, dword [esp + 0x10]
push edx
call ebx
mov eax, str.SOFTWAREGoogleChromeNativeMessagingHosts
jmp 0x41b107
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push 0
push edx
push 0
push esi
push 0
push 0x6fc418
push 0
push str.com.tonec.idm
push eax
call edi
test eax, eax
je 0x41b1c3
mov ecx, dword [esp + 0x10]
push ecx
jmp 0x41b202
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x41b231
lea eax, [esp + 0x18]
lea esi, [esp + 0x18]
push eax
call fcn.00609a4e
add esp, 4
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x20]
push edx
push esi
push 1
push 0
push 0x6fc41c
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x20]
push ecx
call ebx
mov edx, dword [esp + 0x10]
push edx
call ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x464], 0xffffffff
call fcn.00401070
mov ecx, dword [esp + 0x45c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x458
ret
mov esi, eax
jmp 0x41b1d3