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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423433
mov eax, dword fs:[0]
push eax
mov eax, 0x2a90
call fcn.0041c330
mov eax, dword [0x42b35c]
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 0x4026f1
cmp dword [ebp + 0x24], edi
je 0x4026d7
push str.No_response_fetched_from_server___End_execution
push esi
call fcn.004091f0
cmp dword [esi], edi
je 0x4026d7
lea ebx, [esi + 0x1004]
lea esi, [ebx + 4]
call fcn.0040a750
test eax, eax
jne 0x4026d7
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 0x4026d0
or eax, 4
push edi
push eax
call fcn.00401b40
cmp dword [ebp + 0x20], 8
jb 0x4026e9
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040cc3a
add esp, 4
or eax, 0xffffffff
jmp 0x4039f7
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.0040b8a0
add esp, 4
test eax, eax
je 0x402894
lea ecx, [ebp - 0x298c]
push ecx
mov ebx, str.partnercobranding.dat
lea esi, [ebp - 0x29c4]
call fcn.00405900
add esp, 4
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x298c]
mov byte [ebp - 4], 2
call fcn.00404a20
mov esi, 8
mov byte [ebp - 4], 1
cmp dword [ebp - 0x29ac], esi
jb 0x402772
mov edx, dword [ebp - 0x29c0]
push edx
call fcn.0040cc3a
add esp, 4
cmp dword [ebp + 0x20], esi
jb 0x402784
mov edi, dword [ebp + 0xc]
xor esi, esi
cmp edi, esi
jne 0x402789
xor eax, eax
jmp 0x4027b8
lea edi, [ebp + 0xc]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x40279c
xor eax, eax
jmp 0x4027b8
lea ebx, [eax + eax]
mov eax, ebx
call fcn.004145e0
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 0x4027cd
lea edx, [ebp - 0x2988]
mov ecx, dword [ebp + 0x1c]
push eax
mov eax, edx
call fcn.0040ba40
add esp, 4
test eax, eax
je 0x40287a
cmp dword [ebp + 0x24], esi
je 0x4027f9
mov eax, dword [ebp - 0x2a38]
push str.Writing_partner_cobrand_config_written_to_temp_folder_was_successful
push eax
call fcn.004091f0
mov ebx, 7
cmp dword [ebp - 0x2974], 8
mov eax, dword [ebp - 0x2988]
jae 0x402813
lea eax, [ebp - 0x2988]
push eax
push esi
push 0x426a4c
push str.registry
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
mov dword [ebp - 0x2a74], edi
cmp edi, esi
jne 0x40289b
cmp dword [ebp + 0x24], esi
je 0x402841
mov eax, dword [ebp - 0x2a38]
call fcn.004091b0
mov edi, 8
cmp dword [ebp - 0x2974], edi
jb 0x40285d
mov edx, dword [ebp - 0x2988]
push edx
call fcn.0040cc3a
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 0x4026db
cmp dword [ebp + 0x24], esi
je 0x4027f9
mov ecx, dword [ebp - 0x2a38]
push str.Writing_partner_cobrand_config_written_to_temp_folder___Failed
push ecx
jmp 0x4027f4
xor esi, esi
jmp 0x4027fe
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.00414620
add esp, 0xc
push 0x1450
lea ecx, [ebp - 0x14c2]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x14c4], ax
call fcn.00414620
add esp, 0xc
cmp dword [ebp + 0x24], esi
je 0x402954
mov edx, dword [ebp - 0x2a38]
push str.Begin_iterating_through_list_of_cobranding_settings_...
push edx
call fcn.004091f0
cmp edi, esi
mov dword [ebp - 0x2a4c], esi
jle 0x4038d0
push 3
mov eax, 0x426a54
lea esi, [ebp - 0x29e0]
mov edi, 8
call fcn.00405180
lea eax, [ebp - 0x2a4c]
push eax
lea ecx, [ebp - 0x29c4]
push ecx
call fcn.004059c0
add esp, 8
push 0
push eax
or eax, 0xffffffff
mov byte [ebp - 4], 8
call fcn.004050c0
mov byte [ebp - 4], 7
cmp dword [ebp - 0x29ac], edi
jb 0x4029b9
mov edx, dword [ebp - 0x29c0]
push edx
call fcn.0040cc3a
add esp, 4
mov ecx, dword [ebp - 0x2988]
cmp dword [ebp - 0x2974], edi
jae 0x4029cd
lea ecx, [ebp - 0x2988]
mov eax, dword [ebp - 0x29dc]
cmp dword [ebp - 0x29c8], edi
jae 0x4029e1
lea eax, [ebp - 0x29dc]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ecx
push 0xa28
lea ecx, [ebp - 0x291c]
push ecx
push 0x426a64
push eax
push str.registry
call ebx
lea edi, [ebp - 0x29e0]
call fcn.004044e0
push 3
mov eax, 0x426a5c
mov esi, edi
call fcn.00405180
lea edx, [ebp - 0x2a4c]
push edx
lea eax, [ebp - 0x29c4]
push eax
call fcn.004059c0
add esp, 8
push 0
push eax
or eax, 0xffffffff
mov byte [ebp - 4], 9
call fcn.004050c0
mov byte [ebp - 4], 7
cmp dword [ebp - 0x29ac], 8
jb 0x402a5b
mov ecx, dword [ebp - 0x29c0]
push ecx
call fcn.0040cc3a
add esp, 4
mov ecx, dword [ebp - 0x2988]
mov eax, 8
cmp dword [ebp - 0x2974], eax
jae 0x402a74
lea ecx, [ebp - 0x2988]
cmp dword [ebp - 0x29c8], eax
mov eax, dword [ebp - 0x29dc]
jae 0x402a88
lea eax, [ebp - 0x29dc]
push ecx
push 0xa28
lea edx, [ebp - 0x14c4]
push edx
push 0x426a64
push eax
push str.registry
call ebx
lea eax, [ebp - 0x14c4]
lea edx, [eax + 2]
jmp 0x402ab0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402ab0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x14c4]
lea esi, [ebp - 0x2938]
call fcn.00405180
lea edi, [ebp - 0x29e0]
call fcn.004044e0
cmp dword [ebp + 0x24], 0
mov esi, dword [ebp - 0x2a38]
je 0x402b0d
push str.Processing_the_following_key___value_pair
push esi
call fcn.004091f0
lea eax, [ebp - 0x291c]
push eax
push esi
call fcn.004091f0
lea ecx, [ebp - 0x14c4]
push ecx
push esi
call fcn.004091f0
lea edi, [ebp - 0x2a18]
call fcn.004044e0
lea edi, [ebp - 0x2970]
call fcn.004044e0
lea edi, [ebp - 0x2954]
call fcn.004044e0
lea edx, [ebp - 0x2970]
push edx
lea eax, [ebp - 0x2a18]
push eax
mov ebx, edi
lea ecx, [ebp - 0x291c]
call fcn.00402570
add esp, 8
cmp dword [ebp + 0x28], 0
je 0x402baf
mov eax, dword [ebp - 0x2950]
mov ebx, 8
cmp dword [ebp - 0x293c], ebx
jae 0x402b6b
lea eax, [ebp - 0x2950]
push 0x426a84
push eax
call fcn.0040ce49
add esp, 8
test eax, eax
je 0x402ba3
mov eax, dword [ebp - 0x2950]
cmp dword [ebp - 0x293c], ebx
jae 0x402b91
lea eax, [ebp - 0x2950]
push str.ProductIcon
push eax
call fcn.0040ce49
add esp, 8
test eax, eax
jne 0x402baf
mov dword [ebp - 0x2a48], 1
jmp 0x402bbe
mov dword [ebp - 0x2a48], 0
mov ebx, 8
mov eax, dword [ebp - 0x2950]
cmp dword [ebp - 0x293c], ebx
jae 0x402bd2
lea eax, [ebp - 0x2950]
push str.ProductIcon
push eax
call fcn.0040ce49
add esp, 8
test eax, eax
jne 0x402dcd
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 0x402c0b
lea eax, [ebp - 0x2934]
lea ecx, [ebp - 0x6c]
push ecx
push eax
call fcn.0040ce49
add esp, 8
test eax, eax
jne 0x402dc7
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.0040b940
test eax, eax
je 0x402cb3
lea ecx, [ebp - 0x29c4]
push ecx
mov ebx, str._favicon.ico
lea esi, [ebp - 0x29fc]
call fcn.00405900
add esp, 4
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x29a8]
mov byte [ebp - 4], 0xc
call fcn.00404a20
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x29e4], 8
jb 0x402cac
mov edx, dword [ebp - 0x29f8]
push edx
call fcn.0040cc3a
add esp, 4
mov ebx, 8
xor edi, edi
mov eax, dword [ebp - 0x29a4]
cmp dword [ebp - 0x2990], ebx
jae 0x402cc7
lea eax, [ebp - 0x29a4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402d7c
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, 0x426d9c
call fcn.00404a20
lea ecx, [ebp - 0x29fc]
push ecx
mov ecx, esi
call fcn.004020b0
add esp, 0x28
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x29f8]
cmp dword [ebp - 0x29e4], ebx
jae 0x402d34
lea ecx, [ebp - 0x29f8]
mov eax, dword [ebp - 0x29a4]
cmp dword [ebp - 0x2990], ebx
jae 0x402d48
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.00404a20
cmp dword [ebp - 0x29e4], ebx
jb 0x402d7c
mov edx, dword [ebp - 0x29f8]
push edx
call fcn.0040cc3a
add esp, 4
cmp dword [ebp - 0x2990], ebx
jb 0x402d93
mov eax, dword [ebp - 0x29a4]
push eax
call fcn.0040cc3a
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 0x402dc7
mov edx, dword [ebp - 0x29c0]
push edx
call fcn.0040cc3a
add esp, 4
mov esi, dword [ebp - 0x2a38]
mov edi, 6
cmp dword [ebp - 0x2924], edi
jbe 0x403076
mov eax, dword [ebp - 0x2934]
cmp dword [ebp - 0x2920], ebx
jae 0x402df2
lea eax, [ebp - 0x2934]
push edi
push str.DWORD:
push eax
call fcn.0040d753
add esp, 0xc
test eax, eax
jne 0x403076
cmp dword [ebp + 0x24], eax
je 0x402e19
push str.It_is_a_DWORD_registry_entry
push esi
call fcn.004091f0
mov eax, edi
xor ebx, ebx
lea esi, [ebp - 0x2938]
call fcn.00404450
mov eax, 8
cmp dword [ebp - 0x2920], eax
jb 0x402e43
mov ecx, dword [ebp - 0x2934]
mov dword [ebp - 0x2a40], ecx
jmp 0x402e4f
lea edx, [ebp - 0x2934]
mov dword [ebp - 0x2a40], edx
cmp dword [ebp - 0x293c], eax
jb 0x402e65
mov ecx, dword [ebp - 0x2950]
mov dword [ebp - 0x2a3c], ecx
jmp 0x402e71
lea edx, [ebp - 0x2950]
mov dword [ebp - 0x2a3c], edx
mov ebx, dword [ebp - 0x296c]
cmp dword [ebp - 0x2958], eax
jae 0x402e85
lea ebx, [ebp - 0x296c]
lea edi, [ebp - 0x2a18]
call fcn.0040b820
lea ecx, [ebp - 0x2a94]
push ecx
xor esi, esi
lea edx, [ebp - 0x2a64]
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 0x402f25
mov ecx, dword [ebp - 0x2a40]
push 0xa
lea eax, [ebp - 0x2a44]
push eax
push ecx
mov dword [ebp - 0x2a44], esi
call fcn.0040e7b6
mov ecx, dword [ebp - 0x2a64]
add esp, 0xc
push 4
lea edx, [ebp - 0x2a70]
push edx
push 4
mov dword [ebp - 0x2a70], eax
mov eax, dword [ebp - 0x2a3c]
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x402f00
lea esi, [eax + 1]
mov edx, dword [ebp - 0x2a64]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x402f25
cmp dword [ebp + 0x24], 0
je 0x402f3c
mov eax, dword [ebp - 0x2a38]
push str.DWORD_Registry_writing_was_successful
push eax
jmp 0x402f37
cmp dword [ebp + 0x24], 0
je 0x402f3c
mov ecx, dword [ebp - 0x2a38]
push str.DWORD_Registry_writing_failed
push ecx
call fcn.004091f0
cmp dword [ebp - 0x2a48], 0
je 0x4038a5
mov eax, 8
cmp dword [ebp - 0x2920], eax
jb 0x402f64
mov edx, dword [ebp - 0x2934]
mov dword [ebp - 0x2a3c], edx
jmp 0x402f70
lea ecx, [ebp - 0x2934]
mov dword [ebp - 0x2a3c], ecx
cmp dword [ebp - 0x293c], eax
jb 0x402f86
mov edx, dword [ebp - 0x2950]
mov dword [ebp - 0x2a40], edx
jmp 0x402f92
lea ecx, [ebp - 0x2950]
mov dword [ebp - 0x2a40], ecx
mov ebx, dword [ebp - 0x296c]
cmp dword [ebp - 0x2958], eax
jae 0x402fa6
lea ebx, [ebp - 0x296c]
lea edi, [ebp - 0x2a18]
call fcn.0040b820
lea edx, [ebp - 0x2a7c]
push edx
xor esi, esi
lea ecx, [ebp - 0x2a6c]
push ecx
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 0x403056
push 0xa
lea edx, [ebp - 0x2a44]
mov dword [ebp - 0x2a44], eax
mov eax, dword [ebp - 0x2a3c]
push edx
push eax
call fcn.0040e7b6
mov edx, dword [ebp - 0x2a40]
add esp, 0xc
push 4
lea ecx, [ebp - 0x2a78]
push ecx
push 4
push esi
mov dword [ebp - 0x2a78], eax
mov eax, dword [ebp - 0x2a6c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x403025
lea esi, [eax + 1]
mov ecx, dword [ebp - 0x2a6c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x403056
cmp dword [ebp + 0x24], 0
je 0x4038a5
mov edx, dword [ebp - 0x2a38]
push str.DWORD_Registry_writing_was_successful
push edx
call fcn.004091f0
jmp 0x4038a5
cmp dword [ebp + 0x24], 0
je 0x4038a5
mov eax, dword [ebp - 0x2a38]
push str.DWORD_Registry_writing_failed
push eax
call fcn.004091f0
jmp 0x4038a5
cmp dword [ebp - 0x2924], 7
jbe 0x4032e7
mov eax, dword [ebp - 0x2934]
cmp dword [ebp - 0x2920], ebx
jae 0x403097
lea eax, [ebp - 0x2934]
push 7
push str.EXPAND:
push eax
call fcn.0040d753
add esp, 0xc
test eax, eax
jne 0x4032e7
cmp dword [ebp + 0x24], eax
je 0x4030bf
push str.It_is_a_EXPANDABLE_string_registry_entry
push esi
call fcn.004091f0
mov eax, 7
xor ebx, ebx
lea esi, [ebp - 0x2938]
call fcn.00404450
mov eax, 8
cmp dword [ebp - 0x2920], eax
jb 0x4030ec
mov ecx, dword [ebp - 0x2934]
mov dword [ebp - 0x2a3c], ecx
jmp 0x4030f8
lea edx, [ebp - 0x2934]
mov dword [ebp - 0x2a3c], edx
cmp dword [ebp - 0x293c], eax
jb 0x40310e
mov ecx, dword [ebp - 0x2950]
mov dword [ebp - 0x2a40], ecx
jmp 0x40311a
lea edx, [ebp - 0x2950]
mov dword [ebp - 0x2a40], edx
mov ebx, dword [ebp - 0x296c]
cmp dword [ebp - 0x2958], eax
jae 0x40312e
lea ebx, [ebp - 0x296c]
lea edi, [ebp - 0x2a18]
call fcn.0040b820
lea ecx, [ebp - 0x2a8c]
push ecx
xor esi, esi
lea edx, [ebp - 0x2a68]
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 0x4031b4
mov edi, dword [ebp - 0x2a3c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x2a40]
mov edx, dword [ebp - 0x2a68]
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 0x40318f
lea esi, [eax + 1]
mov eax, dword [ebp - 0x2a68]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4031b4
cmp dword [ebp + 0x24], 0
je 0x4031cb
mov ecx, dword [ebp - 0x2a38]
push str.EXPANDABLE_String_registry_writing_was_successful
push ecx
jmp 0x4031c6
cmp dword [ebp + 0x24], 0
je 0x4031cb
mov edx, dword [ebp - 0x2a38]
push str.EXPANDABLE_String_Registry_writing_failed
push edx
call fcn.004091f0
cmp dword [ebp - 0x2a48], 0
je 0x4038a5
mov eax, 8
cmp dword [ebp - 0x2920], eax
jb 0x4031f3
mov ecx, dword [ebp - 0x2934]
mov dword [ebp - 0x2a3c], ecx
jmp 0x4031ff
lea edx, [ebp - 0x2934]
mov dword [ebp - 0x2a3c], edx
cmp dword [ebp - 0x293c], eax
jb 0x403215
mov ecx, dword [ebp - 0x2950]
mov dword [ebp - 0x2a40], ecx
jmp 0x403221
lea edx, [ebp - 0x2950]
mov dword [ebp - 0x2a40], edx
mov ebx, dword [ebp - 0x296c]
cmp dword [ebp - 0x2958], eax
jae 0x403235
lea ebx, [ebp - 0x296c]
lea edi, [ebp - 0x2a18]
call fcn.0040b820
lea ecx, [ebp - 0x2a80]
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 0x4032c7
mov edi, dword [ebp - 0x2a3c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x2a40]
mov edx, dword [ebp - 0x2a54]
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 0x403296
lea esi, [eax + 1]
mov eax, dword [ebp - 0x2a54]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4032c7
cmp dword [ebp + 0x24], 0
je 0x4038a5
mov ecx, dword [ebp - 0x2a38]
push str.EXPANDABLE_String_registry_writing_was_successful
push ecx
call fcn.004091f0
jmp 0x4038a5
cmp dword [ebp + 0x24], 0
je 0x4038a5
mov edx, dword [ebp - 0x2a38]
push str.EXPANDABLE_String_Registry_writing_failed
push edx
call fcn.004091f0
jmp 0x4038a5
cmp dword [ebp - 0x2924], edi
jbe 0x403737
mov eax, dword [ebp - 0x2934]
cmp dword [ebp - 0x2920], ebx
jae 0x403307
lea eax, [ebp - 0x2934]
push edi
push str.IMAGE:
push eax
call fcn.0040d753
add esp, 0xc
test eax, eax
jne 0x403737
cmp dword [ebp + 0x24], eax
je 0x40332e
push str.It_is_an_image_file_to_be_referred_using_registry
push esi
call fcn.004091f0
mov eax, edi
xor ebx, ebx
lea esi, [ebp - 0x2938]
call fcn.00404450
mov ebx, 7
xor edi, edi
xor eax, eax
mov dword [ebp - 0x29e4], ebx
mov dword [ebp - 0x29e8], edi
mov word [ebp - 0x29f8], ax
lea ecx, [ebp - 0x29fc]
mov byte [ebp - 4], 0xe
call fcn.0040b940
test eax, eax
jne 0x403390
mov byte [ebp - 4], bl
cmp dword [ebp - 0x29e4], 8
jb 0x4038b7
mov ecx, dword [ebp - 0x29f8]
push ecx
call fcn.0040cc3a
add esp, 4
jmp 0x4038b7
lea edx, [ebp - 0x29fc]
push edx
mov ebx, str.cobrand.ico
lea esi, [ebp - 0x29a8]
call fcn.00405900
add esp, 4
mov ebx, 7
xor eax, eax
mov dword [ebp - 0x29ac], ebx
mov dword [ebp - 0x29b0], edi
mov word [ebp - 0x29c0], ax
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x29a4]
mov esi, 8
cmp dword [ebp - 0x2990], esi
jae 0x4033e1
lea edx, [ebp - 0x29a4]
mov ecx, dword [ebp - 0x2934]
cmp dword [ebp - 0x2920], esi
jae 0x4033f5
lea ecx, [ebp - 0x2934]
lea eax, [ebp - 0x29c4]
push 1
push eax
call fcn.00408aa0
add esp, 8
test eax, eax
je 0x4036a5
push 1
push str..ico
sub esp, 0x1c
lea ecx, [ebp - 0x29fc]
mov esi, esp
mov dword [ebp - 0x2a44], esp
push ecx
mov edi, 0x42705c
call fcn.004043f0
lea edx, [ebp - 0x2a34]
push edx
mov ecx, edi
call fcn.004020b0
add esp, 0x28
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x2a30]
mov esi, 8
cmp dword [ebp - 0x2a1c], esi
jae 0x40345f
lea ecx, [ebp - 0x2a30]
mov eax, dword [ebp - 0x29a4]
cmp dword [ebp - 0x2990], esi
jae 0x403473
lea eax, [ebp - 0x29a4]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [ebp + 0x24], 0
je 0x403494
mov eax, dword [ebp - 0x2a38]
push str.Image_file_downloading_was_successful
push eax
call fcn.004091f0
cmp dword [ebp - 0x2a1c], esi
jb 0x4034aa
mov ecx, dword [ebp - 0x2a30]
mov dword [ebp - 0x2a3c], ecx
jmp 0x4034b6
lea edx, [ebp - 0x2a30]
mov dword [ebp - 0x2a3c], edx
cmp dword [ebp - 0x293c], esi
jb 0x4034cc
mov eax, dword [ebp - 0x2950]
mov dword [ebp - 0x2a40], eax
jmp 0x4034d8
lea ecx, [ebp - 0x2950]
mov dword [ebp - 0x2a40], ecx
mov ebx, dword [ebp - 0x296c]
cmp dword [ebp - 0x2958], esi
jae 0x4034ec
lea ebx, [ebp - 0x296c]
lea edi, [ebp - 0x2a18]
call fcn.0040b820
lea edx, [ebp - 0x2a88]
push edx
xor esi, esi
lea ecx, [ebp - 0x2a5c]
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 0x403572
mov edi, dword [ebp - 0x2a3c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x2a5c]
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 0x40354d
lea esi, [eax + 1]
mov edx, dword [ebp - 0x2a5c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x403572
cmp dword [ebp + 0x24], 0
je 0x403589
mov eax, dword [ebp - 0x2a38]
push str.Image_file_linking_with_registry_was_successful
push eax
jmp 0x403584
cmp dword [ebp + 0x24], 0
je 0x403589
mov ecx, dword [ebp - 0x2a38]
push str.EImage_file_linking_with_registry_failed
push ecx
call fcn.004091f0
cmp dword [ebp - 0x2a48], 0
je 0x403690
mov eax, 8
cmp dword [ebp - 0x2a1c], eax
jb 0x4035b1
mov edx, dword [ebp - 0x2a30]
mov dword [ebp - 0x2a3c], edx
jmp 0x4035bd
lea ecx, [ebp - 0x2a30]
mov dword [ebp - 0x2a3c], ecx
cmp dword [ebp - 0x293c], eax
jb 0x4035d3
mov edx, dword [ebp - 0x2950]
mov dword [ebp - 0x2a40], edx
jmp 0x4035df
lea ecx, [ebp - 0x2950]
mov dword [ebp - 0x2a40], ecx
mov ebx, dword [ebp - 0x296c]
cmp dword [ebp - 0x2958], eax
jae 0x4035f3
lea ebx, [ebp - 0x296c]
lea edi, [ebp - 0x2a18]
call fcn.0040b820
lea edx, [ebp - 0x2a90]
push edx
xor esi, esi
lea ecx, [ebp - 0x2a58]
push ecx
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 0x403679
mov edi, dword [ebp - 0x2a3c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x2a58]
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 0x403654
lea esi, [eax + 1]
mov edx, dword [ebp - 0x2a58]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x403679
cmp dword [ebp + 0x24], 0
je 0x403690
mov eax, dword [ebp - 0x2a38]
push str.Image_file_linking_with_registry_was_successful
push eax
jmp 0x40368b
cmp dword [ebp + 0x24], 0
je 0x403690
mov ecx, dword [ebp - 0x2a38]
push str.EImage_file_linking_with_registry_failed
push ecx
call fcn.004091f0
lea esi, [ebp - 0x2a34]
call fcn.00404420
xor edi, edi
lea ebx, [edi + 7]
lea esi, [edi + 8]
jmp 0x4036bb
cmp dword [ebp + 0x24], edi
je 0x4036bb
mov edx, dword [ebp - 0x2a38]
push str.Image_file_downloading_failed
push edx
call fcn.004091f0
cmp dword [ebp - 0x29ac], esi
jb 0x4036d2
mov eax, dword [ebp - 0x29c0]
push eax
call fcn.0040cc3a
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 0x4036fe
mov edx, dword [ebp - 0x29a4]
push edx
call fcn.0040cc3a
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 0x4038a5
mov ecx, dword [ebp - 0x29f8]
push ecx
call fcn.0040cc3a
add esp, 4
jmp 0x4038a5
mov esi, dword [ebp - 0x2934]
cmp dword [ebp - 0x2920], ebx
jae 0x40374b
lea esi, [ebp - 0x2934]
cmp dword [ebp - 0x293c], ebx
jb 0x403761
mov edx, dword [ebp - 0x2950]
mov dword [ebp - 0x2a3c], edx
jmp 0x40376d
lea eax, [ebp - 0x2950]
mov dword [ebp - 0x2a3c], eax
cmp dword [ebp - 0x2958], ebx
mov ebx, dword [ebp - 0x296c]
jae 0x403781
lea ebx, [ebp - 0x296c]
lea edi, [ebp - 0x2a18]
call fcn.0040b820
lea ecx, [ebp - 0x2a98]
push ecx
lea edx, [ebp - 0x2a50]
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 0x4037e5
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x2a3c]
mov edx, dword [ebp - 0x2a50]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x2a50]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x2a48], 0
je 0x4038a5
mov esi, dword [ebp - 0x2934]
mov eax, 8
cmp dword [ebp - 0x2920], eax
jae 0x40380b
lea esi, [ebp - 0x2934]
cmp dword [ebp - 0x293c], eax
jb 0x403821
mov ecx, dword [ebp - 0x2950]
mov dword [ebp - 0x2a3c], ecx
jmp 0x40382d
lea edx, [ebp - 0x2950]
mov dword [ebp - 0x2a3c], edx
mov ebx, dword [ebp - 0x296c]
cmp dword [ebp - 0x2958], eax
jae 0x403841
lea ebx, [ebp - 0x296c]
lea edi, [ebp - 0x2a18]
call fcn.0040b820
lea ecx, [ebp - 0x2a84]
push ecx
lea edx, [ebp - 0x2a60]
push edx
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 0x4038a5
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x2a3c]
mov edx, dword [ebp - 0x2a60]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x2a60]
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 - 0x2a74]
mov dword [ebp - 0x2a4c], eax
jl 0x402962
mov ebx, 8
cmp dword [ebp - 0x2920], ebx
jb 0x4038ec
mov eax, dword [ebp - 0x2934]
push eax
call fcn.0040cc3a
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 0x40391f
mov edx, dword [ebp - 0x2950]
push edx
call fcn.0040cc3a
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 0x40394b
mov ecx, dword [ebp - 0x296c]
push ecx
call fcn.0040cc3a
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 0x403977
mov eax, dword [ebp - 0x2a14]
push eax
call fcn.0040cc3a
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 0x4039a3
mov edx, dword [ebp - 0x29dc]
push edx
call fcn.0040cc3a
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 0x4039cf
mov ecx, dword [ebp - 0x2988]
push ecx
call fcn.0040cc3a
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 0x4039f5
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040cc3a
add esp, 4
xor eax, eax
lea esp, [ebp - 0x2aac]
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.0040cc45
mov esp, ebp
pop ebp
ret