Function at 0x401e5c
Capabilities:
Print debug messages
Set registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417e4b
mov eax, dword fs:[0]
push eax
mov eax, 0x3910
call fcn.00410910
mov eax, dword [0x41f070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
push esi
lea ecx, [ebp - 0x378c]
mov dword [ebp - 0x3774], 0xf
call fcn.00405389
push 7
mov dword [ebp - 4], esi
pop ebx
xor eax, eax
mov dword [ebp - 0x37e8], esi
mov dword [ebp - 0x37ac], ebx
mov dword [ebp - 0x37b0], esi
mov word [ebp - 0x37c0], ax
lea eax, [ebp - 0x37c4]
push eax
mov byte [ebp - 4], 1
call fcn.00408276
cmp dword [ebp - 0x37ac], 8
mov eax, dword [ebp - 0x37c0]
pop ecx
jae 0x401eed
lea eax, [ebp - 0x37c0]
push eax
call fcn.00409c88
cmp eax, 8
pop ecx
mov eax, str.http:__websearch.ask.com_redirect_clientietbtboosrckwqquerylocalelocale.underscoreapn_ptnrscbidapn_dtiddtidapn_uidguidapn_sauidsaguid
jg 0x401f03
mov eax, str.http:__websearch.ask.com_redirect_clientietbtboosrccrmqquerylocalelocale.underscoreapn_ptnrscbidapn_dtiddtidapn_uidguidapn_sauidsaguid
push eax
lea edi, [ebp - 0x3754]
call fcn.004036a5
pop ecx
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x378c]
mov byte [ebp - 4], 2
call fcn.00404dbf
push esi
push 1
mov ecx, edi
call fcn.004053a5
xor eax, eax
mov dword [ebp - 0x3790], ebx
mov dword [ebp - 0x3794], esi
mov word [ebp - 0x37a4], ax
push esi
mov edi, str.query
push edi
lea eax, [ebp - 0x378c]
push eax
mov byte [ebp - 4], 3
call fcn.00404a35
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401fae
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x41b00c
mov dword [ebp - 0x37ec], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x37e4], eax
push dword [ebp - 0x37ec]
lea eax, [ebp - 0x378c]
push ebx
push eax
call fcn.004049aa
mov eax, dword [ebp - 0x37e4]
add eax, ebx
push eax
push edi
lea eax, [ebp - 0x378c]
push eax
call fcn.00404a35
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401f7e
cmp dword [ebp - 0x3774], 0x10
mov eax, dword [ebp - 0x3788]
jae 0x401fc3
lea eax, [ebp - 0x3788]
push eax
lea ebx, [ebp - 0x3754]
call fcn.00403806
pop ecx
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x378c]
mov byte [ebp - 4], 4
call fcn.00404dbf
xor ebx, ebx
push esi
inc ebx
push ebx
lea ecx, [ebp - 0x3754]
mov byte [ebp - 4], 3
call fcn.004053a5
cmp dword [ebp - 0x3774], 0x10
mov eax, dword [ebp - 0x3788]
jae 0x40200c
lea eax, [ebp - 0x3788]
push 3
push eax
lea eax, [ebp - 0x3918]
lea ecx, [ebp - 0x3914]
push eax
mov dword [ebp - 0x3918], ecx
call fcn.0040587b
mov byte [ebp - 4], 5
push dword [ebp - 0x3918]
lea esi, [ebp - 0x37e0]
call fcn.00404a6d
lea eax, [ebp - 0x3914]
cmp dword [ebp - 0x3918], eax
je 0x402056
push dword [ebp - 0x3918]
call fcn.0040940d
pop ecx
xor edi, edi
mov dword [ebp - 0x37f0], edi
lea eax, [ebp - 0x37f0]
push eax
push 0x41bc44
push 0x17
push edi
push 0x41b614
mov byte [ebp - 4], 8
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
jl 0x4025bc
mov dword [ebp - 0x37ec], edi
push edi
lea ecx, [ebp - 0x3738]
mov dword [ebp - 0x3720], 0xf
call fcn.00405389
push str.__xml_version_1.0__encoding_utf_8____n_OpenSearchDescription_xmlns_http:__a9.com___spec_opensearch_1.1____n_ShortName_Ask_Search__ShortName__n_Description_Ask_Search__Description__n_Image_height_16__width_16__type_image_icon__
lea ecx, [ebp - 0x3738]
mov byte [ebp - 4], 0xa
call fcn.00404e51
push 0x41b038
lea eax, [ebp - 0x3738]
push eax
call fcn.00404898
push str.__Image__n
lea eax, [ebp - 0x3738]
push eax
call fcn.00404898
xor eax, eax
push 0x1048
mov word [ebp - 0x371c], ax
lea eax, [ebp - 0x371a]
push edi
push eax
call fcn.0040a6a0
add esp, 0xc
push 0x824
lea eax, [ebp - 0x371c]
push eax
push str.SuggestionsURL_JSON
push str.Update
call fcn.004073be
xor eax, eax
add esp, 0x10
cmp ax, word [ebp - 0x371c]
je 0x4021ce
push str._Url_type_application_x_suggestionsjson__template_
lea eax, [ebp - 0x3738]
push eax
call fcn.00404898
lea eax, [ebp - 0x371c]
push eax
lea esi, [ebp - 0x3754]
call fcn.00404a6d
mov ebx, esi
mov byte [ebp - 4], 0xb
call fcn.00401740
cmp dword [ebp - 0x373c], 8
mov eax, dword [ebp - 0x3750]
jae 0x402164
lea eax, [ebp - 0x3750]
push eax
lea edi, [ebp - 0x37f8]
call fcn.004012ae
mov byte [ebp - 4], 0xc
push dword [eax + 4]
lea eax, [ebp - 0x3738]
push eax
call fcn.00404898
mov byte [ebp - 4], 0xb
push dword [ebp - 0x37f8]
call fcn.0040956c
pop ecx
push dword [ebp - 0x37f4]
call fcn.0040956c
lea eax, [ebp - 0x3738]
mov dword [esp], str.____n
push eax
call fcn.00404898
xor eax, eax
inc eax
push 0
push eax
lea esi, [ebp - 0x3754]
mov dword [ebp - 0x37e8], eax
mov byte [ebp - 4], 0xa
call fcn.004056de
xor edi, edi
xor eax, eax
push 0x1048
mov word [ebp - 0x26cc], ax
lea eax, [ebp - 0x26ca]
push edi
push eax
call fcn.0040a6a0
add esp, 0xc
push 0x824
lea eax, [ebp - 0x26cc]
push eax
push str.SuggestionsURL
push str.Update
call fcn.004073be
xor eax, eax
add esp, 0x10
cmp ax, word [ebp - 0x26cc]
je 0x4022c4
push str._Url_type_application_x_suggestionsxml__template_
lea eax, [ebp - 0x3738]
push eax
call fcn.00404898
lea eax, [ebp - 0x26cc]
push eax
lea esi, [ebp - 0x3754]
call fcn.00404a6d
mov ebx, esi
mov byte [ebp - 4], 0xd
call fcn.00401740
cmp dword [ebp - 0x373c], 8
mov eax, dword [ebp - 0x3750]
jae 0x40225c
lea eax, [ebp - 0x3750]
push eax
lea edi, [ebp - 0x37f8]
call fcn.004012ae
mov byte [ebp - 4], 0xe
push dword [eax + 4]
lea eax, [ebp - 0x3738]
push eax
call fcn.00404898
mov byte [ebp - 4], 0xd
push dword [ebp - 0x37f8]
call fcn.0040956c
pop ecx
push dword [ebp - 0x37f4]
call fcn.0040956c
lea eax, [ebp - 0x3738]
mov dword [esp], str.____n
push eax
call fcn.00404898
xor eax, eax
inc eax
push 0
push eax
lea esi, [ebp - 0x3754]
mov dword [ebp - 0x37e8], eax
mov byte [ebp - 4], 0xa
call fcn.004056de
push str._Url_type_text_html__template_
lea eax, [ebp - 0x3738]
push eax
call fcn.00404898
lea ebx, [ebp - 0x37e0]
call fcn.00401740
cmp dword [ebp - 0x37c8], 8
mov eax, dword [ebp - 0x37dc]
jae 0x4022f5
lea eax, [ebp - 0x37dc]
push eax
lea edi, [ebp - 0x37f8]
call fcn.004012ae
mov byte [ebp - 4], 0xf
push dword [eax + 4]
lea eax, [ebp - 0x3738]
push eax
call fcn.00404898
mov byte [ebp - 4], 0xa
push dword [ebp - 0x37f8]
call fcn.0040956c
pop ecx
push dword [ebp - 0x37f4]
call fcn.0040956c
lea eax, [ebp - 0x3738]
mov dword [esp], str.____n__OpenSearchDescription__n
push eax
call fcn.00404898
xor eax, eax
push 0x145e
mov word [ebp - 0x167c], ax
xor edi, edi
lea eax, [ebp - 0x167a]
push edi
push eax
call fcn.0040a6a0
lea eax, [ebp - 0x167c]
add esp, 0xc
push eax
call fcn.004088c4
pop ecx
mov ebx, 0x80
test eax, eax
je 0x402465
push str.osearch.xml
lea eax, [ebp - 0x167c]
push eax
mov ecx, 0xa30
call fcn.0040120b
push edi
push ebx
push 2
push edi
push edi
push 0x40000000
lea eax, [ebp - 0x167c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x402465
cmp dword [ebp - 0x3720], 0x10
mov eax, dword [ebp - 0x3734]
jae 0x4023ca
lea eax, [ebp - 0x3734]
push edi
lea ecx, [ebp - 0x37f4]
push ecx
push dword [ebp - 0x3724]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [ebp - 0x3758], 7
mov dword [ebp - 0x375c], edi
mov word [ebp - 0x376c], ax
push 8
pop eax
mov ecx, str.file:___
lea edx, [ebp - 0x3770]
mov byte [ebp - 4], 0x10
call fcn.00404aba
lea eax, [ebp - 0x167c]
push eax
lea eax, [ebp - 0x3770]
push eax
call fcn.004053f0
cmp dword [ebp - 0x3758], 8
mov ecx, dword [ebp - 0x376c]
jae 0x40243f
lea ecx, [ebp - 0x376c]
mov eax, dword [ebp - 0x37f0]
mov edx, dword [eax]
lea esi, [ebp - 0x37ec]
push esi
push ecx
push eax
call dword [edx + 0xc]
push edi
push 1
lea esi, [ebp - 0x3770]
mov byte [ebp - 4], 0xa
call fcn.004056de
mov eax, dword [ebp - 0x37ec]
cmp eax, edi
je 0x402584
cmp dword [ebp + 8], edi
je 0x402584
lea edx, [ebp - 0x37e4]
push edx
mov dword [ebp - 0x37e4], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
cmp dword [ebp - 0x37e4], edi
je 0x402584
xor eax, eax
push 0xfe
mov word [ebp - 0x114], ax
lea eax, [ebp - 0x112]
push edi
push eax
call fcn.0040a6a0
add esp, 0xc
push 0x7b
push dword [ebp - 0x37e4]
call fcn.00409c93
pop ecx
pop ecx
cmp eax, edi
je 0x4024e0
push SysReAllocString
mov ecx, ebx
lea edx, [ebp - 0x114]
call fcn.0040126f
jmp 0x402541
push 0x41b9b4
push dword [ebp - 0x37e4]
call fcn.004099b8
pop ecx
pop ecx
cmp eax, edi
je 0x402541
add eax, 6
push eax
push 0x7f
pop ecx
lea edx, [ebp - 0x112]
call fcn.004011e3
push 0x7b
pop eax
mov word [ebp - 0x114], ax
lea eax, [ebp - 0x114]
push 0x41b9bc
push eax
call fcn.004099b8
pop ecx
pop ecx
cmp eax, edi
je 0x40252e
xor ecx, ecx
mov word [eax], cx
push 0x41b9c4
lea eax, [ebp - 0x114]
push eax
mov ecx, ebx
call fcn.0040120b
push dword [ebp - 0x37e4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0x114]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x402556
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x114]
lea edx, [ebp - 0x37a8]
call fcn.00404aba
mov eax, dword [ebp - 0x37ec]
mov ecx, dword [eax]
push edi
push 1
push eax
call dword [ecx + 0x10]
cmp dword [ebp - 0x37e8], edi
je 0x402591
call fcn.004018ab
push edi
push 1
lea ecx, [ebp - 0x3738]
call fcn.004053a5
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x37ec]
cmp eax, edi
je 0x402a54
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x402a54
push str.SoftwareMicrosoftInternet_ExplorerSearchScopes
lea esi, [ebp - 0x3738]
call fcn.00404a6d
push 0x41b79c
mov eax, esi
push eax
mov byte [ebp - 4], 0x11
call fcn.004053f0
mov esi, str.171DEBEB_C3D4_40b7_AC73_056A5EBA4A7E
push esi
lea eax, [ebp - 0x3738]
push eax
call fcn.004053f0
push 0x26
pop eax
mov ecx, esi
lea edx, [ebp - 0x37a8]
call fcn.00404aba
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.SetChrome..
mov dword [ebp - 0x37e4], edi
call esi
cmp dword [ebp - 0x3720], 8
mov eax, dword [ebp - 0x3734]
jae 0x402627
lea eax, [ebp - 0x3734]
lea ecx, [ebp - 0x37f4]
push ecx
lea ecx, [ebp - 0x37e4]
push ecx
push edi
push 0x20006
push edi
push edi
push edi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
je 0x402774
push str.defered
call esi
mov esi, 0x41b670
push esi
push str.ResetSAFail
call fcn.0040736c
pop ecx
pop ecx
cmp dword [ebp + 8], edi
jne 0x402675
mov esi, 0x41b674
push esi
push str.SADef
call fcn.0040736c
pop ecx
pop ecx
mov esi, 0x104
push esi
lea eax, [ebp - 0x21c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.004099a1
lea eax, [ebp - 0x21c]
push 0x41b01c
push eax
call fcn.004099b8
add esp, 0x10
test eax, eax
je 0x40274b
call fcn.004014f3
push edi
push ebx
lea esi, [ebp - 0x3738]
mov dword [ebp - 0x37e8], eax
call fcn.004056de
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x37f0]
cmp eax, edi
je 0x4026eb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x37e8]
mov dword [ebp - 0x37e8], eax
push edi
push ebx
lea esi, [ebp - 0x37e0]
call fcn.004056de
push edi
push ebx
lea esi, [ebp - 0x37a8]
call fcn.004056de
push edi
push ebx
lea esi, [ebp - 0x37c4]
call fcn.004056de
push edi
push ebx
lea ecx, [ebp - 0x378c]
call fcn.004053a5
mov eax, dword [ebp - 0x37e8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040914b
leave
ret
push edi
push ebx
lea esi, [ebp - 0x3738]
call fcn.004056de
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x37f0]
cmp eax, edi
je 0x40276c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x37e8], edi
jmp 0x4026f7
push 0x41b674
push str.ResetSAFail
call fcn.0040736c
pop ecx
pop ecx
push str.success_
call esi
mov esi, str.Ask_Search
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push esi
push ebx
push edi
push str.DisplayName
push dword [ebp - 0x37e4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
lea ecx, [ebp - 0x3770]
mov dword [ebp - 0x3758], 0xf
call fcn.00405389
push str.http:__websearch.ask.com_redirect_clientietbtboosrccrmqquerylocalelocale.underscoreapn_ptnrscbidapn_dtiddtidapn_uidguidapn_sauidsaguid
lea edi, [ebp - 0x3814]
mov byte [ebp - 4], 0x12
call fcn.004036a5
pop ecx
push 0xffffffffffffffff
xor edi, edi
push edi
push eax
lea ecx, [ebp - 0x3770]
mov byte [ebp - 4], 0x13
call fcn.00404dbf
push edi
push ebx
lea ecx, [ebp - 0x3814]
mov byte [ebp - 4], 0x12
call fcn.004053a5
push edi
mov esi, str.query
push esi
lea eax, [ebp - 0x3770]
push eax
call fcn.00404a35
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40286a
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x41b00c
mov dword [ebp - 0x37e8], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x37ec], eax
push dword [ebp - 0x37e8]
lea eax, [ebp - 0x3770]
push ebx
push eax
call fcn.004049aa
mov eax, dword [ebp - 0x37ec]
add eax, ebx
push eax
push esi
lea eax, [ebp - 0x3770]
push eax
call fcn.00404a35
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40283a
cmp dword [ebp - 0x3758], 0x10
mov eax, dword [ebp - 0x376c]
jae 0x40287f
lea eax, [ebp - 0x376c]
push eax
lea ebx, [ebp - 0x3814]
call fcn.00403806
pop ecx
mov byte [ebp - 4], 0x14
cmp dword [eax + 0x18], 0x10
jb 0x40289b
mov eax, dword [eax + 4]
jmp 0x40289e
add eax, 4
push 3
push eax
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x114]
push eax
mov dword [ebp - 0x118], ecx
call fcn.0040587b
mov byte [ebp - 4], 0x15
push dword [ebp - 0x118]
lea esi, [ebp - 0x3754]
call fcn.00404a6d
lea eax, [ebp - 0x114]
cmp dword [ebp - 0x118], eax
je 0x4028e8
push dword [ebp - 0x118]
call fcn.0040940d
pop ecx
push edi
push 1
lea ecx, [ebp - 0x3814]
mov byte [ebp - 4], 0x18
call fcn.004053a5
cmp dword [ebp - 0x373c], 8
mov eax, dword [ebp - 0x3750]
jae 0x40290f
lea eax, [ebp - 0x3750]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call ebx
cmp dword [ebp - 0x373c], 8
mov ecx, dword [ebp - 0x3750]
lea eax, [eax + eax + 2]
jae 0x402931
lea ecx, [ebp - 0x3750]
push eax
push ecx
push 1
push edi
push 0x41b9ec
push dword [ebp - 0x37e4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, str.http:__www.ask.com_favicon.ico
push esi
call ebx
add eax, eax
push eax
push esi
push 1
push edi
push str.FaviconUrl
push dword [ebp - 0x37e4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x37e4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x37e4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
cmp dword [ebp + 8], edi
je 0x402a1f
lea eax, [ebp - 0x37f4]
push eax
lea eax, [ebp - 0x37e4]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push str.SoftwareMicrosoftInternet_ExplorerSearchScopes
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push 0x26
pop eax
mov ecx, str.171DEBEB_C3D4_40b7_AC73_056A5EBA4A7E
lea edx, [ebp - 0x3738]
call fcn.00404aba
cmp dword [ebp - 0x3720], 8
mov eax, dword [ebp - 0x3734]
jae 0x4029d9
lea eax, [ebp - 0x3734]
push eax
call ebx
cmp dword [ebp - 0x3720], 8
mov ecx, dword [ebp - 0x3734]
lea eax, [eax + eax + 2]
jae 0x4029f5
lea ecx, [ebp - 0x3734]
push eax
push ecx
push 1
push edi
push str.DefaultScope
push dword [ebp - 0x37e4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x37e4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x37e4]
call esi
call fcn.00401877
push edi
push 1
lea esi, [ebp - 0x3754]
call fcn.004056de
push edi
push 1
lea ecx, [ebp - 0x3770]
call fcn.004053a5
push edi
push 1
lea esi, [ebp - 0x3738]
mov byte [ebp - 4], 8
call fcn.004056de
xor edi, edi
push str.Update
call fcn.004087c9
mov esi, eax
pop ecx
cmp esi, edi
je 0x402abe
cmp dword [ebp - 0x3790], 8
mov eax, dword [ebp - 0x3794]
mov ecx, dword [ebp - 0x37a4]
lea eax, [eax + eax + 2]
jae 0x402a84
lea ecx, [ebp - 0x37a4]
push eax
push ecx
push 1
push edi
push str.SSGuid
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push esi
call fcn.004088b2
pop ecx
call fcn.00401ab2
test eax, eax
je 0x402ab3
push str._nSetChrome_update_SearchSuggestion_succeeded
jmp 0x402ab8
push str._nSetChrome_update_SearchSuggestion_failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x37f0]
cmp eax, edi
je 0x402ad2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x37e8], 1
inc ebx
jmp 0x4026f7