Function at 0x40c860
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41de3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x258
mov eax, dword [0x42529c]
push ebx
mov ebx, ecx
mov dword [esp + 0x258], eax
mov eax, dword [ebx]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x40c89e
mov eax, 0x80010201
jmp 0x40cb50
push ebp
mov ebp, dword [esp + 0x270]
movzx edx, byte [ebp + 0xd]
push esi
push edi
xor eax, eax
mov ecx, 0xc
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
movzx ecx, byte [ebp + 0xe]
stosw word es:[edi], ax
movzx eax, byte [ebp + 0xf]
push eax
movzx eax, byte [ebp + 0xc]
push ecx
movzx ecx, byte [ebp + 0xb]
push edx
movzx edx, byte [ebp + 0xa]
push eax
movzx eax, byte [ebp + 9]
push ecx
movzx ecx, byte [ebp + 8]
push edx
movzx edx, word [ebp + 6]
push eax
movzx eax, word [ebp + 4]
push ecx
mov ecx, dword [ebp]
push edx
push eax
push ecx
push str._08X__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X
lea edx, [esp + 0x54]
push 0x28
push edx
call fcn.0040e825
mov ecx, 8
mov esi, str.SoftwareSymantecIDSFactories
lea edi, [esp + 0x90]
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x90]
add esp, 0x38
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40c920
mov ax, word [0x41e2e0]
mov word [edi], ax
lea eax, [esp + 0x24]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c937
lea edi, [esp + 0x58]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40c945
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebp
mov ecx, ebx
call fcn.0040c760
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x40ca9e
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push edi
lea edx, [esp + 0x64]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
je 0x40c9b2
push eax
lea eax, [esp + 0x28]
push eax
push str.IDSLoader:_Missing_ObjectFactory__s._Error_Code:_0x_x_n
push edi
call fcn.0040cc00
add esp, 0x10
mov eax, 0x8001021e
jmp 0x40cb4d
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x160]
push edx
lea eax, [esp + 0x20]
push eax
push edi
push str.DLLName
push ecx
mov dword [esp + 0x34], 0x104
mov dword [esp + 0x30], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
je 0x40ca12
push eax
lea edx, [esp + 0x28]
push edx
push str.IDSLoader:_Missing_DLL_pathname__s._Error_Code:_0x_x_n
push edi
call fcn.0040cc00
mov eax, dword [esp + 0x24]
add esp, 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x8001021e
jmp 0x40cb4d
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x15c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, edi
jne 0x40ca58
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x160]
push eax
push str.IDSLoader:_Could_not_load__s._Error_Code:_0x_x_n
push edi
call fcn.0040cc00
add esp, 0x10
mov eax, 0x80010213
jmp 0x40cb4d
push 0x14
call fcn.0040da28
add esp, 4
cmp eax, edi
jne 0x40ca77
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0x80010201
jmp 0x40cb4d
mov ecx, ebp
mov ebx, dword [ecx]
mov edx, eax
mov dword [edx], ebx
mov ebx, dword [ecx + 4]
mov dword [edx + 4], ebx
mov ebx, dword [ecx + 8]
mov dword [edx + 8], ebx
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x20]
push eax
mov dword [eax + 0x10], esi
call fcn.0040c7f0
push str.GetFactory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
jne 0x40cacd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IDSLoader:_GetFactory_export_missing._Error_Code:_0x_x_n
push edi
call fcn.0040cc00
add esp, 0xc
mov eax, 0x80010214
jmp 0x40cb4d
mov dword [esp + 0x10], edi
lea edx, [esp + 0x10]
push edx
push ebp
mov dword [esp + 0x278], edi
call eax
mov esi, eax
test esi, esi
jns 0x40cb15
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IDSLoader:_Could_not_get_factory_for_Object._Error_Code:_0x_x_n
push edi
call fcn.0040cc00
mov ecx, dword [esp + 0x1c]
add esp, 0xc
cmp ecx, edi
mov dword [esp + 0x270], 0xffffffff
je 0x40cb4b
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x40cb4b
mov eax, dword [esp + 0x27c]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push eax
push ebp
call dword [edx + 0xc]
mov esi, eax
test esi, esi
jns 0x40cb42
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IDSLoader:_Could_not_get_the_Object._Error_Code:_0x_x_n
push edi
call fcn.0040cc00
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.0040c7a0
mov eax, esi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x258]
pop ebx
call fcn.0040f602
add esp, 0x264
ret 8