Function at 0x408600
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x560
mov eax, dword [0x471078]
xor eax, esp
mov dword [esp + 0x55c], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push 0xa
mov dword [esp + 0x28], 0xa0
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
jne 0x408640
mov dword [esp + 0x24], 0xc000001d
jmp case.default.0x4086c2
push dword [esp + 0x24]
mov edx, dword [0x474a98]
push ecx
mov ecx, dword [0x474a94]
mov dword [0x474a90], 0
call fcn.0040fa90
mov eax, dword [0x474a94]
add esp, 8
mov dword [0x474a98], eax
mov word [0x474aa0], 0
mov byte [0x474aa2], 0
call fcn.00407330
call fcn.004051b0
test al, al
jne 0x408698
mov dword [esp + 0x24], 8
jmp case.default.0x4086c2
mov ecx, dword [0x474a90]
call fcn.00404f10
test al, al
jne 0x4086b4
mov dword [esp + 0x24], 2
jmp case.default.0x4086c2
mov eax, dword [0x474a90]
cmp eax, 0xa
ja case.default.0x4086c2
jmp dword [eax*4 + 0x409164]
push 0xb0
lea eax, [esp + 0xa4]
push 0
push eax
call fcn.00438180
add esp, 8
lea ecx, [esp + 0xa4]
call fcn.00409ae0
cmp dword [0x474a88], 8
lea ecx, [esp + 0xa4]
mov eax, 0x474a74
cmovae eax, dword [0x474a74]
sub esp, 8
push eax
call fcn.0040c3a0
test eax, eax
lea ecx, [esp + 0xa0]
mov eax, dword [esp + 0xa0]
push 0
mov eax, dword [eax + 4]
jne 0x40873a
mov edx, dword [ecx + eax + 0xc]
add ecx, eax
or edx, 2
mov eax, edx
or eax, 4
cmp dword [ecx + 0x38], 0
jmp 0x408746
add ecx, eax
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
push eax
call fcn.00402c90
cmp dword [esp + 0xf0], 0
je 0x408c47
mov edx, str.aswOfferTool_log:
lea ecx, [esp + 0xa0]
call fcn.0040e7d0
mov esi, eax
push 0xa
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.0040dc40
movzx ecx, ax
push ecx
mov ecx, esi
call fcn.0040f0d0
mov ecx, esi
call fcn.0040efe0
mov eax, dword [esi]
push 0xa
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.0040dc40
movzx eax, ax
mov ecx, esi
push eax
call fcn.0040f0d0
mov ecx, esi
call fcn.0040efe0
cmp byte [0x474aa1], 0
mov esi, 1
je 0x4087d6
lea edx, [esp + 0x24]
mov esi, 2
call fcn.00407cf0
test eax, eax
jne 0x4087d6
cmp dword [esp + 0x24], eax
jne 0x4087f6
lea eax, [esp + 0x24]
mov edx, esi
push eax
call fcn.004059d0
add esp, 4
cmp dword [esp + 0x24], 0
jne 0x4087f6
mov edx, str.Google_Chrome_may_be_offered_to_this_user.
jmp 0x40895d
mov edx, str.Google_Chrome_cannot_be_offered_due_to_these_reasons:
lea ecx, [esp + 0xa0]
call fcn.0040e7d0
mov esi, eax
push 0xa
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.0040dc40
movzx ecx, ax
push ecx
mov ecx, esi
call fcn.0040f0d0
mov ecx, esi
call fcn.0040efe0
mov eax, dword [esp + 0x24]
test al, 1
je 0x408868
mov edx, str.___GCCC_ERROR_USERLEVELALREADYPRESENT
lea ecx, [esp + 0xa0]
call fcn.0040e7d0
mov esi, eax
push 0xa
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.0040dc40
movzx ecx, ax
push ecx
mov ecx, esi
call fcn.0040f0d0
mov ecx, esi
call fcn.0040efe0
mov eax, dword [esp + 0x24]
test al, 2
je 0x4088a3
mov edx, str.___GCCC_ERROR_SYSTEMLEVELALREADYPRESENT
lea ecx, [esp + 0xa0]
call fcn.0040e7d0
mov esi, eax
push 0xa
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.0040dc40
movzx ecx, ax
push ecx
mov ecx, esi
call fcn.0040f0d0
mov ecx, esi
call fcn.0040efe0
mov eax, dword [esp + 0x24]
test al, 4
je 0x4088de
mov edx, str.___GCCC_ERROR_ACCESSDENIED
lea ecx, [esp + 0xa0]
call fcn.0040e7d0
mov esi, eax
push 0xa
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.0040dc40
movzx ecx, ax
push ecx
mov ecx, esi
call fcn.0040f0d0
mov ecx, esi
call fcn.0040efe0
mov eax, dword [esp + 0x24]
test al, 8
je 0x408919
mov edx, str.___GCCC_ERROR_OSNOTSUPPORTED
lea ecx, [esp + 0xa0]
call fcn.0040e7d0
mov esi, eax
push 0xa
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.0040dc40
movzx ecx, ax
push ecx
mov ecx, esi
call fcn.0040f0d0
mov ecx, esi
call fcn.0040efe0
mov eax, dword [esp + 0x24]
test al, 0x10
je 0x408954
mov edx, str.___GCCC_ERROR_ALREADYOFFERED
lea ecx, [esp + 0xa0]
call fcn.0040e7d0
mov esi, eax
push 0xa
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.0040dc40
movzx ecx, ax
push ecx
mov ecx, esi
call fcn.0040f0d0
mov ecx, esi
call fcn.0040efe0
mov eax, dword [esp + 0x24]
test al, 0x20
je 0x40898b
mov edx, str.___GCCC_ERROR_INTEGRITYLEVEL
lea ecx, [esp + 0xa0]
call fcn.0040e7d0
mov esi, eax
push 0xa
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.0040dc40
movzx ecx, ax
push ecx
mov ecx, esi
call fcn.0040f0d0
mov ecx, esi
call fcn.0040efe0
mov eax, dword [esp + 0xa0]
lea ecx, [esp + 0xa0]
push 0xa
mov eax, dword [eax + 4]
add ecx, eax
call fcn.0040dc40
movzx eax, ax
lea ecx, [esp + 0xa0]
push eax
call fcn.0040f0d0
lea ecx, [esp + 0xa0]
call fcn.0040efe0
cmp byte [0x474aa1], 0
je 0x4089d7
lea ecx, [esp + 0x24]
call fcn.00408400
test eax, eax
je 0x4089e6
lea eax, [esp + 0x24]
xor edx, edx
push eax
call fcn.00405fe0
add esp, 4
cmp dword [esp + 0x24], 0
lea ecx, [esp + 0xa0]
jne 0x4089fe
mov edx, str.Google_Toolbar_may_be_offered_to_this_user.
jmp 0x408bdb
mov edx, str.Google_Toolbar_cannot_be_offered_due_to_these_reasons:
call fcn.0040e7d0
mov esi, eax
push 0xa
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.0040dc40
movzx ecx, ax
push ecx
mov ecx, esi
call fcn.0040f0d0
mov ecx, esi
call fcn.0040efe0
mov eax, dword [esp + 0x24]
test al, 1
je 0x408a69
mov edx, str.___TCC_ERROR_TOOLBARPRESENT
lea ecx, [esp + 0xa0]
call fcn.0040e7d0
mov esi, eax
push 0xa
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.0040dc40
movzx ecx, ax
push ecx
mov ecx, esi
call fcn.0040f0d0
mov ecx, esi
call fcn.0040efe0
mov eax, dword [esp + 0x24]
test al, 2
je 0x408aa4
mov edx, str.___TCC_ERROR_ACCESSDENIED
lea ecx, [esp + 0xa0]
call fcn.0040e7d0
mov esi, eax
push 0xa
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.0040dc40
movzx ecx, ax
push ecx
mov ecx, esi
call fcn.0040f0d0
mov ecx, esi
call fcn.0040efe0
mov eax, dword [esp + 0x24]
test al, 4
je 0x408adf
mov edx, str.___TCC_ERROR_IENOTDEFAULTBROWSER
lea ecx, [esp + 0xa0]
call fcn.0040e7d0
mov esi, eax
push 0xa
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.0040dc40
movzx ecx, ax
push ecx
mov ecx, esi
call fcn.0040f0d0
mov ecx, esi
call fcn.0040efe0
mov eax, dword [esp + 0x24]
test al, 8
je 0x408b1a
mov edx, str.___TCC_ERROR_BHODISABLED
lea ecx, [esp + 0xa0]
call fcn.0040e7d0
mov esi, eax
push 0xa
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.0040dc40
movzx ecx, ax
push ecx
mov ecx, esi
call fcn.0040f0d0
mov ecx, esi
call fcn.0040efe0
mov eax, dword [esp + 0x24]
test al, 0x10
je 0x408b55
mov edx, str.___TCC_ERROR_IEBELOWMINVERSION
lea ecx, [esp + 0xa0]
call fcn.0040e7d0
mov esi, eax
push 0xa
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.0040dc40
movzx ecx, ax
push ecx
mov ecx, esi
call fcn.0040f0d0
mov ecx, esi
call fcn.0040efe0
mov eax, dword [esp + 0x24]
test al, 0x20
je 0x408b90
mov edx, str.___TCC_ERROR_OSNOTSUPPORTED
lea ecx, [esp + 0xa0]
call fcn.0040e7d0
mov esi, eax
push 0xa
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.0040dc40
movzx ecx, ax
push ecx
mov ecx, esi
call fcn.0040f0d0
mov ecx, esi
call fcn.0040efe0
mov eax, dword [esp + 0x24]
test al, 0x40
je 0x408bcb
mov edx, str.___TCC_ERROR_USERDECLINED
lea ecx, [esp + 0xa0]
call fcn.0040e7d0
mov esi, eax
push 0xa
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.0040dc40
movzx ecx, ax
push ecx
mov ecx, esi
call fcn.0040f0d0
mov ecx, esi
call fcn.0040efe0
mov eax, dword [esp + 0x24]
test al, al
jns 0x408c02
mov edx, str.___TCC_ERROR_INTEGRITYLEVEL
lea ecx, [esp + 0xa0]
call fcn.0040e7d0
mov esi, eax
push 0xa
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.0040dc40
movzx ecx, ax
push ecx
mov ecx, esi
call fcn.0040f0d0
mov ecx, esi
call fcn.0040efe0
lea ecx, [esp + 0xa4]
call fcn.0040c2d0
test eax, eax
jne 0x408c3f
mov eax, dword [esp + 0xa0]
lea ecx, [esp + 0xa0]
push 0
mov eax, dword [eax + 4]
add ecx, eax
mov edx, dword [ecx + 0xc]
or edx, 2
mov eax, edx
or eax, 4
cmp dword [ecx + 0x38], 0
cmovne eax, edx
push eax
call fcn.00402c90
mov dword [esp + 0x24], 0
lea ecx, [esp + 0xa0]
call fcn.00409190
jmp case.default.0x4086c2
lea eax, [esp + 0x24]
mov edx, 2
push eax
call fcn.004059d0
add esp, 4
jmp case.default.0x4086c2
lea eax, [esp + 0x24]
mov ecx, 0x474a94
push eax
call fcn.00405a80
add esp, 4
jmp case.default.0x4086c2
lea eax, [esp + 0x24]
mov ecx, 0x474a94
push eax
call fcn.00405c00
add esp, 4
jmp case.default.0x4086c2
cmp byte [0x474aa1], 0
je 0x408e9a
push esi
lea ecx, [esp + 0x44]
xor bh, bh
call fcn.00409860
xor ecx, ecx
mov eax, 9
cmp word [str._elevated], cx
cmove eax, ecx
push eax
push ecx
push str._elevated
lea ecx, [esp + 0x4c]
call fcn.0040b180
test eax, eax
je 0x408e67
push 0
push 0x466078
push 9
push eax
lea ecx, [esp + 0x50]
call fcn.0040b270
push 0
push 0x2e
lea eax, [esp + 0x158]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x408e67
lea eax, [esp + 0x150]
push eax
lea ecx, [esp + 0x5c]
call fcn.00409860
push 0x208
lea eax, [esp + 0x154]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [esp + 0x3c], 7
mov word [esp + 0x28], ax
lea ecx, [esp + 0xc]
lea eax, [esp + 0x150]
mov dword [esp + 0x38], 0
push eax
call fcn.00409860
lea edx, [esp + 0xc]
lea ecx, [esp + 0x70]
call fcn.00415c20
lea ecx, [esp + 0xc]
call fcn.004097a0
push ecx
lea eax, [esp + 0x74]
push eax
lea edx, [esp + 0x60]
lea ecx, [esp + 0x30]
call fcn.00415d70
add esp, 8
lea eax, [esp + 0x40]
lea edx, [esp + 0x28]
lea ecx, [esp + 0xc]
push eax
push 0x466208
call fcn.0040e3d0
add esp, 4
lea ecx, [esp + 0x8c]
mov edx, eax
call fcn.0040e550
add esp, 4
lea ecx, [esp + 0x40]
push eax
call fcn.004097e0
lea ecx, [esp + 0x88]
call fcn.004097a0
lea ecx, [esp + 0xc]
call fcn.004097a0
lea eax, [esp + 0x150]
push eax
lea ecx, [esp + 0x10]
call fcn.00409860
cmp dword [esp + 0x3c], 8
lea edx, [esp + 0x28]
lea ecx, [esp + 0xc]
cmovae edx, dword [esp + 0x28]
cmp dword [esp + 0x20], 8
cmovae ecx, dword [esp + 0xc]
sub esp, 8
call fcn.00415fb0
add esp, 8
lea ecx, [esp + 0xc]
mov bl, al
call fcn.004097a0
test bl, bl
je 0x408e48
cmp dword [esp + 0x54], 8
lea ecx, [esp + 0x40]
lea edx, [esp + 0x24]
cmovae ecx, dword [esp + 0x40]
call fcn.00407030
cmp dword [esp + 0x3c], 8
lea ecx, [esp + 0x28]
mov bh, al
cmovae ecx, dword [esp + 0x28]
call fcn.004160f0
lea ecx, [esp + 0x70]
call fcn.004097a0
lea ecx, [esp + 0x28]
call fcn.004097a0
lea ecx, [esp + 0x58]
call fcn.004097a0
test bh, bh
jne 0x408e79
lea eax, [esp + 0x24]
mov ecx, 0x474a94
push eax
call fcn.00405db0
add esp, 4
mov eax, dword [esp + 0x54]
cmp eax, 8
jb case.default.0x4086c2
inc eax
lea ecx, [esp + 0x40]
push eax
push dword [esp + 0x44]
call fcn.0040ca80
jmp case.default.0x4086c2
lea eax, [esp + 0x24]
mov ecx, 0x474a94
push eax
call fcn.00405db0
add esp, 4
jmp case.default.0x4086c2
cmp byte [0x474aa1], 0
je 0x4090b2
push esi
lea ecx, [esp + 0x44]
xor bh, bh
call fcn.00409860
xor ecx, ecx
mov eax, 9
cmp word [str._elevated], cx
cmove eax, ecx
push eax
push ecx
push str._elevated
lea ecx, [esp + 0x4c]
call fcn.0040b180
test eax, eax
je 0x409082
push 0
push 0x466078
push 9
push eax
lea ecx, [esp + 0x50]
call fcn.0040b270
push 0
push 0x2e
lea eax, [esp + 0x158]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x409082
lea eax, [esp + 0x150]
push eax
lea ecx, [esp + 0x8c]
call fcn.00409860
push 0x208
lea eax, [esp + 0x154]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [esp + 0x3c], 7
mov word [esp + 0x28], ax
lea ecx, [esp + 0x58]
lea eax, [esp + 0x150]
mov dword [esp + 0x38], 0
push eax
call fcn.00409860
lea edx, [esp + 0x58]
lea ecx, [esp + 0x70]
call fcn.00415c20
lea ecx, [esp + 0x58]
call fcn.004097a0
push ecx
lea eax, [esp + 0x74]
push eax
lea edx, [esp + 0x90]
lea ecx, [esp + 0x30]
call fcn.00415d70
add esp, 8
lea eax, [esp + 0x40]
lea edx, [esp + 0x28]
lea ecx, [esp + 0xc]
push eax
push 0x466208
call fcn.0040e3d0
add esp, 4
lea ecx, [esp + 0x5c]
mov edx, eax
call fcn.0040e550
add esp, 4
lea ecx, [esp + 0x40]
push eax
call fcn.004097e0
lea ecx, [esp + 0x58]
call fcn.004097a0
lea ecx, [esp + 0xc]
call fcn.004097a0
lea eax, [esp + 0x150]
push eax
lea ecx, [esp + 0x10]
call fcn.00409860
cmp dword [esp + 0x3c], 8
lea edx, [esp + 0x28]
lea ecx, [esp + 0xc]
cmovae edx, dword [esp + 0x28]
cmp dword [esp + 0x20], 8
cmovae ecx, dword [esp + 0xc]
sub esp, 8
call fcn.00415fb0
add esp, 8
lea ecx, [esp + 0xc]
mov bl, al
call fcn.004097a0
test bl, bl
je 0x40905c
cmp dword [esp + 0x54], 8
lea ecx, [esp + 0x40]
lea edx, [esp + 0x24]
cmovae ecx, dword [esp + 0x40]
call fcn.00407030
cmp dword [esp + 0x3c], 8
lea ecx, [esp + 0x28]
mov bh, al
cmovae ecx, dword [esp + 0x28]
call fcn.004160f0
lea ecx, [esp + 0x70]
call fcn.004097a0
lea ecx, [esp + 0x28]
call fcn.004097a0
lea ecx, [esp + 0x88]
call fcn.004097a0
test bh, bh
jne 0x408e79
lea eax, [esp + 0x24]
mov edx, 1
push eax
mov ecx, 0x474a94
call fcn.00405ee0
add esp, 4
lea eax, [esp + 0x24]
mov edx, 2
mov ecx, 0x474a94
push eax
call fcn.00405ee0
jmp 0x408e76
lea eax, [esp + 0x24]
mov edx, 1
push eax
mov ecx, 0x474a94
call fcn.00405ee0
add esp, 4
lea eax, [esp + 0x24]
mov edx, 2
mov ecx, 0x474a94
push eax
call fcn.00405ee0
add esp, 4
jmp case.default.0x4086c2
lea eax, [esp + 0x24]
xor edx, edx
push eax
call fcn.00405fe0
add esp, 4
jmp case.default.0x4086c2
lea ecx, [esp + 0x24]
call fcn.00406090
jmp case.default.0x4086c2
mov dl, byte [0x474aa0]
push ecx
mov cl, byte [0x474aa2]
call fcn.004062a0
add esp, 4
jmp 0x40913e
mov ecx, 0x474a94
call fcn.00406440
jmp 0x40913e
mov dl, byte [0x474aa0]
mov ecx, 0x474a94
push 0x474aa4
push 0x474abc
call fcn.004068d0
add esp, 8
mov dword [esp + 0x24], eax
call fcn.00405030
mov ecx, dword [esp + 0x564]
mov eax, dword [esp + 0x24]
pop esi
pop ebx
xor ecx, esp
call fcn.0041e04a
mov esp, ebp
pop ebp
ret 8