Function at 0x41a1f0
Capabilities:
Check if file exists
Create directory
Get common file path
Get startup folder
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a96d
mov eax, dword fs:[0]
push eax
sub esp, 0x6a8
mov eax, dword [0x60f074]
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 ebx, ecx
mov dword [ebp - 0x6a4], ebx
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x6a8], eax
cmp dword [0x61a268], 1
mov dword [ebp - 0x6a0], eax
jne 0x41a28a
cmp dword [0x61a250], 3
jg 0x41a28a
test esi, esi
jne 0x41a28a
push 3
push 0x24a
push str.f:my_lab_tabexplorerextab_master_srcchrome_bookmark_bookmark_model.cc
lea ecx, [ebp - 0x5cc]
call fcn.0046c100
mov ecx, 1
mov dword [ebp - 4], esi
mov dword [ebp - 0x6a0], ecx
mov edx, str.Check_failed:_details_delete_me.
mov dword [ebp - 0x6a8], ecx
lea ecx, [eax + 8]
call fcn.00403840
mov eax, 1
test al, 1
je 0x41a2a2
and eax, 0xfffffffe
lea ecx, [ebp - 0x5cc]
mov dword [ebp - 0x6a0], eax
call fcn.0046c520
mov dword [ebp - 0x6b4], esi
mov dword [ebp - 4], 1
cmp byte [ebx + 0xc], 0
je 0x41a323
cmp dword [0x61a268], 1
jne 0x41a304
cmp dword [0x61a250], 3
jg 0x41a304
push 3
push 0x24e
push str.f:my_lab_tabexplorerextab_master_srcchrome_bookmark_bookmark_model.cc
lea ecx, [ebp - 0x5cc]
call fcn.0046c100
mov byte [ebp - 4], 2
mov edx, str.Check_failed:_false.
mov ecx, dword [ebp - 0x6a0]
or ecx, 2
mov dword [ebp - 0x6a0], ecx
mov dword [ebp - 0x6a8], ecx
lea ecx, [eax + 8]
call fcn.00403840
mov ecx, dword [ebp - 0x6a0]
test cl, 2
je 0x41ae4e
lea ecx, [ebp - 0x5cc]
call fcn.0046c520
jmp 0x41ae4e
mov ecx, dword [esi + 0x14]
lea edi, [esi + 0x18]
mov eax, dword [esi + 0x10]
lea edx, [esi + 0x30]
mov dword [ebx + 0x100], eax
mov dword [ebx + 0x104], ecx
mov ecx, dword [esi + 0x44]
mov dword [ebp - 0x6b0], ecx
cmp ecx, 0x10
jb 0x41a34c
mov edx, dword [esi + 0x30]
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x6ac], edi
jb 0x41a360
mov ecx, dword [edi]
mov dword [ebp - 0x6ac], ecx
mov eax, dword [esi + 0x40]
mov ecx, dword [edi + 0x10]
push eax
push edx
mov dword [ebp - 0x6a8], ecx
mov edx, ecx
mov ecx, dword [ebp - 0x6ac]
mov dword [ebp - 0x428], eax
call fcn.00404110
add esp, 8
test al, al
jne 0x41a3a6
mov byte [ebx + 0xd], 1
mov ebx, dword [esi + 0x28]
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x40]
mov dword [ebp - 0x6a8], ebx
mov ebx, dword [ebp - 0x6a4]
jmp 0x41a3b5
mov ecx, dword [edi + 0x14]
mov eax, dword [ebp - 0x6b0]
mov edx, dword [ebp - 0x428]
cmp eax, 0x10
jb 0x41a3bf
mov eax, dword [esi + 0x30]
jmp 0x41a3c2
lea eax, [esi + 0x30]
cmp ecx, 0x10
jb 0x41a3c9
mov edi, dword [edi]
push edx
mov edx, dword [ebp - 0x6a8]
mov ecx, edi
push eax
call fcn.00404110
add esp, 8
test al, al
je 0x41a3e5
cmp byte [esi + 0x48], 0
je 0x41a3f4
mov ecx, dword [ebx + 0x140]
test ecx, ecx
je 0x41a3f4
call fcn.0041fc00
mov eax, dword [esi]
lea edx, [ebp - 0x454]
mov dword [esi], 0
mov ecx, dword [ebx + 8]
mov dword [ebx + 0xf0], eax
push edx
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 3
lea eax, [ebp - 0x454]
cmp dword [ebp - 0x440], 8
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x454]
push eax
call edi
test eax, eax
jne 0x41a453
cmp dword [ebp - 0x440], 8
lea eax, [ebp - 0x454]
push 0
cmovae eax, dword [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 9
xor eax, eax
mov dword [ebp - 0x45c], 0
push str.Bookmarks
lea ecx, [ebp - 0x46c]
mov dword [ebp - 0x458], 7
mov word [ebp - 0x46c], ax
call fcn.00405c70
lea eax, [ebp - 0x46c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x484]
push eax
lea ecx, [ebp - 0x454]
call fcn.004771f0
lea ecx, [ebp - 0x454]
mov byte [ebp - 4], 5
cmp ecx, eax
je 0x41a4c6
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x41a4b7
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x454]
call fcn.00405c70
lea ecx, [ebp - 0x484]
call fcn.00405c10
lea ecx, [ebp - 0x46c]
mov byte [ebp - 4], 3
call fcn.00405c10
cmp dword [ebp - 0x440], 8
lea eax, [ebp - 0x454]
cmovae eax, dword [ebp - 0x454]
push eax
call edi
test eax, eax
jne 0x41aca5
push 0xe0
call fcn.00550175
mov ebx, eax
add esp, 4
mov dword [ebp - 0x428], ebx
lea ecx, [ebp - 0x69c]
mov byte [ebp - 4], 6
call fcn.00551750
push eax
mov ebx, dword [ebp - 0x6a4]
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x6a0]
or eax, 4
mov dword [ebp - 0x6a0], eax
mov dword [ebp - 0x6a8], eax
mov eax, dword [ebp - 0x6a4]
mov esi, dword [eax + 0x100]
mov ecx, esi
mov edx, dword [eax + 0x104]
add ecx, 1
mov dword [ebx + 0x100], ecx
mov eax, edx
mov ecx, ebx
adc eax, 0
push edx
push esi
mov dword [ecx + 0x104], eax
mov ecx, dword [ebp - 0x428]
call fcn.00418850
mov ebx, eax
mov dword [ebp - 0x6ac], ebx
lea ecx, [ebp - 0x69c]
mov dword [ebp - 4], 3
call fcn.0040a130
lea ecx, [ebp - 0x42c]
call fcn.004728f0
push eax
mov ecx, ebx
call fcn.00408230
mov edx, 0xa7
lea ecx, [ebp - 0x484]
call fcn.004e67f0
push eax
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 9
call fcn.00405a50
mov eax, dword [ebp - 0x6a0]
and eax, 0xfffffffb
or eax, 0x80
mov dword [ebp - 0x6a0], eax
lea ecx, [ebx + 4]
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x43c]
cmp ecx, eax
je 0x41a606
cmp dword [ebp - 0x428], 8
push dword [ebp - 0x42c]
cmovae eax, dword [ebp - 0x43c]
push eax
call fcn.00405c70
lea ecx, [ebp - 0x43c]
call fcn.00405c10
lea ecx, [ebp - 0x484]
mov byte [ebp - 4], 3
call fcn.00405c10
push 0x208
lea eax, [ebp - 0x21c]
mov dword [ebx + 0xcc], 1
push 0
push eax
call fcn.0056f6e0
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41a847
push 0xe0
call fcn.00550175
mov ebx, eax
add esp, 4
mov dword [ebp - 0x428], ebx
lea ecx, [ebp - 0x584]
mov byte [ebp - 4], 0xb
call fcn.00551750
push eax
mov ebx, dword [ebp - 0x6a4]
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x6a0]
or eax, 8
mov dword [ebp - 0x6a0], eax
mov dword [ebp - 0x6a8], eax
mov eax, dword [ebp - 0x6a4]
mov esi, dword [eax + 0x100]
mov ecx, esi
mov edx, dword [eax + 0x104]
add ecx, 1
mov dword [ebx + 0x100], ecx
mov eax, edx
mov ecx, ebx
adc eax, 0
push edx
push esi
mov dword [ecx + 0x104], eax
mov ecx, dword [ebp - 0x428]
call fcn.00418850
mov esi, eax
lea ecx, [ebp - 0x584]
mov dword [ebp - 4], 3
call fcn.0040a130
lea ecx, [ebp - 0x42c]
call fcn.004728f0
push eax
mov ecx, esi
call fcn.00408230
mov edx, 0xa8
lea ecx, [ebp - 0x4b4]
call fcn.004e67f0
push eax
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 0xe
call fcn.00405a50
mov eax, dword [ebp - 0x6a0]
and eax, 0xfffffff7
or eax, 0x200
mov dword [ebp - 0x6a0], eax
lea ecx, [esi + 4]
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x43c]
cmp ecx, eax
je 0x41a75c
cmp dword [ebp - 0x428], 8
push dword [ebp - 0x42c]
cmovae eax, dword [ebp - 0x43c]
push eax
call fcn.00405c70
lea ecx, [ebp - 0x43c]
call fcn.00405c10
lea ecx, [ebp - 0x4b4]
mov byte [ebp - 4], 3
call fcn.00405c10
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x43c]
call fcn.0040fa30
push 0x3a8
lea edx, [ebp - 0x43c]
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x484]
call fcn.00472c20
add esp, 4
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 0x12
call fcn.00405c10
lea ecx, [ebp - 0x51c]
call fcn.00551750
lea eax, [ebp - 0x484]
mov byte [ebp - 4], 0x13
push eax
lea ecx, [ebp - 0x51c]
call fcn.00551a40
lea eax, [ebp - 0x51c]
push eax
lea ecx, [esi + 0x68]
call fcn.00551880
mov edx, dword [ebp - 0x6ac]
mov ecx, edx
mov dword [esi + 0xcc], 0
push 0
push esi
mov eax, dword [edx]
call dword [eax + 8]
lea ecx, [ebp - 0x51c]
call fcn.0040a130
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x470]
cmp edx, 0x10
jb 0x41a847
mov ecx, dword [ebp - 0x484]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41a83d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ae78
push edx
push ecx
call fcn.0055053d
add esp, 8
push 0xe0
call fcn.00550175
mov ebx, eax
add esp, 4
mov dword [ebp - 0x428], ebx
lea ecx, [ebp - 0x584]
mov byte [ebp - 4], 0x14
call fcn.00551750
push eax
mov ebx, dword [ebp - 0x6a4]
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x6a0]
or eax, 0x10
mov dword [ebp - 0x6a0], eax
mov dword [ebp - 0x6a8], eax
mov eax, dword [ebp - 0x6a4]
mov esi, dword [eax + 0x100]
mov ecx, esi
mov edx, dword [eax + 0x104]
add ecx, 1
mov dword [ebx + 0x100], ecx
mov eax, edx
mov ecx, ebx
adc eax, 0
push edx
push esi
mov dword [ecx + 0x104], eax
mov ecx, dword [ebp - 0x428]
call fcn.00418850
mov esi, eax
lea ecx, [ebp - 0x584]
mov dword [ebp - 4], 3
call fcn.0040a130
lea ecx, [ebp - 0x42c]
call fcn.004728f0
push eax
mov ecx, esi
call fcn.00408230
mov edx, 0xa9
lea ecx, [ebp - 0x4b4]
call fcn.004e67f0
push eax
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 0x17
call fcn.00405a50
mov eax, dword [ebp - 0x6a0]
and eax, 0xffffffef
or eax, 0x800
mov dword [ebp - 0x6a0], eax
lea ecx, [esi + 4]
mov byte [ebp - 4], 0x18
lea eax, [ebp - 0x43c]
cmp ecx, eax
je 0x41a948
cmp dword [ebp - 0x428], 8
push dword [ebp - 0x42c]
cmovae eax, dword [ebp - 0x43c]
push eax
call fcn.00405c70
lea ecx, [ebp - 0x43c]
call fcn.00405c10
lea ecx, [ebp - 0x4b4]
mov byte [ebp - 4], 3
call fcn.00405c10
push 0x28
xor eax, eax
mov dword [ebp - 0x48c], 0
push str.::26EE0668_A00A_44D7_9371_BEB064C98683
lea ecx, [ebp - 0x49c]
mov dword [ebp - 0x488], 7
mov word [ebp - 0x49c], ax
call fcn.00405c70
push 0x3a8
lea edx, [ebp - 0x49c]
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x46c]
call fcn.00472c20
add esp, 4
lea ecx, [ebp - 0x634]
mov byte [ebp - 4], 0x1a
call fcn.00551750
lea eax, [ebp - 0x46c]
mov byte [ebp - 4], 0x1b
push eax
lea ecx, [ebp - 0x634]
call fcn.00551a40
lea eax, [ebp - 0x634]
push eax
lea ecx, [esi + 0x68]
call fcn.00551880
mov ecx, dword [ebp - 0x6ac]
mov dword [esi + 0xcc], 0
push 0
push esi
mov eax, dword [ecx]
call dword [eax + 8]
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.0056f6e0
add esp, 0xc
lea eax, [ebp - 0x424]
push 0
push 8
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41ac15
push 0xe0
call fcn.00550175
mov ebx, eax
add esp, 4
mov dword [ebp - 0x428], ebx
lea ecx, [ebp - 0x584]
mov byte [ebp - 4], 0x1c
call fcn.00551750
push eax
mov ebx, dword [ebp - 0x6a4]
mov byte [ebp - 4], 0x1d
mov eax, dword [ebp - 0x6a0]
or eax, 0x20
mov dword [ebp - 0x6a0], eax
mov dword [ebp - 0x6a8], eax
mov eax, dword [ebp - 0x6a4]
mov esi, dword [eax + 0x100]
mov ecx, esi
mov edx, dword [eax + 0x104]
add ecx, 1
mov dword [ebx + 0x100], ecx
mov eax, edx
mov ecx, ebx
adc eax, 0
push edx
push esi
mov dword [ecx + 0x104], eax
mov ecx, dword [ebp - 0x428]
call fcn.00418850
mov esi, eax
lea ecx, [ebp - 0x584]
mov dword [ebp - 4], 0x1b
call fcn.0040a130
lea ecx, [ebp - 0x42c]
call fcn.004728f0
push eax
mov ecx, esi
call fcn.00408230
mov edx, 0xaa
lea ecx, [ebp - 0x4b4]
call fcn.004e67f0
push eax
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 0x1f
call fcn.00405a50
mov eax, dword [ebp - 0x6a0]
and eax, 0xffffffdf
or eax, 0x2000
mov dword [ebp - 0x6a0], eax
lea ecx, [esi + 4]
mov byte [ebp - 4], 0x20
lea eax, [ebp - 0x43c]
cmp ecx, eax
je 0x41ab2c
cmp dword [ebp - 0x428], 8
push dword [ebp - 0x42c]
cmovae eax, dword [ebp - 0x43c]
push eax
call fcn.00405c70
lea ecx, [ebp - 0x43c]
call fcn.00405c10
lea ecx, [ebp - 0x4b4]
mov byte [ebp - 4], 0x1b
call fcn.00405c10
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x43c]
call fcn.0040fa30
push 0x3a8
lea edx, [ebp - 0x43c]
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x484]
call fcn.00472c20
add esp, 4
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 0x23
call fcn.00405c10
lea ecx, [ebp - 0x51c]
call fcn.00551750
lea eax, [ebp - 0x484]
mov byte [ebp - 4], 0x24
push eax
lea ecx, [ebp - 0x51c]
call fcn.00551a40
lea eax, [ebp - 0x51c]
push eax
lea ecx, [esi + 0x68]
call fcn.00551880
mov ecx, dword [ebp - 0x6ac]
mov dword [esi + 0xcc], 0
push 0
push esi
mov eax, dword [ecx]
call dword [eax + 8]
lea ecx, [ebp - 0x51c]
call fcn.0040a130
mov byte [ebp - 4], 0x1b
mov edx, dword [ebp - 0x470]
cmp edx, 0x10
jb 0x41ac15
mov ecx, dword [ebp - 0x484]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41ac0b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ae7d
push edx
push ecx
call fcn.0055053d
add esp, 8
mov ebx, dword [ebp - 0x6a4]
mov edx, dword [ebp - 0x6ac]
push 0
push edx
mov ecx, dword [ebx + 0xf0]
mov eax, dword [ecx]
call dword [eax + 8]
lea ecx, [ebp - 0x634]
call fcn.0040a130
mov byte [ebp - 4], 0x19
mov edx, dword [ebp - 0x458]
cmp edx, 0x10
jb 0x41ac78
mov ecx, dword [ebp - 0x46c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41ac6e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ae82
push edx
push ecx
call fcn.0055053d
add esp, 8
lea ecx, [ebp - 0x49c]
mov dword [ebp - 0x45c], 0
mov dword [ebp - 0x458], 0xf
mov byte [ebp - 0x46c], 0
mov byte [ebp - 4], 3
call fcn.00405c10
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
mov dword [esi + 4], 0
mov dword [ebx + 0xf4], eax
mov edi, dword [esi + 8]
mov dword [esi + 8], 0
mov ecx, dword [ebx + 0x144]
cmp edi, ecx
je 0x41acd9
test ecx, ecx
je 0x41acd3
push ecx
call fcn.0041bc40
mov dword [ebx + 0x144], edi
mov eax, dword [ebx + 0x10]
lea edi, [ebx + 0x10]
push 0
push dword [ebx + 0xf0]
mov ecx, edi
call dword [eax + 8]
mov eax, dword [edi]
mov ecx, edi
push 1
push dword [ebx + 0xf4]
call dword [eax + 8]
lea esi, [ebx + 0x128]
push esi
mov dword [ebp - 0x428], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov ecx, ebx
mov byte [ebp - 4], 0x25
call fcn.0041b440
push esi
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebx + 0x148]
mov byte [ebx + 0xc], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea eax, [ebx + 0x108]
push eax
lea ecx, [ebp - 0x434]
call fcn.0041b9d0
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 0x26
call fcn.0041b8d0
test eax, eax
je 0x41ad76
nop word [eax + eax]
mov edx, dword [eax]
mov ecx, eax
push ebx
call dword [edx]
lea ecx, [ebp - 0x434]
call fcn.0041b8d0
test eax, eax
jne 0x41ad60
mov byte [ebp - 4], 0x27
mov edx, dword [ebp - 0x434]
test edx, edx
je 0x41adae
test dword [ebp - 0x6a0], 0x4000
mov esi, edx
je 0x41ada3
lea ecx, [ebp - 0x5cc]
call fcn.0046c520
mov edx, dword [ebp - 0x434]
mov al, byte [esi + 5]
test al, al
je 0x41adae
mov al, 1
jmp 0x41adb0
xor al, al
test al, al
je 0x41ade6
cmp dword [ebp - 0x430], 0
je 0x41ade6
lea ecx, [ebp - 0x434]
call fcn.00413860
add dword [eax + 0x10], 0xffffffff
jne 0x41ade0
lea ecx, [ebp - 0x434]
call fcn.00413860
mov ecx, eax
call fcn.004137e0
mov edx, dword [ebp - 0x434]
test edx, edx
je 0x41ae05
or eax, 0xffffffff
lock xadd dword [edx], eax
sub eax, 1
jne 0x41ae05
test edx, edx
je 0x41ae05
push 8
push edx
call fcn.0055053d
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebx + 8]
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x6b0], eax
call fcn.00533390
lea ecx, [ebp - 0x428]
push ecx
lea ecx, [ebp - 0x6b0]
push ecx
push 0x70
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.00532eb0
lea ecx, [ebp - 0x454]
call fcn.00405c10
mov esi, dword [ebp + 8]
test esi, esi
je 0x41ae5a
push ecx
mov ecx, esi
call fcn.0041bb00
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.00550156
mov esp, ebp
pop ebp
ret 4
call fcn.00572795
call fcn.00572795
call fcn.00572795
int3