Function at 0x41c86e
Capabilities:
Delete registry value
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x4caece
call fcn.004bf1dc
sub esp, 0x2a0
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x24], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x10]
mov edi, 0xf003f
push eax
push edi
push ebx
push str.AppID
push SysReAllocStringLen
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call esi
cmp eax, ebx
mov dword [ebp - 0x20], eax
jne 0x41c8ca
lea ecx, [ebp - 0x24]
call fcn.0041a724
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], eax
je 0x41c955
lea eax, [ebp + 0xb]
lea ecx, [ebp - 0x58]
push eax
call fcn.0041dbef
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
push 0x2166
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.0041a16a
lea eax, [ebp - 0x19]
lea ecx, [ebp - 0x40]
push eax
call fcn.0041dbef
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
push dword [ebp - 0x20]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push 0x2167
push eax
call fcn.0041c3cf
mov ecx, dword [ebp - 0x54]
add esp, 0xc
cmp ecx, ebx
jne 0x41c923
mov ecx, 0x4d68e8
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
jne 0x41c92f
mov eax, 0x4d68e8
push ebx
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00405d6e
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.00405d6e
jmp 0x41cd22
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push ecx
push edi
push ebx
push str.NMSSvc.EXE
push eax
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, ebx
jne 0x41ca84
lea ecx, [ebp - 0x18]
call fcn.0041a724
mov ecx, dword [ebp - 0x10]
cmp eax, ebx
mov dword [ebp - 0x18], ecx
jne 0x41ca84
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x104
push eax
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push str.LogFile
push ecx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp + 8], ebx
je 0x41ca64
cmp eax, ebx
je 0x41ca84
lea eax, [ebp - 0x1a8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x41ca16
lea eax, [ebp - 0x1a8]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x1a8]
push eax
call fcn.004bf9d0
cmp byte [ebp + eax - 0x1a9], 0x5c
pop ecx
je 0x41ca16
lea eax, [ebp - 0x1a8]
push 0x4f0ba8
push eax
call fcn.004c02c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a8]
push str.NMSSvc.log
push eax
call fcn.004c02c0
pop ecx
lea eax, [ebp - 0x1a8]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x1a8]
push eax
push 1
push ebx
push str.LogFile
push dword [ebp - 0x18]
call esi
lea eax, [ebp + 8]
push 4
push eax
push 4
push ebx
push str.Debug_Level
push dword [ebp - 0x18]
mov dword [ebp + 8], ebx
call esi
jmp 0x41ca84
cmp eax, ebx
jne 0x41ca84
push str.LogFile
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.Debug_Level
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [ebp - 0x14], ebx
lea eax, [ebp + 0xb]
lea ecx, [ebp - 0x70]
push eax
mov byte [ebp - 4], 4
call fcn.0041dbef
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
push 0x214b
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 5
call fcn.0041a16a
mov eax, dword [ebp - 0x6c]
cmp eax, ebx
jne 0x41caba
mov eax, 0x4d68e8
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push ecx
push edi
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x41cae9
lea ecx, [ebp - 0x14]
call fcn.0041a724
mov ecx, dword [ebp - 0x10]
cmp eax, ebx
mov dword [ebp - 0x14], ecx
je 0x41cce2
push str.CServiceModule::UpdateRegistryParameters__:_Creating_Entries_with_the_Default_Values.
push 0x503ff0
call fcn.00423100
mov eax, dword [ebp - 0x6c]
pop ecx
cmp eax, ebx
pop ecx
jne 0x41cb06
mov eax, 0x4d68e8
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
push ecx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push edi
push ebx
push ebx
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x41ccdb
lea ecx, [ebp - 0x14]
call fcn.0041a724
mov ecx, dword [ebp - 0x10]
cmp eax, ebx
mov dword [ebp - 0x14], ecx
jne 0x41ccdb
lea eax, [ebp - 0x19]
lea ecx, [ebp - 0x40]
push eax
call fcn.0041dbef
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
push 0x214c
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.0041a16a
mov eax, dword [ebp - 0x3c]
mov edi, 0x4d68e8
cmp eax, ebx
jne 0x41cb71
mov eax, edi
lea ecx, [ebp - 0x10]
push 4
push ecx
push 4
push ebx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
call esi
push 0x214d
lea ecx, [ebp - 0x40]
call fcn.0041a16a
lea eax, [ebp - 0x25]
lea ecx, [ebp - 0x88]
push eax
call fcn.0041dbef
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
push 0x2153
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 7
call fcn.0041a16a
lea eax, [ebp - 0x2ac]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x2ac]
push 0x5c
push eax
call fcn.004c05e1
pop ecx
mov byte [eax + 1], bl
pop ecx
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x58]
call fcn.00405d20
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0045bdc0
add esp, 0xc
push dword [0x4d68ec]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 9
push ebx
push eax
call fcn.0040b3b2
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 8
call fcn.00405d6e
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x10], edi
cmp eax, ebx
je 0x41cc3c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x54], ebx
je 0x41cc44
mov edi, dword [ebp - 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call esi
push 0x214e
lea ecx, [ebp - 0x40]
call fcn.0041a16a
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
jne 0x41cc72
mov eax, 0x4d68e8
push 4
lea ecx, [ebp - 0x10]
pop edi
mov dword [ebp - 0x10], ebx
push edi
push ecx
push edi
push ebx
push eax
push dword [ebp - 0x14]
call esi
push 0x214f
lea ecx, [ebp - 0x40]
call fcn.0041a16a
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
jne 0x41cc9e
mov eax, 0x4d68e8
lea ecx, [ebp - 0x10]
push edi
push ecx
push edi
push ebx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 0xfa00
call esi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 7
call fcn.00405d6e
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 6
call fcn.00405d6e
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.00405d6e
jmp 0x41ccf3
push str.CServiceModule::UpdateRegistryParameters__:_Failed_to_create_the_Diagnostics_Log_Information_related_entries.
jmp 0x41cce7
push str.CServiceModule::UpdateRegistryParameters__:_Diagnostics_Log_Information_related_entries_already_exist.
push 0x503ff0
call fcn.00423100
pop ecx
pop ecx
call fcn.0041cd3b
test eax, eax
je 0x41cd06
mov ecx, 0x503c38
call fcn.0041a3a6
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.00405d6e
lea ecx, [ebp - 0x14]
call fcn.0041a724
lea ecx, [ebp - 0x18]
call fcn.0041a724
lea ecx, [ebp - 0x24]
call fcn.0041a724
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4