Function at 0x415f80
Capabilities:
Check if file exists
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x4c576f
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x4e5d60]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e5d60]
xor eax, esp
push eax
lea eax, [esp + 0x298]
mov dword fs:[0], eax
xor ebp, ebp
lea ebx, [esp + 0x18]
mov edi, str.Deactivate
mov dword [esp + 0x18], ebp
call fcn.004109a0
test eax, eax
je 0x415fdd
cmp dword [esp + 0x18], ebp
jne 0x41688d
mov dword [esp + 0x48], ebp
call fcn.0040fc70
push eax
lea ecx, [esp + 0x18]
call fcn.0040f300
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x2a4], ebp
call fcn.0041b820
lea ecx, [esp + 0x48]
push ecx
push 0x20019
push ebp
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Pathschrome.exe
mov byte [esp + 0x2b0], 1
mov ebx, 5
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41607c
lea ebx, [esp + 0x2c]
call fcn.0041b950
mov edx, dword [esp + 0x40]
push edx
call fcn.00498c5e
mov eax, dword [esp + 0x30]
add esp, 4
push eax
mov dword [esp + 0x44], ebp
call fcn.00498c5e
mov dword [esp + 0x2a4], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x416881
mov ecx, dword [esp + 0x48]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
push 0x1c
lea edx, [esp + 0x94]
push edx
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov word [esp + 0x74], ax
lea eax, [esp + 0x8c]
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], ebp
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4160c0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x90]
lea esi, [esp + 0x74]
call fcn.0040cb10
lea ecx, [esp + 0x1c]
push str.GoogleChromeUser_DataLocal_State
push ecx
lea edi, [esp + 0x94]
mov byte [esp + 0x2a8], 2
call fcn.00401bb0
add esp, 8
mov byte [esp + 0x2a0], 3
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x416186
cmp dword [esp + 0x88], 8
mov edi, dword [esp + 0x74]
jae 0x41612a
lea edi, [esp + 0x74]
lea eax, [esp + 0x24]
push str.GoogleChromeUser_DataDefault
push eax
call fcn.00401bb0
add esp, 8
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x2a4], 4
call fcn.0040ebc0
mov byte [esp + 0x2a0], 3
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416176
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
jmp 0x416335
mov edx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
xor edi, edi
call fcn.00418690
add esp, 8
mov byte [esp + 0x2a0], bl
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp - 0xc]
test eax, eax
jl 0x4162b9
push str._profile_
push ebp
call fcn.004a6d30
add esp, 8
test eax, eax
je 0x4162b9
sub eax, ebp
sar eax, 1
test eax, eax
jle 0x4162b9
mov ecx, eax
mov edx, str._last_used_
lea esi, [esp + 0x18]
call fcn.0040abd0
test eax, eax
jle 0x4162b9
add eax, 0xb
push eax
push 0x3a
mov ecx, esi
call fcn.0040ab90
test eax, eax
jle 0x4162b9
inc eax
push eax
push 0x22
mov ecx, esi
call fcn.0040ab90
mov esi, eax
inc esi
push esi
push 0x22
lea ecx, [esp + 0x20]
call fcn.0040ab90
sub eax, esi
push eax
push esi
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x24]
call fcn.0040ac60
lea edx, [esp + 0x24]
push str.GoogleChromeUser_Data
mov bl, 6
push edx
lea edi, [esp + 0x94]
mov byte [esp + 0x2a8], bl
call fcn.00401bb0
add esp, 8
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x2a4], 7
call fcn.0040ebc0
lea ecx, [esp + 0x24]
mov byte [esp + 0x2a0], bl
call fcn.0040ed20
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00401bb0
add esp, 8
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x2a4], 8
call fcn.0040ebc0
lea ecx, [esp + 0x24]
call fcn.0040ed20
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
lea ecx, [esp + 0x20]
mov edi, 1
call fcn.0040ed20
lea eax, [ebp - 0x10]
mov byte [esp + 0x2a0], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4162dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x416333
lea ebx, [esp + 0x2c]
call fcn.0041b950
mov eax, dword [esp + 0x1c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
push eax
call fcn.0040ec90
add esp, 4
mov ecx, ebx
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00402260
mov eax, dword [esp + 0x1c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
push eax
call fcn.0040ec90
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00401e20
mov dword [esp + 0x28], eax
xor ebp, ebp
lea ebx, [esp + 0x20]
mov edi, str.Deactivate
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], ebp
call fcn.004109a0
test eax, eax
je 0x416359
cmp dword [esp + 0x20], ebp
jne 0x416624
lea ebx, [esp + 0x18]
mov edi, str.dwHomepage
call fcn.004109a0
test eax, eax
je 0x416382
mov eax, dword [esp + 0x18]
cmp eax, ebp
jbe 0x416382
shr eax, 1
not eax
and eax, 1
cmp eax, ebp
je 0x416624
cmp dword [esp + 0x28], 5
jne 0x416459
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], 1
jle 0x4163a8
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x18]
call fcn.0040f010
mov eax, dword [esp + 0x14]
push eax
call fcn.004168c0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
add esp, 4
push ecx
push eax
call fcn.004a7602
add esp, 8
cmp eax, ebp
jl 0x41644f
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx - 8]
jg 0x41644f
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
mov byte [esp + 0x2a0], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416408
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x70]
call fcn.0040b1c0
lea eax, [esp + 0x2c]
call fcn.0041b890
mov dword [esp + 0x2a0], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416445
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x41688f
push 0x80070057
call fcn.0040f160
mov eax, dword [esp + 0x44]
cmp eax, ebp
jne 0x41648a
lea ecx, [esp + 0x1c]
call fcn.0040ed20
lea esi, [esp + 0x70]
call fcn.0040b1c0
lea eax, [esp + 0x2c]
call fcn.0041b890
lea ecx, [esp + 0x14]
call fcn.0040ed20
jmp 0x41688d
mov dword [esp + 0x18], 1
mov dword [esp + 0x20], ebp
cmp eax, ebp
jbe 0x4165a2
mov edi, edi
call fcn.004990cf
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
je 0x41661a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
lea eax, [esp + 0x2c]
mov byte [esp + 0x2a0], 9
call fcn.0041b8c0
xor ecx, ecx
push 0xffffffffffffffff
mov word [esp + 0x5c], cx
mov edi, 7
push ebp
lea ecx, [esp + 0x5c]
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebp
call fcn.0040bbd0
lea eax, [esp + 0x2c]
mov byte [esp + 0x2a0], 0xa
call fcn.0041b910
mov eax, dword [esp + 0x58]
mov ebx, 8
cmp dword [esp + 0x6c], ebx
jae 0x416519
lea eax, [esp + 0x58]
push eax
lea edx, [esp + 0x2c]
push 0x4d3514
push edx
call fcn.0040e520
mov esi, dword [esp + 0x34]
add esp, 0xc
mov ecx, esi
call fcn.0041aeb0
test eax, eax
jne 0x41653f
mov dword [esp + 0x18], ebp
cmp dword [esp + 0x6c], ebx
jb 0x416552
mov eax, dword [esp + 0x58]
push eax
call fcn.00498c5e
add esp, 4
xor ecx, ecx
lea eax, [esi - 0x10]
mov word [esp + 0x58], cx
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebp
mov byte [esp + 0x2a0], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x416585
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x44]
jb 0x4164a0
cmp dword [esp + 0x18], ebp
je 0x4167e3
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], 1
jle 0x4165bd
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x18]
call fcn.0040f010
mov eax, dword [esp + 0x14]
push eax
call fcn.004168c0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
add esp, 4
push ecx
push eax
call fcn.004a7602
add esp, 8
cmp eax, ebp
jl 0x41644f
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx - 8]
jg 0x41644f
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x14]
xor edx, edx
mov word [ecx + eax*2], dx
mov byte [esp + 0x2a0], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4163fc
push 0x80004005
call fcn.0040f160
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], 1
cmp eax, ebp
je 0x41676f
mov dword [esp + 0x20], ebp
jbe 0x41678c
call fcn.004990cf
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
je 0x41661a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
lea eax, [esp + 0x2c]
mov byte [esp + 0x2a0], 0xb
call fcn.0041b8c0
xor ecx, ecx
push 0xffffffffffffffff
mov word [esp + 0x5c], cx
push ebp
lea ecx, [esp + 0x5c]
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], ebp
call fcn.0040bbd0
mov byte [esp + 0x2a0], 0xc
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x40]
mov esi, eax
cmp eax, ebp
jne 0x4166ad
call fcn.004a7f7d
mov edi, dword [edi + 4]
cmp esi, ebp
je 0x4166b8
mov eax, dword [esi]
jmp 0x4166ba
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x4166c4
call fcn.004a7f7d
push edi
push esi
lea ebx, [esp + 0x54]
lea edi, [esp + 0x34]
call fcn.0041bca0
mov eax, dword [esp + 0x58]
mov edi, 8
cmp dword [esp + 0x6c], edi
jae 0x4166e6
lea eax, [esp + 0x58]
push eax
lea edx, [esp + 0x2c]
push 0x4d3514
push edx
call fcn.0040e520
mov esi, dword [esp + 0x34]
add esp, 0xc
mov ecx, esi
call fcn.0041aeb0
test eax, eax
jne 0x41670c
mov dword [esp + 0x18], ebp
cmp dword [esp + 0x6c], edi
jb 0x41671f
mov eax, dword [esp + 0x58]
push eax
call fcn.00498c5e
add esp, 4
xor ecx, ecx
lea eax, [esi - 0x10]
mov word [esp + 0x58], cx
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], ebp
mov byte [esp + 0x2a0], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x416756
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x44]
jb 0x416642
cmp dword [esp + 0x18], ebp
jne 0x41678c
lea ebx, [esp + 0x24]
mov edi, str.dwReport
mov dword [esp + 0x24], ebp
call fcn.004109a0
test eax, eax
je 0x4167e3
test byte [esp + 0x24], 0x20
jne 0x4167e3
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], 1
jle 0x4167a7
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x18]
call fcn.0040f010
mov eax, dword [esp + 0x14]
push eax
call fcn.004168c0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
add esp, 4
push ecx
push eax
call fcn.004a7602
add esp, 8
cmp eax, ebp
jl 0x41644f
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx - 8]
jg 0x41644f
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x14]
xor edx, edx
mov word [ecx + eax*2], dx
mov byte [esp + 0x2a0], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41680b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x88], 8
jb 0x416822
mov ecx, dword [esp + 0x74]
push ecx
call fcn.00498c5e
add esp, 4
xor edx, edx
lea ebx, [esp + 0x2c]
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], ebp
mov word [esp + 0x74], dx
call fcn.0041b950
mov eax, dword [esp + 0x40]
push eax
call fcn.00498c5e
mov ecx, dword [esp + 0x30]
add esp, 4
push ecx
mov dword [esp + 0x44], ebp
call fcn.00498c5e
mov dword [esp + 0x2a4], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
add esp, 4
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41688d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x298]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.004a6859
add esp, 0x290
ret