Function at 0x402440
Capabilities:
Get common file path
Hide graphical window
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x478
mov eax, dword [0x449450]
xor eax, esp
mov dword [esp + 0x474], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0x68]
push eax
mov dword [esp + 0x1c], edi
mov dword [0x44f120], edi
call dword [sym.imp.ole32.dll_CoCreateGuid]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov edx, dword [esp + 0x14]
cmp word [edx], 0
jne 0x402492
xor ecx, ecx
jmp 0x4024a6
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402497
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, 0x44a684
call fcn.00407cf0
push 0x24
push 1
lea eax, [esp + 0x28]
mov ecx, 0x44a684
push eax
call fcn.004067e0
mov esi, eax
cmp esi, 0x44a684
je 0x40250d
cmp dword [0x44a698], 8
jb 0x4024e6
push dword [0x44a684]
call fcn.0040b375
add esp, 4
xor eax, eax
mov dword [0x44a698], 7
push esi
mov ecx, 0x44a684
mov dword [0x44a694], 0
mov word [0x44a684], ax
call fcn.00407a40
cmp dword [esp + 0x34], 8
jb 0x402520
push dword [esp + 0x20]
call fcn.0040b375
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x402760
push 0
push 0x83
push edi
mov edi, dword [sym.imp.USER32.dll_CreateDialogParamW]
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push eax
mov dword [0x44f124], eax
call esi
push 0
push 0x4040b0
push dword [0x44f124]
push 0x81
push dword [esp + 0x28]
call edi
push 5
push eax
call esi
push 0x208
call fcn.0040a7cc
add esp, 4
mov esi, eax
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [esi], 0
jne 0x40258f
xor ecx, ecx
jmp 0x4025a3
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402594
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, 0x44a66c
call fcn.00407cf0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push str.SOFTWARESecureDownloadSearchAssist
push 0x80000002
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40260f
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x400
push eax
lea eax, [esp + 0x7c]
push eax
push 0
push 0
push str.installed
push dword [esp + 0x24]
call edi
movzx ecx, byte [0x44f11c]
test eax, eax
mov eax, 1
cmove ecx, eax
mov byte [0x44f11c], cl
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push str.SOFTWAREAVSoftwareSafeSearch
push 0x80000002
call esi
test eax, eax
jne 0x402663
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x400
push eax
lea eax, [esp + 0x7c]
push eax
push 0
push 0
push str.installed
push dword [esp + 0x24]
call edi
movzx ecx, byte [0x44f11c]
test eax, eax
mov eax, 1
cmove ecx, eax
mov byte [0x44f11c], cl
xorps xmm0, xmm0
mov dword [esp + 0x38], 0
lea ecx, [esp + 0x20]
movdqa xmmword [esp + 0x20], xmm0
movq qword [esp + 0x30], xmm0
call fcn.0040aa45
lea eax, [esp + 0x18]
mov dword [esp + 0x20], 0x442a90
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x34], 0x405650
mov dword [esp + 0x38], str.Begin
mov dword [esp + 0x3c], str._begin
call fcn.0040ab3d
lea ecx, [esp + 0x20]
call fcn.0040aab6
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4026d0
push 1
call fcn.0040a1ca
mov eax, dword [esp + 0x20]
add esp, 4
push eax
push dword [esp + 0x1c]
call fcn.0040a249
add esp, 8
test eax, eax
je 0x4026ea
push eax
call fcn.0040a19d
add esp, 4
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x4c]
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x402743
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov eax, dword [0x44f124]
test eax, eax
je 0x402720
lea ecx, [esp + 0x4c]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x402732
lea eax, [esp + 0x4c]
push eax
call edi
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x58]
push eax
call esi
test eax, eax
jne 0x402707
mov ecx, dword [esp + 0x47c]
mov eax, dword [esp + 0x54]
pop edi
pop esi
xor ecx, esp
call fcn.0040b366
mov esp, ebp
pop ebp
ret 0x10