Function at 0x401740
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48dd7d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa0
mov eax, dword [0x4c143c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xa8], edi
xor eax, eax
mov dword [edi + 0xc], 0
mov byte [ebp - 0x92], 0
mov byte [ebp - 0x91], 0
mov dword [ebp - 0x90], eax
cmp dword [edi], eax
je 0x401fa0
mov eax, dword [edi + 4]
test eax, eax
je 0x401fa0
cmp eax, 0x8000
ja 0x401fa0
inc eax
mov esi, 0x105
cmp eax, esi
mov edx, 2
cmova esi, eax
xor ecx, ecx
mov eax, esi
mov dword [ebp - 0x9c], esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045f1f4
add esp, 4
mov dword [edi + 0xc], eax
test eax, eax
jne 0x401801
mov eax, 0xe
jmp 0x401fa5
push esi
push 0
push eax
call fcn.0045b1d0
add esp, 0xc
cmp dword [edi + 4], 2
jbe 0x401938
mov eax, dword [edi]
mov dword [ebp - 0xac], eax
cmp word [eax], 0x5c
je 0x401938
cmp word [eax + 2], 0x3a
je 0x401938
mov eax, dword [edi + 0xc]
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0x8c]
push eax
push 0x20219
push 0
push str.SoftwareMcAfeeSystemCore
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
test eax, eax
cmove ecx, dword [ebp - 0x8c]
mov dword [ebp - 0xa0], ecx
test ecx, ecx
je 0x401900
lea eax, [esi + esi]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0xa4]
lea eax, [ebp - 0x38]
push eax
push 0
push str.szInstallDir32
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x98], eax
test eax, eax
jne 0x4018eb
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x4018eb
push 0x4b4474
push esi
push eax
call fcn.00401410
test eax, eax
js 0x4018d5
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x4018eb
push eax
push esi
push dword [ebp - 0xa4]
call fcn.00401410
test eax, eax
jns 0x4018eb
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0xa0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401900
push dword [ebp - 0xa0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x98], 0
je 0x40196a
push dword [edi + 0xc]
call fcn.0045f1d9
add esp, 4
mov dword [edi + 0xc], 0
mov dword [ebp - 0x9c], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f
mov dword [ebp - 0x90], 2
setne byte [ebp - 0x91]
jmp 0x40196a
mov eax, dword [edi + 0xc]
test esi, esi
je 0x401963
cmp esi, 0x7fffffff
ja 0x40195a
push 0x7ffffffe
push dword [edi]
mov edx, esi
push ecx
mov ecx, eax
call fcn.00401500
jmp 0x401963
test esi, esi
je 0x401963
xor ecx, ecx
mov word [eax], cx
mov byte [ebp - 0x92], 1
mov eax, dword [edi + 8]
xorps xmm0, xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0xa4], eax
xor esi, esi
mov dword [ebp - 0x30], eax
xor eax, eax
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
mov edx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [ebp - 0x91], al
je 0x4019d2
push str.NCPrivateLoadAndValidateMPTDll:_Looking_in_current_directory_n
call edx
mov ecx, edi
call fcn.004015b0
mov edx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 0x90], eax
jmp 0x401a23
cmp dword [edi + 0xc], 0
je 0x401a1d
push 0x50
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.0045b1d0
add esp, 0xc
lea ecx, [ebp - 0x88]
push dword [edi + 0xc]
call fcn.00403080
push 0
lea ecx, [ebp - 0x88]
call fcn.00402ee0
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x90], eax
call fcn.00403020
mov edx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x90]
cmp eax, 2
je 0x401a33
cmp eax, 0x80092003
jne 0x401c78
cmp byte [ebp - 0x92], 0
jne 0x401c78
push str.NCPrivateLoadAndValidateMPTDll:_Looking_in_EXE_directory_n
call edx
xor eax, eax
mov edi, 0x104
mov dword [ebp - 0x90], eax
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00458edd
add esp, 4
mov esi, eax
mov dword [ebp - 0x2c], esi
push edi
push esi
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x98], eax
cmp edi, eax
jne 0x401ab1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x401aab
push esi
add edi, edi
call fcn.00458ee6
add esp, 4
mov dword [ebp - 0x2c], 0
jmp 0x401a54
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x401ac2
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x28], eax
mov eax, esi
jmp 0x401ade
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [ebp - 0x90], eax
call fcn.00458ee6
xor esi, esi
add esp, 4
mov dword [ebp - 0x2c], esi
xor eax, eax
mov edi, dword [ebp - 0xa8]
test eax, eax
je 0x401b9c
push 0x5c
push esi
call fcn.0045b45b
add esp, 8
test eax, eax
je 0x401b9c
sub eax, esi
xor ecx, ecx
sar eax, 1
mov edx, 2
mov dword [ebp - 0xa0], eax
inc eax
mov dword [ebp - 0x98], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00458edd
mov ecx, dword [ebp - 0x98]
add esp, 4
mov edx, eax
mov dword [ebp - 0x24], edx
test ecx, ecx
je 0x401b81
cmp ecx, 0x7fffffff
ja 0x401b73
mov eax, dword [ebp - 0xa0]
cmp eax, 0x7ffffffe
jbe 0x401b54
xor eax, eax
mov word [edx], ax
jmp 0x401b81
push eax
push esi
push ecx
mov edx, ecx
mov ecx, dword [ebp - 0x24]
call fcn.00401500
test eax, eax
js 0x401b7e
mov ecx, dword [ebp - 0xa0]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], ecx
jmp 0x401ba0
test ecx, ecx
je 0x401b81
xor eax, eax
mov word [edx], ax
jmp 0x401b81
mov edx, dword [ebp - 0x24]
mov eax, 0x54f
push edx
mov dword [ebp - 0x90], eax
call fcn.00458ee6
add esp, 4
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x401b9e
xor eax, eax
xor ecx, ecx
test eax, eax
je 0x401c72
mov edx, dword [edi + 4]
add edx, 2
add edx, ecx
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x98], edx
test ecx, ecx
je 0x401bdd
mov eax, dword [ebp - 0x9c]
cmp eax, edx
jae 0x401c09
push ecx
call fcn.0045f1d9
mov edx, dword [ebp - 0x98]
add esp, 4
mov dword [edi + 0xc], 0
mov dword [ebp - 0x9c], edx
xor ecx, ecx
mov eax, edx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045f1f4
mov dword [edi + 0xc], eax
mov ecx, eax
mov eax, dword [ebp - 0x9c]
add esp, 4
mov dword [ebp - 0x90], 0xe
test ecx, ecx
je 0x401cab
push dword [edi]
push dword [ebp - 0x24]
push str._ls_ls
push eax
push ecx
call fcn.00401480
add esp, 0x14
test eax, eax
js 0x401c97
push 0x50
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.0045b1d0
add esp, 0xc
lea ecx, [ebp - 0x88]
push dword [edi + 0xc]
call fcn.00403080
push 0
lea ecx, [ebp - 0x88]
call fcn.00402ee0
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x90], eax
call fcn.00403020
mov eax, dword [ebp - 0x90]
cmp eax, 0x800b010e
jg 0x401ca3
je 0x401f65
cmp eax, 0x80092026
je 0x401f65
cmp eax, 0x800b0101
jmp 0x401ca5
mov dword [ebp - 0x90], 0x6f
jmp 0x401cab
test eax, eax
je 0x401f65
mov eax, dword [edi + 0xc]
mov dword [ebp - 0xa0], eax
test eax, eax
jne 0x401cc0
mov eax, dword [edi]
mov dword [ebp - 0xa0], eax
test esi, esi
jne 0x401d3a
mov edi, 0x104
nop dword [eax]
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00458edd
add esp, 4
mov esi, eax
mov dword [ebp - 0x2c], esi
push edi
push esi
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x8c], eax
cmp edi, eax
jne 0x401d2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x401d27
push esi
add edi, edi
call fcn.00458ee6
add esp, 4
mov dword [ebp - 0x2c], 0
jmp 0x401cd0
mov eax, dword [ebp - 0x8c]
mov edi, dword [ebp - 0xa8]
test eax, eax
je 0x401d63
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x401f27
mov ecx, 0x8000
nop dword [eax]
cmp word [eax], 0
je 0x401d79
add eax, 2
sub ecx, 1
jne 0x401d50
jmp 0x401f27
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call fcn.00458ee6
add esp, 4
xor esi, esi
jmp 0x401f27
mov edx, 0x8000
sub edx, ecx
mov dword [ebp - 0x9c], edx
test esi, esi
jne 0x401e1f
mov edi, 0x104
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00458edd
add esp, 4
mov esi, eax
mov dword [ebp - 0x2c], esi
push edi
push esi
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x98], eax
cmp edi, eax
jne 0x401df0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x401dea
push esi
add edi, edi
call fcn.00458ee6
add esp, 4
mov dword [ebp - 0x2c], 0
jmp 0x401d93
mov eax, dword [ebp - 0x98]
mov edi, dword [ebp - 0xa8]
test eax, eax
je 0x401e05
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0x28], eax
jmp 0x401e25
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call fcn.00458ee6
mov edx, dword [ebp - 0x9c]
add esp, 4
xor esi, esi
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp - 0x8c]
add eax, 0x200
xor ecx, ecx
add edx, eax
mov dword [ebp - 0x9c], edx
mov eax, edx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045f1f4
add esp, 4
mov dword [ebp - 0x8c], eax
test eax, eax
je 0x401f27
test esi, esi
jne 0x401ee5
mov edi, 0x104
nop dword [eax + eax]
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00458edd
add esp, 4
mov esi, eax
push edi
push esi
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x98], eax
cmp edi, eax
jne 0x401eca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x401ec4
push esi
add edi, edi
call fcn.00458ee6
add esp, 4
mov dword [ebp - 0x2c], 0
jmp 0x401e70
mov eax, dword [ebp - 0x98]
mov edi, dword [ebp - 0xa8]
test eax, eax
jne 0x401ee5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call fcn.00458ee6
add esp, 4
xor esi, esi
mov eax, dword [ebp - 0x90]
push eax
mov eax, dword [ebp - 0xa0]
push eax
push esi
push str.NotComDllGetInterface:__ls_loading__ls__WinVerifyTrust_failed_with__08x_n
push dword [ebp - 0x9c]
push dword [ebp - 0x8c]
call fcn.00401480
add esp, 0x18
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebp - 0x8c]
call fcn.0045f1d9
add esp, 4
mov eax, dword [edi + 0xc]
test eax, eax
je 0x401f3e
push eax
call fcn.0045f1d9
add esp, 4
mov dword [edi + 0xc], 0
mov edi, dword [ebp - 0x90]
test esi, esi
je 0x401f51
push esi
call fcn.00458ee6
add esp, 4
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x401f61
push eax
call fcn.00458ee6
add esp, 4
mov eax, edi
jmp 0x401fa5
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x90], 0
test eax, eax
je 0x401f99
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [edi + 0x10], eax
test eax, eax
jne 0x401f3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [edi + 0xc]
mov dword [ebp - 0x90], eax
jmp 0x401f2f
mov edi, 0x54f
jmp 0x401f44
mov eax, 0x57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00458eeb
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret