Function at 0x4040a0
Capabilities:
Create process on windows
Delete registry value
Get proxy
Manipulate safe mode programs
Query environment variable
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x442292
mov eax, dword fs:[0]
push eax
sub esp, 0x6d0
mov eax, dword [0x4504f4]
xor eax, esp
mov dword [esp + 0x6c8], eax
push ebx
push esi
push edi
mov eax, dword [0x4504f4]
xor eax, esp
push eax
lea eax, [esp + 0x6e0]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0xa4]
push 0x1f
mov eax, str.Checking_internet_connection...
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], esi
call fcn.00402430
xor ebx, ebx
cmp dword [edi + 0x110], ebx
je 0x404205
mov dword [esp + 0x14], ebx
push ebx
lea eax, [esp + 0x18]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SYSTEMCurrentControlSetControlSafeBootMinimalMSIServer
push reloc.WS2_32.dll_bind
mov dword [esp + 0x70c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40417f
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x40], esp
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 7
mov eax, str.Service
mov word [esi + 4], cx
call fcn.00402430
xor edi, edi
lea ecx, [esp + 0x30]
call fcn.00405a60
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x404177
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x14], ebx
push ebx
lea edx, [esp + 0x18]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SYSTEMCurrentControlSetControlSafeBootNetworkMSIServer
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4041eb
sub esp, 0x1c
mov esi, esp
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
mov dword [esp + 0x40], esp
mov word [esi + 4], ax
push 7
mov eax, str.Service
call fcn.00402430
xor edi, edi
lea ecx, [esp + 0x30]
call fcn.00405a60
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4041df
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x14], eax
jmp 0x4041ef
mov eax, dword [esp + 0x14]
mov dword [esp + 0x6e8], 0xffffffff
cmp eax, ebx
je 0x404205
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00404c60
test al, al
jne 0x4042c1
xor ecx, ecx
push 0xc8
mov eax, str.SpyHunter_was_unable_to_launch_Windows_Installer._There_may_be_an_issue_with_your_system_configuration._We_suggest_that_you_follow_these_instructions_from_Microsoft_to_reinstall_the_Windows_Installer:
lea esi, [esp + 0x88]
mov dword [edi + 0x108], ebx
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], cx
call fcn.00402430
push 0x2a
mov eax, str._n_nhttp:__support.microsoft.com_kb_315346_n_n
mov ecx, esi
mov dword [esp + 0x6ec], 1
call fcn.004022f0
push 0x53
mov eax, str.After_Windows_Installer_has_been_reinstalled__please_try_to_launch_SpyHunter_again.
mov ecx, esi
call fcn.004022f0
mov eax, dword [esp + 0x88]
mov esi, 8
cmp dword [esp + 0x9c], esi
jae 0x40428d
lea eax, [esp + 0x88]
mov edx, dword [edi + 4]
push 0x30
push str.Warning
push eax
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [esp + 0x9c], esi
jb 0x404711
mov eax, dword [esp + 0x88]
push eax
call fcn.00427d72
add esp, 4
jmp 0x404711
call fcn.004037c0
test al, al
jne 0x4044ea
mov ecx, dword [edi + 4]
push 0x34
push str.Warning
push str.SpyHunter_has_detected_possible_issues_with_your_Internet_connection_proxy_settings._These_issues_may_have_been_caused_by_malware_installed_on_your_system._n_nDo_you_want_SpyHunter_to_repair_your_Internet_connection_by_disabling_proxy_settings_
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x4044ea
mov dword [esp + 0x14], ebx
lea edx, [esp + 0x14]
push edx
push 0x2001f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push closesocket
mov dword [esp + 0x6fc], 2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4044d0
mov ecx, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [esp + 0x24]
push eax
push 4
push ebx
push str.ProxyEnable
push ecx
mov dword [esp + 0x38], ebx
call edi
mov eax, dword [esp + 0x14]
push 4
lea edx, [esp + 0x24]
push edx
push 4
push ebx
push str.MigrateProxy
push eax
mov dword [esp + 0x38], 1
call edi
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str.ProxyOverride
push ecx
call esi
mov edx, dword [esp + 0x14]
push str.ProxyServer
push edx
call esi
mov eax, dword [esp + 0x14]
push 0x4465f8
push eax
call esi
mov ecx, dword [esp + 0x14]
push str.AutoConfigURL
push ecx
call esi
mov dword [esp + 0x18], ebx
lea edx, [esp + 0x18]
push edx
push 0x2001f
push ebx
mov byte [esp + 0x6f4], 3
mov eax, dword [esp + 0x20]
push str.Connections
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x404481
lea ecx, [esp + 0x84]
push ecx
call fcn.00405b40
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x88]
mov byte [esp + 0x6ec], 4
call fcn.004059a0
test eax, eax
jne 0x404448
mov eax, dword [esp + 0x94]
sub eax, dword [esp + 0x90]
cmp eax, 8
ja 0x404404
call fcn.00428335
mov ecx, dword [esp + 0x90]
mov dword [ecx + 8], 9
mov esi, dword [esp + 0x94]
sub esi, dword [esp + 0x90]
jne 0x404427
call fcn.00428335
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0x18]
push esi
push edx
push 3
push ebx
push str.DefaultConnectionSettings
push eax
call edi
lea esi, [esp + 0x18]
call fcn.00405ac0
mov eax, dword [esp + 0x90]
cmp eax, ebx
je 0x40445c
push eax
call fcn.00427d72
add esp, 4
mov ecx, dword [esp + 0x84]
push ecx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
call fcn.00427d72
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x404490
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push ebx
push ebx
push 0x27
push ebx
mov dword [esp + 0x24], ebx
call esi
push ebx
push ebx
push 0x25
push ebx
call esi
push ebx
push ebx
push 0x1a
lea edx, [esp + 0x30]
push edx
push 0x10
mov dword [esp + 0x38], 8
call dword [sym.imp.USER32.dll_BroadcastSystemMessageW]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4044d0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x6e8], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4044ea
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x28]
push 0x21
mov eax, str.Downloading_SpyHunter_installer..
call fcn.00402430
push 0x206
lea ecx, [esp + 0xc2]
xor eax, eax
push ebx
push ecx
mov word [esp + 0xc8], ax
call fcn.00429240
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
add esp, 0xc
push 0x104
lea edx, [esp + 0xc0]
push edx
push str._TEMP_SHSetup.exe
call edi
push 0x206
lea ecx, [esp + 0x2ca]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x2d0], ax
call fcn.00429240
add esp, 0xc
push 0x104
lea edx, [esp + 0x2c8]
push edx
push str._windir_System32_vbscript.dll
call edi
xor eax, eax
mov word [esp + 0x30], ax
push 3
mov eax, 0x44671c
lea esi, [esp + 0x30]
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebx
call fcn.00402430
mov ecx, esi
push ecx
lea ebx, [esp + 0x2c8]
lea esi, [esp + 0xa4]
mov dword [esp + 0x6ec], 5
call fcn.004076b0
mov ebx, 8
add esp, 4
mov dword [esp + 0x6e8], 0xffffffff
cmp dword [esp + 0x44], ebx
jb 0x4045d2
mov edx, dword [esp + 0x30]
push edx
call fcn.00427d72
add esp, 4
xor esi, esi
push 0x206
lea edx, [esp + 0x4d2]
xor eax, eax
xor ecx, ecx
push esi
push edx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], esi
mov word [esp + 0x3c], ax
mov word [esp + 0x4d8], cx
call fcn.00429240
add esp, 0xc
push 0x104
lea eax, [esp + 0x4d0]
push eax
push str._windir_System32_regsvr32.exe
call edi
lea ecx, [esp + 0x4cc]
mov dword [esp + 0x48], 0x3c
mov dword [esp + 0x4c], 0x400
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], str.open
mov dword [esp + 0x58], ecx
cmp dword [esp + 0xb8], ebx
jb 0x404658
mov edx, dword [esp + 0xa4]
mov dword [esp + 0x5c], edx
jmp 0x404663
lea eax, [esp + 0xa4]
mov dword [esp + 0x5c], eax
lea ecx, [esp + 0x48]
push ecx
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], 1
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp dword [esp + 0xb8], ebx
jb 0x4046b5
mov edx, dword [esp + 0xa4]
push edx
call fcn.00427d72
add esp, 4
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0xbc]
push ecx
xor eax, eax
push edi
mov dword [esp + 0xc0], 7
mov dword [esp + 0xbc], esi
mov word [esp + 0xac], ax
call fcn.004039b0
mov dword [edi + 0x108], eax
cmp eax, esi
je 0x404711
cmp dword [edi + 0x154], esi
jne 0x404711
mov esi, dword [esp + 0x28]
push 0x1f
mov eax, str.Launching_SpyHunter_installer..
call fcn.00402430
lea ecx, [esp + 0xbc]
call fcn.00403210
mov ecx, dword [esp + 0x6e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x6c8]
xor ecx, esp
call fcn.00427d7d
mov esp, ebp
pop ebp
ret