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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4481e6
mov eax, dword fs:[0]
push eax
sub esp, 0x860
mov eax, dword [0x45a028]
xor eax, esp
mov dword [esp + 0x858], eax
push ebx
push esi
push edi
mov eax, dword [0x45a028]
xor eax, esp
push eax
lea eax, [esp + 0x870]
mov dword fs:[0], eax
push 0
mov edi, ecx
call dword [sym.imp.MSVCR100.dll__time64]
add esp, 4
mov dword [esp + 0x34], eax
lea eax, [esp + 0x24]
push eax
push SysReAllocString
push 0
push str.SOFTWAREAdTrustMediaPrivDogMimeFilter
push SysReAllocString
mov esi, edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41ca23
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x38]
push eax
push 0
push 0x44fbd0
push ecx
mov dword [esp + 0x40], 0x800
call ebx
test eax, eax
jne 0x41c9ca
cmp dword [esp + 0x30], 1
jne 0x41c9ca
mov edx, dword [esp + 0x28]
shr edx, 1
mov word [esp + edx*2 + 0x64], ax
jmp 0x41c9d1
xor ecx, ecx
mov word [esp + 0x64], cx
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
push ecx
push 0
push str.nextUpdateTime
push edx
mov dword [esp + 0x2c], 0
call ebx
test eax, eax
jne 0x41ca18
mov ecx, dword [esp + 0x14]
mov byte [edi + 0x24e0], al
cmp eax, esi
jl 0x41ca18
jg 0x41caff
cmp ecx, dword [esp + 0x34]
ja 0x41caff
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
push ecx
mov ecx, str.PRIVDOG_VERSION:
call fcn.00408d40
push 0x44fc74
lea edx, [esp + 0x40]
push 0x14
push edx
mov dword [esp + 0x884], 0
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
lea eax, [esp + 0x48]
add esp, 0xc
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41ca60
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x40]
push eax
lea ebx, [esp + 0x28]
call fcn.0041c740
lea ecx, [esp + 0x18]
call dword [0x44a3c8]
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x87c], 1
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Trim]
mov edx, dword [esp + 0x18]
cmp dword [edx - 0xc], 0
je 0x41caca
lea ecx, [esp + 0x18]
call fcn.004010e0
lea ecx, [esp + 0x18]
test al, al
jne 0x41cb06
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov dword [esp + 0x878], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41caff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x41cbe8
push 0x44d37c
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::FindOneOf]
test eax, eax
setg al
mov byte [esp + 0x1c], al
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
test eax, eax
je 0x41cb48
lea esi, [edi + 0x24a0]
mov ecx, esi
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
mov ecx, dword [esp + 0x14]
push ecx
push str._s_r_n
push esi
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::AppendFormat]
add esp, 0xc
test edi, edi
je 0x41cb5e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41cb5e
push edi
push eax
lea ecx, [edi + 4]
call fcn.004016c0
lea edx, [esp + 0x2c]
push edx
push 0x40000000
push 0
push str.SOFTWAREAdTrustMediaPrivDogMimeFilter
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41cbb1
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push 0
push str.nextUpdateTime
add eax, 0x5460
push edx
mov dword [esp + 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov dword [esp + 0x878], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cbe6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x870]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x858]
xor ecx, esp
call fcn.00441db6
mov esp, ebp
pop ebp
ret