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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c31c1
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x1022b584]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x228], ecx
push 0
push 0x1c
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor ebx, ebx
mov dword [ebp - 0x224], ebx
call fcn.1000ed90
mov ecx, eax
test ecx, ecx
je 0x10021ba4
lea esi, [ebp - 0x218]
shr esi, 0x10
or edi, 0xffffffff
mov dword [ebp - 0x22c], esi
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x218]
test esi, esi
jne 0x10021950
movzx eax, ax
lea ecx, [ebp - 0x21c]
push eax
call fcn.1000f350
jmp 0x10021975
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10021953
sub eax, edx
lea ecx, [ebp - 0x21c]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.1000f6e0
mov dword [ebp - 4], 1
test ebx, ebx
jne 0x10021a08
mov esi, dword [ebp - 0x21c]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x100219b4
push 0x104
lea ecx, [ebp - 0x21c]
call fcn.1000f500
mov esi, dword [ebp - 0x21c]
cmp dword [esi - 8], 0x104
jl 0x10021bae
push str.GoogleChromeUser_DataDefault
xor eax, eax
mov dword [esi - 0xc], 0x104
push esi
mov word [esi + 0x208], ax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [esi - 8]
push esi
call fcn.101952b4
add esp, 8
test eax, eax
js 0x10021bae
cmp eax, dword [esi - 8]
jg 0x10021bae
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
jmp 0x10021ade
call fcn.1000ed90
mov ecx, eax
test ecx, ecx
je 0x10021ba4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
push ebx
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 2
push str.GoogleChromeUser_DataProfile__d
push eax
call fcn.100132f0
mov esi, dword [ebp - 0x21c]
mov ecx, 1
add esp, 0xc
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x10021a6e
push 0x104
lea ecx, [ebp - 0x21c]
call fcn.1000f500
mov esi, dword [ebp - 0x21c]
cmp dword [esi - 8], 0x104
jl 0x10021bae
mov edi, dword [ebp - 0x220]
xor eax, eax
push edi
mov dword [esi - 0xc], 0x104
push esi
mov word [esi + 0x208], ax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [esi - 8]
push esi
call fcn.101952b4
add esp, 8
test eax, eax
js 0x10021bae
cmp eax, dword [esi - 8]
jg 0x10021bae
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
add edi, 0xfffffff0
mov byte [ebp - 4], 1
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10021adb
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
or edi, 0xffffffff
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10021b6c
mov edi, dword [ebp - 0x228]
mov ebx, dword [edi + 8]
cmp dword [edi + 0xc], ebx
je 0x10021b12
lea eax, [esi - 0x10]
push eax
call fcn.100121a0
add eax, 0x10
add esp, 4
mov dword [ebx], eax
add dword [edi + 8], 4
jmp 0x10021b28
lea eax, [ebp - 0x21c]
push eax
push ebx
lea ecx, [edi + 4]
call fcn.10019380
mov esi, dword [ebp - 0x21c]
mov ebx, dword [ebp - 0x224]
or edi, 0xffffffff
inc ebx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x224], ebx
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10021b56
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.1000ed90
mov ecx, eax
test ecx, ecx
je 0x10021ba4
mov esi, dword [ebp - 0x22c]
jmp 0x10021920
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x10021b88
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101799ce
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10009b10
push 0x80070057
call fcn.10009b10
int3