Function at 0x405eb0
Capabilities:
Check if file exists
Copy file
Read .ini file
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423653
mov eax, dword fs:[0]
push eax
mov eax, 0x2a88
call fcn.0041bda0
mov eax, dword [0x42b1ec]
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
mov esi, ecx
mov dword [ebp - 0x2a38], esi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebp + 0x1c], edi
jne 0x405f51
cmp dword [ebp + 0x24], edi
je 0x405f37
push str.No_response_fetched_from_server___End_execution
push esi
call fcn.00401b40
cmp dword [esi], edi
je 0x405f37
lea ebx, [esi + 0x1004]
lea esi, [ebx + 4]
call fcn.00403420
test eax, eax
jne 0x405f37
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + ebx + 8]
add ecx, ebx
or eax, 2
cmp dword [ecx + 0x28], edi
jne 0x405f30
or eax, 4
push edi
push eax
call fcn.00401770
cmp dword [ebp + 0x20], 8
jb 0x405f49
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040ce24
add esp, 4
or eax, 0xffffffff
jmp 0x407251
mov ebx, 7
xor edx, edx
mov dword [ebp - 0x2974], ebx
mov dword [ebp - 0x2978], edi
mov word [ebp - 0x2988], dx
lea eax, [ebp - 0x298c]
push eax
mov byte [ebp - 4], 1
call fcn.00405410
add esp, 4
test eax, eax
je 0x4060f4
lea ecx, [ebp - 0x298c]
push ecx
mov ebx, str.partnercobranding.dat
lea esi, [ebp - 0x29c4]
call fcn.00408c10
add esp, 4
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x298c]
mov byte [ebp - 4], 2
call fcn.00407fe0
mov esi, 8
mov byte [ebp - 4], 1
cmp dword [ebp - 0x29ac], esi
jb 0x405fd2
mov edx, dword [ebp - 0x29c0]
push edx
call fcn.0040ce24
add esp, 4
cmp dword [ebp + 0x20], esi
jb 0x405fe4
mov edi, dword [ebp + 0xc]
xor esi, esi
cmp edi, esi
jne 0x405fe9
xor eax, eax
jmp 0x406018
lea edi, [ebp + 0xc]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x405ffc
xor eax, eax
jmp 0x406018
lea ebx, [eax + eax]
mov eax, ebx
call fcn.00416390
mov esi, esp
mov edx, 3
mov ecx, ebx
mov eax, edi
call fcn.00401000
xor esi, esi
cmp dword [ebp - 0x2974], 8
mov edx, dword [ebp - 0x2988]
jae 0x40602d
lea edx, [ebp - 0x2988]
mov ecx, dword [ebp + 0x1c]
push eax
mov eax, edx
call fcn.00404e10
add esp, 4
test eax, eax
je 0x4060da
cmp dword [ebp + 0x24], esi
je 0x406059
mov eax, dword [ebp - 0x2a38]
push str.Writing_partner_cobrand_config_written_to_temp_folder_was_successful
push eax
call fcn.00401b40
mov ebx, 7
cmp dword [ebp - 0x2974], 8
mov eax, dword [ebp - 0x2988]
jae 0x406073
lea eax, [ebp - 0x2988]
push eax
push esi
push 0x426ca4
push str.registry
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
mov dword [ebp - 0x2a70], edi
cmp edi, esi
jne 0x4060fb
cmp dword [ebp + 0x24], esi
je 0x4060a1
mov eax, dword [ebp - 0x2a38]
call fcn.00401b00
mov edi, 8
cmp dword [ebp - 0x2974], edi
jb 0x4060bd
mov edx, dword [ebp - 0x2988]
push edx
call fcn.0040ce24
add esp, 4
xor eax, eax
cmp dword [ebp + 0x20], edi
mov dword [ebp - 0x2974], ebx
mov dword [ebp - 0x2978], esi
mov word [ebp - 0x2988], ax
jmp 0x405f3b
cmp dword [ebp + 0x24], esi
je 0x406059
mov ecx, dword [ebp - 0x2a38]
push str.Writing_partner_cobrand_config_written_to_temp_folder___Failed
push ecx
jmp 0x406054
xor esi, esi
jmp 0x40605e
xor edx, edx
mov dword [ebp - 0x29c8], ebx
mov dword [ebp - 0x29cc], esi
mov word [ebp - 0x29dc], dx
xor eax, eax
mov dword [ebp - 0x2a00], ebx
mov dword [ebp - 0x2a04], esi
mov word [ebp - 0x2a14], ax
xor ecx, ecx
mov dword [ebp - 0x2958], ebx
mov dword [ebp - 0x295c], esi
mov word [ebp - 0x296c], cx
mov dword [ebp - 0x293c], ebx
mov dword [ebp - 0x2940], esi
mov word [ebp - 0x2950], dx
mov dword [ebp - 0x2920], ebx
mov dword [ebp - 0x2924], esi
mov word [ebp - 0x2934], ax
push 0x1450
lea edx, [ebp - 0x291a]
push esi
mov byte [ebp - 4], 7
push edx
mov word [ebp - 0x291c], cx
call fcn.00414c60
add esp, 0xc
push 0x1450
lea ecx, [ebp - 0x14c2]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x14c4], ax
call fcn.00414c60
add esp, 0xc
cmp dword [ebp + 0x24], esi
je 0x4061b4
mov edx, dword [ebp - 0x2a38]
push str.Begin_iterating_through_list_of_cobranding_settings_...
push edx
call fcn.00401b40
cmp edi, esi
mov dword [ebp - 0x2a4c], esi
jle 0x40712a
push 3
mov eax, 0x426cac
lea esi, [ebp - 0x29e0]
mov edi, 8
call fcn.00408660
lea eax, [ebp - 0x2a4c]
push eax
lea ecx, [ebp - 0x29c4]
push ecx
call fcn.00408cd0
add esp, 8
push 0
push eax
or eax, 0xffffffff
mov byte [ebp - 4], 8
call fcn.004085a0
mov byte [ebp - 4], 7
cmp dword [ebp - 0x29ac], edi
jb 0x406219
mov edx, dword [ebp - 0x29c0]
push edx
call fcn.0040ce24
add esp, 4
mov ecx, dword [ebp - 0x2988]
cmp dword [ebp - 0x2974], edi
jae 0x40622d
lea ecx, [ebp - 0x2988]
mov eax, dword [ebp - 0x29dc]
cmp dword [ebp - 0x29c8], edi
jae 0x406241
lea eax, [ebp - 0x29dc]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ecx
push 0xa28
lea ecx, [ebp - 0x291c]
push ecx
push 0x426cbc
push eax
push str.registry
call ebx
lea edi, [ebp - 0x29e0]
call fcn.00407ce0
push 3
mov eax, 0x426cb4
mov esi, edi
call fcn.00408660
lea edx, [ebp - 0x2a4c]
push edx
lea eax, [ebp - 0x29c4]
push eax
call fcn.00408cd0
add esp, 8
push 0
push eax
or eax, 0xffffffff
mov byte [ebp - 4], 9
call fcn.004085a0
mov byte [ebp - 4], 7
cmp dword [ebp - 0x29ac], 8
jb 0x4062bb
mov ecx, dword [ebp - 0x29c0]
push ecx
call fcn.0040ce24
add esp, 4
mov ecx, dword [ebp - 0x2988]
mov eax, 8
cmp dword [ebp - 0x2974], eax
jae 0x4062d4
lea ecx, [ebp - 0x2988]
cmp dword [ebp - 0x29c8], eax
mov eax, dword [ebp - 0x29dc]
jae 0x4062e8
lea eax, [ebp - 0x29dc]
push ecx
push 0xa28
lea edx, [ebp - 0x14c4]
push edx
push 0x426cbc
push eax
push str.registry
call ebx
lea eax, [ebp - 0x14c4]
lea edx, [eax + 2]
jmp 0x406310
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406310
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x14c4]
lea esi, [ebp - 0x2938]
call fcn.00408660
lea edi, [ebp - 0x29e0]
call fcn.00407ce0
cmp dword [ebp + 0x24], 0
mov esi, dword [ebp - 0x2a38]
je 0x40636d
push str.Processing_the_following_key___value_pair
push esi
call fcn.00401b40
lea eax, [ebp - 0x291c]
push eax
push esi
call fcn.00401b40
lea ecx, [ebp - 0x14c4]
push ecx
push esi
call fcn.00401b40
lea edi, [ebp - 0x2a18]
call fcn.00407ce0
lea edi, [ebp - 0x2970]
call fcn.00407ce0
lea edi, [ebp - 0x2954]
call fcn.00407ce0
lea edx, [ebp - 0x2970]
push edx
lea eax, [ebp - 0x2a18]
push eax
mov ebx, edi
lea ecx, [ebp - 0x291c]
call fcn.00405dd0
add esp, 8
cmp dword [ebp + 0x28], 0
je 0x40640f
mov eax, dword [ebp - 0x2950]
mov ebx, 8
cmp dword [ebp - 0x293c], ebx
jae 0x4063cb
lea eax, [ebp - 0x2950]
push 0x426f3c
push eax
call fcn.0040e006
add esp, 8
test eax, eax
je 0x406403
mov eax, dword [ebp - 0x2950]
cmp dword [ebp - 0x293c], ebx
jae 0x4063f1
lea eax, [ebp - 0x2950]
push str.ProductIcon
push eax
call fcn.0040e006
add esp, 8
test eax, eax
jne 0x40640f
mov dword [ebp - 0x2a48], 1
jmp 0x40641e
mov dword [ebp - 0x2a48], 0
mov ebx, 8
mov eax, dword [ebp - 0x2950]
cmp dword [ebp - 0x293c], ebx
jae 0x406432
lea eax, [ebp - 0x2950]
push str.ProductIcon
push eax
call fcn.0040e006
add esp, 8
test eax, eax
jne 0x40662d
mov eax, dword [ebp - 0x2934]
mov ecx, 0x15
mov esi, str.EXPAND:_ProgramFiles__ask.com_favicon.ico
lea edi, [ebp - 0x6c]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x2920], ebx
jae 0x40646b
lea eax, [ebp - 0x2934]
lea ecx, [ebp - 0x6c]
push ecx
push eax
call fcn.0040e006
add esp, 8
test eax, eax
jne 0x406627
mov eax, 7
xor edi, edi
xor edx, edx
mov dword [ebp - 0x29ac], eax
mov dword [ebp - 0x29b0], edi
mov word [ebp - 0x29c0], dx
mov dword [ebp - 0x2990], eax
xor eax, eax
mov dword [ebp - 0x2994], edi
mov word [ebp - 0x29a4], ax
lea ecx, [ebp - 0x29c4]
mov byte [ebp - 4], 0xb
call fcn.004054b0
test eax, eax
je 0x406513
lea ecx, [ebp - 0x29c4]
push ecx
mov ebx, str._favicon.ico
lea esi, [ebp - 0x29fc]
call fcn.00408c10
add esp, 4
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x29a8]
mov byte [ebp - 4], 0xc
call fcn.00407fe0
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x29e4], 8
jb 0x40650c
mov edx, dword [ebp - 0x29f8]
push edx
call fcn.0040ce24
add esp, 4
mov ebx, 8
xor edi, edi
mov eax, dword [ebp - 0x29a4]
cmp dword [ebp - 0x2990], ebx
jae 0x406527
lea eax, [ebp - 0x29a4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4065dc
push 1
push str..ico
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2a44], esp
xor eax, eax
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], edi
push 0xffffffffffffffff
mov word [ecx + 4], ax
push edi
lea eax, [ebp - 0x29c4]
mov esi, 0x426fec
call fcn.00407fe0
lea ecx, [ebp - 0x29fc]
push ecx
mov ecx, esi
call fcn.00405910
add esp, 0x28
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x29f8]
cmp dword [ebp - 0x29e4], ebx
jae 0x406594
lea ecx, [ebp - 0x29f8]
mov eax, dword [ebp - 0x29a4]
cmp dword [ebp - 0x2990], ebx
jae 0x4065a8
lea eax, [ebp - 0x29a4]
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x29fc]
lea ecx, [ebp - 0x2938]
call fcn.00407fe0
cmp dword [ebp - 0x29e4], ebx
jb 0x4065dc
mov edx, dword [ebp - 0x29f8]
push edx
call fcn.0040ce24
add esp, 4
cmp dword [ebp - 0x2990], ebx
jb 0x4065f3
mov eax, dword [ebp - 0x29a4]
push eax
call fcn.0040ce24
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], 7
mov dword [ebp - 0x2990], 7
mov dword [ebp - 0x2994], edi
mov word [ebp - 0x29a4], cx
cmp dword [ebp - 0x29ac], ebx
jb 0x406627
mov edx, dword [ebp - 0x29c0]
push edx
call fcn.0040ce24
add esp, 4
mov esi, dword [ebp - 0x2a38]
mov edi, 6
cmp dword [ebp - 0x2924], edi
jbe 0x4068f4
mov eax, dword [ebp - 0x2934]
cmp dword [ebp - 0x2920], ebx
jae 0x406652
lea eax, [ebp - 0x2934]
push edi
push str.DWORD:
push eax
call fcn.0040e8d4
add esp, 0xc
test eax, eax
jne 0x4068f4
cmp dword [ebp + 0x24], eax
je 0x406679
push str.It_is_a_DWORD_registry_entry
push esi
call fcn.00401b40
mov eax, edi
xor ebx, ebx
lea esi, [ebp - 0x2938]
call fcn.00407c50
mov eax, 8
cmp dword [ebp - 0x2920], eax
jb 0x4066a3
mov ecx, dword [ebp - 0x2934]
mov dword [ebp - 0x2a40], ecx
jmp 0x4066af
lea edx, [ebp - 0x2934]
mov dword [ebp - 0x2a40], edx
cmp dword [ebp - 0x293c], eax
jb 0x4066c5
mov ecx, dword [ebp - 0x2950]
mov dword [ebp - 0x2a3c], ecx
jmp 0x4066d1
lea edx, [ebp - 0x2950]
mov dword [ebp - 0x2a3c], edx
mov ebx, dword [ebp - 0x296c]
cmp dword [ebp - 0x2958], eax
jae 0x4066e5
lea ebx, [ebp - 0x296c]
lea edi, [ebp - 0x2a18]
call fcn.00404ea0
lea ecx, [ebp - 0x2a90]
push ecx
xor esi, esi
lea edx, [ebp - 0x2a50]
push edx
push esi
push 0x2001f
push esi
push esi
push esi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x406796
mov ecx, dword [ebp - 0x2a40]
push 0xa
lea eax, [ebp - 0x2a44]
push eax
push ecx
mov dword [ebp - 0x2a44], esi
call fcn.0040e2b1
mov ecx, dword [ebp - 0x2a50]
add esp, 0xc
push 4
lea edx, [ebp - 0x2a74]
push edx
push 4
mov dword [ebp - 0x2a74], eax
mov eax, dword [ebp - 0x2a3c]
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x406771
mov edx, dword [ebp - 0x2a50]
push edx
lea esi, [eax + 1]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [ebp - 0x2a50]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x406796
cmp dword [ebp + 0x24], 0
je 0x4067ad
mov ecx, dword [ebp - 0x2a38]
push str.DWORD_Registry_writing_was_successful
push ecx
jmp 0x4067a8
cmp dword [ebp + 0x24], 0
je 0x4067ad
mov edx, dword [ebp - 0x2a38]
push str.DWORD_Registry_writing_failed
push edx
call fcn.00401b40
cmp dword [ebp - 0x2a48], 0
je 0x4070ff
mov eax, 8
cmp dword [ebp - 0x2920], eax
jb 0x4067d5
mov ecx, dword [ebp - 0x2934]
mov dword [ebp - 0x2a3c], ecx
jmp 0x4067e1
lea edx, [ebp - 0x2934]
mov dword [ebp - 0x2a3c], edx
cmp dword [ebp - 0x293c], eax
jb 0x4067f7
mov ecx, dword [ebp - 0x2950]
mov dword [ebp - 0x2a40], ecx
jmp 0x406803
lea edx, [ebp - 0x2950]
mov dword [ebp - 0x2a40], edx
mov ebx, dword [ebp - 0x296c]
cmp dword [ebp - 0x2958], eax
jae 0x406817
lea ebx, [ebp - 0x296c]
lea edi, [ebp - 0x2a18]
call fcn.00404ea0
lea ecx, [ebp - 0x2a78]
push ecx
xor esi, esi
lea edx, [ebp - 0x2a54]
push edx
push esi
push 0x2011f
push esi
push esi
push esi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4068d4
mov ecx, dword [ebp - 0x2a3c]
mov dword [ebp - 0x2a44], eax
push 0xa
lea eax, [ebp - 0x2a44]
push eax
push ecx
call fcn.0040e2b1
mov ecx, dword [ebp - 0x2a54]
add esp, 0xc
push 4
lea edx, [ebp - 0x2a6c]
push edx
push 4
mov dword [ebp - 0x2a6c], eax
mov eax, dword [ebp - 0x2a40]
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4068a3
mov edx, dword [ebp - 0x2a54]
push edx
lea esi, [eax + 1]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [ebp - 0x2a54]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4068d4
cmp dword [ebp + 0x24], 0
je 0x4070ff
mov ecx, dword [ebp - 0x2a38]
push str.DWORD_Registry_writing_was_successful
push ecx
call fcn.00401b40
jmp 0x4070ff
cmp dword [ebp + 0x24], 0
je 0x4070ff
mov edx, dword [ebp - 0x2a38]
push str.DWORD_Registry_writing_failed
push edx
call fcn.00401b40
jmp 0x4070ff
cmp dword [ebp - 0x2924], 7
jbe 0x406b7f
mov eax, dword [ebp - 0x2934]
cmp dword [ebp - 0x2920], ebx
jae 0x406915
lea eax, [ebp - 0x2934]
push 7
push str.EXPAND:
push eax
call fcn.0040e8d4
add esp, 0xc
test eax, eax
jne 0x406b7f
cmp dword [ebp + 0x24], eax
je 0x40693d
push str.It_is_a_EXPANDABLE_string_registry_entry
push esi
call fcn.00401b40
mov eax, 7
xor ebx, ebx
lea esi, [ebp - 0x2938]
call fcn.00407c50
mov eax, 8
cmp dword [ebp - 0x2920], eax
jb 0x40696a
mov ecx, dword [ebp - 0x2934]
mov dword [ebp - 0x2a3c], ecx
jmp 0x406976
lea edx, [ebp - 0x2934]
mov dword [ebp - 0x2a3c], edx
cmp dword [ebp - 0x293c], eax
jb 0x40698c
mov ecx, dword [ebp - 0x2950]
mov dword [ebp - 0x2a40], ecx
jmp 0x406998
lea edx, [ebp - 0x2950]
mov dword [ebp - 0x2a40], edx
mov ebx, dword [ebp - 0x296c]
cmp dword [ebp - 0x2958], eax
jae 0x4069ac
lea ebx, [ebp - 0x296c]
lea edi, [ebp - 0x2a18]
call fcn.00404ea0
lea ecx, [ebp - 0x2a8c]
push ecx
xor esi, esi
lea edx, [ebp - 0x2a58]
push edx
push esi
push 0x2001f
push esi
push esi
push esi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x406a3f
mov edi, dword [ebp - 0x2a3c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x2a40]
mov edx, dword [ebp - 0x2a58]
lea eax, [eax + eax + 2]
push eax
push edi
push 2
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x406a1a
lea esi, [eax + 1]
mov eax, dword [ebp - 0x2a58]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [ebp - 0x2a58]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x406a3f
cmp dword [ebp + 0x24], 0
je 0x406a56
mov edx, dword [ebp - 0x2a38]
push str.EXPANDABLE_String_registry_writing_was_successful
push edx
jmp 0x406a51
cmp dword [ebp + 0x24], 0
je 0x406a56
mov eax, dword [ebp - 0x2a38]
push str.EXPANDABLE_String_Registry_writing_failed
push eax
call fcn.00401b40
cmp dword [ebp - 0x2a48], 0
je 0x4070ff
mov eax, 8
cmp dword [ebp - 0x2920], eax
jb 0x406a7e
mov ecx, dword [ebp - 0x2934]
mov dword [ebp - 0x2a3c], ecx
jmp 0x406a8a
lea edx, [ebp - 0x2934]
mov dword [ebp - 0x2a3c], edx
cmp dword [ebp - 0x293c], eax
jb 0x406aa0
mov ecx, dword [ebp - 0x2950]
mov dword [ebp - 0x2a40], ecx
jmp 0x406aac
lea edx, [ebp - 0x2950]
mov dword [ebp - 0x2a40], edx
mov ebx, dword [ebp - 0x296c]
cmp dword [ebp - 0x2958], eax
jae 0x406ac0
lea ebx, [ebp - 0x296c]
lea edi, [ebp - 0x2a18]
call fcn.00404ea0
lea ecx, [ebp - 0x2a84]
push ecx
xor esi, esi
lea edx, [ebp - 0x2a60]
push edx
push esi
push 0x2011f
push esi
push esi
push esi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x406b5f
mov edi, dword [ebp - 0x2a3c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x2a40]
mov edx, dword [ebp - 0x2a60]
lea eax, [eax + eax + 2]
push eax
push edi
push 2
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x406b2e
lea esi, [eax + 1]
mov eax, dword [ebp - 0x2a60]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [ebp - 0x2a60]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x406b5f
cmp dword [ebp + 0x24], 0
je 0x4070ff
mov edx, dword [ebp - 0x2a38]
push str.EXPANDABLE_String_registry_writing_was_successful
push edx
call fcn.00401b40
jmp 0x4070ff
cmp dword [ebp + 0x24], 0
je 0x4070ff
mov eax, dword [ebp - 0x2a38]
push str.EXPANDABLE_String_Registry_writing_failed
push eax
call fcn.00401b40
jmp 0x4070ff
cmp dword [ebp - 0x2924], edi
jbe 0x406f6f
mov eax, dword [ebp - 0x2934]
cmp dword [ebp - 0x2920], ebx
jae 0x406b9f
lea eax, [ebp - 0x2934]
push edi
push str.IMAGE:
push eax
call fcn.0040e8d4
add esp, 0xc
test eax, eax
jne 0x406f6f
cmp dword [ebp + 0x24], eax
je 0x406bc6
push str.It_is_an_image_file_to_be_referred_using_registry
push esi
call fcn.00401b40
mov eax, edi
xor ebx, ebx
lea esi, [ebp - 0x2938]
call fcn.00407c50
mov ebx, 7
xor edi, edi
xor ecx, ecx
mov dword [ebp - 0x29e4], ebx
mov dword [ebp - 0x29e8], edi
mov word [ebp - 0x29f8], cx
lea ecx, [ebp - 0x29fc]
mov byte [ebp - 4], 0xe
call fcn.004054b0
test eax, eax
jne 0x406c28
mov byte [ebp - 4], bl
cmp dword [ebp - 0x29e4], 8
jb 0x407111
mov edx, dword [ebp - 0x29f8]
push edx
call fcn.0040ce24
add esp, 4
jmp 0x407111
lea eax, [ebp - 0x29fc]
push eax
mov ebx, str.cobrand.ico
lea esi, [ebp - 0x29a8]
call fcn.00408c10
add esp, 4
mov ebx, 7
xor ecx, ecx
mov dword [ebp - 0x29ac], ebx
mov dword [ebp - 0x29b0], edi
mov word [ebp - 0x29c0], cx
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x29a4]
mov esi, 8
cmp dword [ebp - 0x2990], esi
jae 0x406c79
lea edx, [ebp - 0x29a4]
mov ecx, dword [ebp - 0x2934]
cmp dword [ebp - 0x2920], esi
jae 0x406c8d
lea ecx, [ebp - 0x2934]
lea eax, [ebp - 0x29c4]
push 1
push eax
call fcn.004050e0
add esp, 8
test eax, eax
je 0x406edd
push 1
push str..ico
sub esp, 0x1c
lea ecx, [ebp - 0x29fc]
mov esi, esp
mov dword [ebp - 0x2a44], esp
push ecx
mov edi, 0x4272ac
call fcn.00407bf0
lea edx, [ebp - 0x2a34]
push edx
mov ecx, edi
call fcn.00405910
add esp, 0x28
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x2a30]
mov esi, 8
cmp dword [ebp - 0x2a1c], esi
jae 0x406cf7
lea ecx, [ebp - 0x2a30]
mov eax, dword [ebp - 0x29a4]
cmp dword [ebp - 0x2990], esi
jae 0x406d0b
lea eax, [ebp - 0x29a4]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [ebp + 0x24], 0
je 0x406d2c
mov eax, dword [ebp - 0x2a38]
push str.Image_file_downloading_was_successful
push eax
call fcn.00401b40
cmp dword [ebp - 0x2a1c], esi
jb 0x406d42
mov ecx, dword [ebp - 0x2a30]
mov dword [ebp - 0x2a3c], ecx
jmp 0x406d4e
lea edx, [ebp - 0x2a30]
mov dword [ebp - 0x2a3c], edx
cmp dword [ebp - 0x293c], esi
jb 0x406d64
mov eax, dword [ebp - 0x2950]
mov dword [ebp - 0x2a40], eax
jmp 0x406d70
lea ecx, [ebp - 0x2950]
mov dword [ebp - 0x2a40], ecx
mov ebx, dword [ebp - 0x296c]
cmp dword [ebp - 0x2958], esi
jae 0x406d84
lea ebx, [ebp - 0x296c]
lea edi, [ebp - 0x2a18]
call fcn.00404ea0
lea edx, [ebp - 0x2a7c]
push edx
xor esi, esi
lea ecx, [ebp - 0x2a68]
push ecx
push esi
push 0x2001f
push esi
push esi
push esi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x406e17
mov edi, dword [ebp - 0x2a3c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x2a68]
lea edx, [eax + eax + 2]
mov eax, dword [ebp - 0x2a40]
push edx
push edi
push 1
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x406df2
mov edx, dword [ebp - 0x2a68]
push edx
lea esi, [eax + 1]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [ebp - 0x2a68]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x406e17
cmp dword [ebp + 0x24], 0
je 0x406e2e
mov ecx, dword [ebp - 0x2a38]
push str.Image_file_linking_with_registry_was_successful
push ecx
jmp 0x406e29
cmp dword [ebp + 0x24], 0
je 0x406e2e
mov edx, dword [ebp - 0x2a38]
push str.EImage_file_linking_with_registry_failed
push edx
call fcn.00401b40
cmp dword [ebp - 0x2a48], 0
je 0x406ec8
mov esi, dword [ebp - 0x2a30]
mov eax, 8
cmp dword [ebp - 0x2a1c], eax
jae 0x406e54
lea esi, [ebp - 0x2a30]
mov ecx, dword [ebp - 0x2950]
cmp dword [ebp - 0x293c], eax
jae 0x406e68
lea ecx, [ebp - 0x2950]
cmp dword [ebp - 0x2958], eax
mov eax, dword [ebp - 0x296c]
jae 0x406e7c
lea eax, [ebp - 0x296c]
push 1
push ecx
push eax
lea edi, [ebp - 0x2a18]
call fcn.00404ea0
push eax
mov edi, 1
call fcn.00404f20
add esp, 0x10
test eax, eax
je 0x406eb1
cmp dword [ebp + 0x24], 0
je 0x406ec8
mov eax, dword [ebp - 0x2a38]
push str.Image_file_linking_with_registry_was_successful
push eax
jmp 0x406ec3
cmp dword [ebp + 0x24], 0
je 0x406ec8
mov ecx, dword [ebp - 0x2a38]
push str.EImage_file_linking_with_registry_failed
push ecx
call fcn.00401b40
lea esi, [ebp - 0x2a34]
call fcn.00407c20
xor edi, edi
lea ebx, [edi + 7]
lea esi, [edi + 8]
jmp 0x406ef3
cmp dword [ebp + 0x24], edi
je 0x406ef3
mov edx, dword [ebp - 0x2a38]
push str.Image_file_downloading_failed
push edx
call fcn.00401b40
cmp dword [ebp - 0x29ac], esi
jb 0x406f0a
mov eax, dword [ebp - 0x29c0]
push eax
call fcn.0040ce24
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x29ac], ebx
mov dword [ebp - 0x29b0], edi
mov word [ebp - 0x29c0], cx
cmp dword [ebp - 0x2990], esi
jb 0x406f36
mov edx, dword [ebp - 0x29a4]
push edx
call fcn.0040ce24
add esp, 4
xor eax, eax
mov byte [ebp - 4], 7
mov dword [ebp - 0x2990], ebx
mov dword [ebp - 0x2994], edi
mov word [ebp - 0x29a4], ax
cmp dword [ebp - 0x29e4], esi
jb 0x4070ff
mov ecx, dword [ebp - 0x29f8]
push ecx
call fcn.0040ce24
add esp, 4
jmp 0x4070ff
mov esi, dword [ebp - 0x2934]
cmp dword [ebp - 0x2920], ebx
jae 0x406f83
lea esi, [ebp - 0x2934]
cmp dword [ebp - 0x293c], ebx
jb 0x406f99
mov edx, dword [ebp - 0x2950]
mov dword [ebp - 0x2a3c], edx
jmp 0x406fa5
lea eax, [ebp - 0x2950]
mov dword [ebp - 0x2a3c], eax
cmp dword [ebp - 0x2958], ebx
mov ebx, dword [ebp - 0x296c]
jae 0x406fb9
lea ebx, [ebp - 0x296c]
lea edi, [ebp - 0x2a18]
call fcn.00404ea0
lea ecx, [ebp - 0x2a80]
push ecx
lea edx, [ebp - 0x2a5c]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40702e
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x2a3c]
mov edx, dword [ebp - 0x2a5c]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x407021
mov eax, dword [ebp - 0x2a5c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [ebp - 0x2a5c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x2a48], 0
je 0x4070ff
mov esi, dword [ebp - 0x2934]
mov eax, 8
cmp dword [ebp - 0x2920], eax
jae 0x407054
lea esi, [ebp - 0x2934]
cmp dword [ebp - 0x293c], eax
jb 0x40706a
mov edx, dword [ebp - 0x2950]
mov dword [ebp - 0x2a3c], edx
jmp 0x407076
lea ecx, [ebp - 0x2950]
mov dword [ebp - 0x2a3c], ecx
mov ebx, dword [ebp - 0x296c]
cmp dword [ebp - 0x2958], eax
jae 0x40708a
lea ebx, [ebp - 0x296c]
lea edi, [ebp - 0x2a18]
call fcn.00404ea0
lea edx, [ebp - 0x2a88]
push edx
lea ecx, [ebp - 0x2a64]
push ecx
push 0
push 0x2011f
push 0
push 0
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4070ff
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x2a64]
lea edx, [eax + eax + 2]
mov eax, dword [ebp - 0x2a3c]
push edx
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4070f2
mov edx, dword [ebp - 0x2a64]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [ebp - 0x2a64]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
xor edx, edx
mov word [ebp - 0x291c], cx
mov word [ebp - 0x14c4], dx
mov eax, dword [ebp - 0x2a4c]
inc eax
cmp eax, dword [ebp - 0x2a70]
mov dword [ebp - 0x2a4c], eax
jl 0x4061c2
mov ebx, 8
cmp dword [ebp - 0x2920], ebx
jb 0x407146
mov eax, dword [ebp - 0x2934]
push eax
call fcn.0040ce24
add esp, 4
xor esi, esi
xor ecx, ecx
mov edi, 7
mov dword [ebp - 0x2920], edi
mov dword [ebp - 0x2924], esi
mov word [ebp - 0x2934], cx
cmp dword [ebp - 0x293c], ebx
jb 0x407179
mov edx, dword [ebp - 0x2950]
push edx
call fcn.0040ce24
add esp, 4
xor eax, eax
mov dword [ebp - 0x293c], edi
mov dword [ebp - 0x2940], esi
mov word [ebp - 0x2950], ax
cmp dword [ebp - 0x2958], ebx
jb 0x4071a5
mov ecx, dword [ebp - 0x296c]
push ecx
call fcn.0040ce24
add esp, 4
xor edx, edx
mov dword [ebp - 0x2958], edi
mov dword [ebp - 0x295c], esi
mov word [ebp - 0x296c], dx
cmp dword [ebp - 0x2a00], ebx
jb 0x4071d1
mov eax, dword [ebp - 0x2a14]
push eax
call fcn.0040ce24
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x2a00], edi
mov dword [ebp - 0x2a04], esi
mov word [ebp - 0x2a14], cx
cmp dword [ebp - 0x29c8], ebx
jb 0x4071fd
mov edx, dword [ebp - 0x29dc]
push edx
call fcn.0040ce24
add esp, 4
xor eax, eax
mov dword [ebp - 0x29c8], edi
mov dword [ebp - 0x29cc], esi
mov word [ebp - 0x29dc], ax
cmp dword [ebp - 0x2974], ebx
jb 0x407229
mov ecx, dword [ebp - 0x2988]
push ecx
call fcn.0040ce24
add esp, 4
xor edx, edx
mov dword [ebp - 0x2974], edi
mov dword [ebp - 0x2978], esi
mov word [ebp - 0x2988], dx
cmp dword [ebp + 0x20], ebx
jb 0x40724f
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040ce24
add esp, 4
xor eax, eax
lea esp, [ebp - 0x2aa4]
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.0040ce2f
mov esp, ebp
pop ebp
ret