Function at 0x403660
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c5e5d
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x4e5d60]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push esi
push edi
mov eax, dword [0x4e5d60]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
call fcn.004990cf
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4036bc
push 0x80004005
call fcn.0040f160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x278], ebx
call fcn.004990cf
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4036ed
push 0x80004005
call fcn.0040f160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x10], edi
mov byte [esp + 0x278], 1
call fcn.004990cf
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40371f
push 0x80004005
call fcn.0040f160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
push ebx
push 0x1c
lea ecx, [esp + 0x64]
push ecx
push ebx
mov byte [esp + 0x288], 3
mov dword [esp + 0x30], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x403814
lea ecx, [esp + 0x24]
mov byte [esp + 0x278], 2
call fcn.0041d5f0
lea eax, [esi - 0x10]
mov byte [esp + 0x278], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4037bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x278], bl
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4037e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x278], 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 0x40380d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x403a65
lea ecx, [esp + 0x18]
push str.GoogleChromeUser_DataDefault
push ecx
lea edi, [esp + 0x64]
call fcn.00401bb0
add esp, 8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x27c], 4
call fcn.0040ebc0
mov byte [esp + 0x278], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403864
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4038e2
lea ecx, [esp + 0x24]
mov byte [esp + 0x278], 2
call fcn.0041d5f0
lea eax, [esi - 0x10]
mov byte [esp + 0x278], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4038a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x278], bl
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4038cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x278], 0xffffffff
lea eax, [edi - 0x10]
jmp 0x4037f4
lea ecx, [esp + 0x18]
push str.Cookies
push ecx
call fcn.00401bb0
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x27c], 5
call fcn.0040ebc0
mov byte [esp + 0x278], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40392e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40396b
lea ecx, [esp + 0x24]
mov byte [esp + 0x278], 2
call fcn.0041d5f0
lea eax, [esi - 0x10]
mov byte [esp + 0x278], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4037b3
lea ecx, [esp + 0x18]
push 0x4cbdc0
push ecx
mov edi, 0x4ebd50
call fcn.00401bb0
add esp, 8
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x27c], 6
call fcn.0040ebc0
mov byte [esp + 0x278], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4039bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
push ecx
lea eax, [esp + 0x28]
call fcn.0041d510
test eax, eax
jne 0x4039fe
lea ecx, [esp + 0x24]
mov byte [esp + 0x278], 2
call fcn.0041d5f0
lea ecx, [esp + 0x1c]
call fcn.0040ed20
lea ecx, [esp + 0x10]
call fcn.0040ed20
lea ecx, [esp + 0x14]
call fcn.0040ed20
xor eax, eax
jmp 0x403a65
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x24]
call fcn.0041d670
test eax, eax
je 0x403a1c
lea ecx, [esp + 0x24]
call fcn.0041d940
mov esi, eax
jmp 0x403a20
mov esi, dword [esp + 0x20]
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x5c]
call fcn.0041d730
lea ecx, [esp + 0x24]
call fcn.0041d5f0
lea ecx, [esp + 0x24]
mov byte [esp + 0x278], 2
call fcn.0041d5f0
lea ecx, [esp + 0x1c]
call fcn.0040ed20
lea ecx, [esp + 0x10]
call fcn.0040ed20
lea ecx, [esp + 0x14]
call fcn.0040ed20
mov eax, esi
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.004a6859
mov esp, ebp
pop ebp
ret