Function at 0x41ef60
Capabilities:
Check if file exists
Copy file
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b243
mov eax, dword fs:[0]
push eax
sub esp, 0x324
mov eax, dword [0x60f074]
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 edi, ecx
mov dword [ebp - 0x16c], edi
xor ebx, ebx
lea esi, [edi + 4]
mov dword [ebp - 0x160], ebx
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41efab
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne byte [ebp - 0x159]
test eax, eax
jne 0x41f069
push 3
push 0x5c2248
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
call fcn.00405c70
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x58]
mov ecx, esi
push eax
call fcn.00476ff0
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0xffffffff
call fcn.00405c10
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41f054
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x41f025
mov ecx, dword [esi]
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
push 0
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41f044
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne byte [ebp - 0x159]
lea ecx, [ebp - 0x58]
call fcn.00405c10
cmp byte [ebp - 0x159], 0
je 0x41f5f9
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x88]
push esi
mov dword [ebp - 0x8c], vtable.JSONFileValueSerializer.0
call fcn.00405a50
push 0
push 0
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 2
call fcn.005343c0
mov esi, eax
mov dword [ebp - 0x170], esi
mov byte [ebp - 4], 3
test esi, esi
je 0x41f5cd
xorps xmm0, xmm0
lea ecx, [ebp - 0x158]
movlpd qword [ebp - 0x180], xmm0
call fcn.00408250
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 4
call fcn.00472aa0
mov eax, dword [edi + 0x20]
lea ecx, [ebp - 0x180]
push esi
push ecx
lea ecx, [ebp - 0x158]
push dword [eax + 4]
push dword [eax]
call fcn.00408750
mov esi, dword [edi + 0x20]
mov ebx, dword [ebp - 0x17c]
mov edx, dword [ebp - 0x180]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x184], ecx
cmp ebx, ecx
jg 0x41f11b
jl 0x41f11f
cmp edx, eax
jb 0x41f11f
mov eax, edx
mov ecx, ebx
mov dword [esi + 0x10], eax
lea eax, [ebp - 0xe4]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 0x20]
lea edx, [ecx + 0x18]
cmp edx, eax
je 0x41f154
cmp dword [ebp - 0xd0], 0x10
mov ecx, edx
push dword [ebp - 0xd4]
cmovae eax, dword [ebp - 0xe4]
push eax
call fcn.00403690
mov ecx, dword [edi + 0x20]
lea edx, [ecx + 0x30]
lea eax, [ebp - 0xcc]
cmp edx, eax
je 0x41f180
cmp dword [ebp - 0xb8], 0x10
mov ecx, edx
push dword [ebp - 0xbc]
cmovae eax, dword [ebp - 0xcc]
push eax
call fcn.00403690
mov ecx, dword [edi + 0x20]
mov al, byte [ebp - 0x158]
mov byte [ecx + 0x48], al
mov esi, dword [0x61f27c]
test esi, esi
jne 0x41f280
push 0x14
push str.Bookmarks.DecodeTime
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00403690
push esi
push 0xa
lea ecx, [ebp - 0x190]
mov byte [ebp - 4], 5
call fcn.0041ed00
push 0
push 1
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov dword [ebp - 0x164], ecx
lea ecx, [ebp - 0x198]
call fcn.0041ed30
add esp, 0x10
mov ebx, dword [eax]
mov edi, dword [eax + 4]
push 0
push 0x3e8
push esi
push dword [ebp - 0x164]
call fcn.00594730
push 0
push 0x3e8
push edi
push ebx
mov esi, eax
mov dword [ebp - 0x164], edx
call fcn.00594730
sub esp, 8
mov dword [ebp - 0x164], edx
mov edx, eax
lea ecx, [ebp - 0x28]
push esi
call fcn.0047a300
mov byte [ebp - 4], 4
add esp, 0xc
mov edx, dword [ebp - 0x14]
mov esi, eax
cmp edx, 0x10
jb 0x41f262
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41f258
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f6d8
push edx
push ecx
call fcn.0055053d
add esp, 8
mov edi, dword [ebp - 0x16c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [0x61f27c], esi
cmp dword [0x61a268], 1
jne 0x41f32b
cmp dword [0x61a250], 3
jg 0x41f32b
cmp dword [esi + 0x1c], 0x10
lea ecx, [esi + 8]
jb 0x41f2a6
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x18]
push 0x14
push str.Bookmarks.DecodeTime
call fcn.00404110
add esp, 8
test al, al
jne 0x41f32b
sub esp, 8
mov dword [ebp - 0x280], 3
lea ecx, [ebp - 0x278]
call fcn.0040bae0
mov dword [ebp - 0x1dc], str.f:my_lab_tabexplorerextab_master_srcchrome_bookmark_bookmark_storage.cc
mov dword [ebp - 0x1d8], 0x56
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1d4], eax
push 0x56
push str.f:my_lab_tabexplorerextab_master_srcchrome_bookmark_bookmark_storage.cc
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 7
call fcn.0046c190
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x278]
mov ebx, 1
mov edx, str.Check_failed:_histogram_pointer__histogram_name_____Bookmarks.DecodeTime_.
mov dword [ebp - 0x160], ebx
call fcn.00403840
jmp 0x41f331
mov ebx, dword [ebp - 0x160]
mov dword [ebp - 4], 4
test bl, 1
je 0x41f351
and ebx, 0xfffffffe
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x160], ebx
call fcn.0046c520
push dword [ebp - 0x174]
lea eax, [ebp - 0x1a0]
push dword [ebp - 0x178]
lea ecx, [ebp - 0x1a8]
push eax
call fcn.00472aa0
mov ecx, eax
call fcn.0041ed60
push 0
push 0x3e8
push dword [eax + 4]
push dword [eax]
call fcn.00594730
push eax
mov ecx, esi
call fcn.0047a480
lea ecx, [ebp - 0x1b0]
call fcn.00472aa0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x174], eax
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x178], ecx
mov ecx, edi
push dword [eax]
call fcn.0041f6f0
mov eax, dword [edi + 0x20]
mov ecx, edi
push dword [eax + 4]
call fcn.0041f6f0
mov esi, dword [0x61f278]
test esi, esi
jne 0x41f4af
push 0x21
push str.Bookmarks.CreateBookmarkIndexTime
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.00403690
push esi
push 0xa
lea ecx, [ebp - 0x1b8]
mov byte [ebp - 4], 9
call fcn.0041ed00
push 0
push 1
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov dword [ebp - 0x164], ecx
lea ecx, [ebp - 0x1c0]
call fcn.0041ed30
add esp, 0x10
mov ebx, dword [eax]
mov edi, dword [eax + 4]
push 0
push 0x3e8
push esi
push dword [ebp - 0x164]
call fcn.00594730
push 0
push 0x3e8
push edi
push ebx
mov esi, eax
call fcn.00594730
sub esp, 8
lea ecx, [ebp - 0x40]
mov edx, eax
push esi
call fcn.0047a300
mov byte [ebp - 4], 4
add esp, 0xc
mov edx, dword [ebp - 0x2c]
mov esi, eax
cmp edx, 0x10
jb 0x41f491
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41f487
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f6dd
push edx
push ecx
call fcn.0055053d
add esp, 8
mov edi, dword [ebp - 0x16c]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov dword [0x61f278], esi
cmp dword [0x61a268], 1
jne 0x41f55e
cmp dword [0x61a250], 3
jg 0x41f55e
cmp dword [esi + 0x1c], 0x10
lea ecx, [esi + 8]
jb 0x41f4d5
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x18]
push 0x21
push str.Bookmarks.CreateBookmarkIndexTime
call fcn.00404110
add esp, 8
test al, al
jne 0x41f55e
sub esp, 8
mov dword [ebp - 0x330], 3
lea ecx, [ebp - 0x328]
call fcn.0040bae0
mov dword [ebp - 0x28c], str.f:my_lab_tabexplorerextab_master_srcchrome_bookmark_bookmark_storage.cc
mov dword [ebp - 0x288], 0x5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x284], eax
push 0x5c
push str.f:my_lab_tabexplorerextab_master_srcchrome_bookmark_bookmark_storage.cc
lea ecx, [ebp - 0x330]
mov byte [ebp - 4], 0xb
call fcn.0046c190
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x328]
mov ebx, dword [ebp - 0x160]
mov edx, str.Check_failed:_histogram_pointer__histogram_name_____Bookmarks.CreateBookmarkIndexTime_.
or ebx, 2
mov dword [ebp - 0x160], ebx
call fcn.00403840
jmp 0x41f564
mov ebx, dword [ebp - 0x160]
mov dword [ebp - 4], 4
test bl, 2
je 0x41f57e
lea ecx, [ebp - 0x330]
and ebx, 0xfffffffd
call fcn.0046c520
push dword [ebp - 0x174]
lea eax, [ebp - 0x1c8]
push dword [ebp - 0x178]
lea ecx, [ebp - 0x1d0]
push eax
call fcn.00472aa0
mov ecx, eax
call fcn.0041ed60
push 0
push 0x3e8
push dword [eax + 4]
push dword [eax]
call fcn.00594730
push eax
mov ecx, esi
call fcn.0047a480
lea ecx, [ebp - 0x158]
call fcn.004082d0
mov esi, dword [ebp - 0x170]
mov byte [ebp - 4], 0xd
test esi, esi
je 0x41f5dd
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x8c], vtable.JSONFileValueSerializer.0
call fcn.00405c10
mov esi, dword [edi + 0x1c]
push 0x30
call fcn.00550175
mov edi, eax
add esp, 4
mov dword [ebp - 0x170], edi
mov al, byte [ebp - 0x159]
lea ecx, [ebp - 0xa4]
mov dword [ebp - 4], 0xe
mov byte [ebp - 0xa8], al
mov eax, dword [ebp - 0x16c]
add eax, 4
push eax
call fcn.00405a50
or ebx, 8
or ebx, 4
mov dword [ebp - 0x160], ebx
mov dword [ebp - 4], 0x10
lea ecx, [edi + 0x10]
mov dword [ebp - 0x164], ecx
mov al, byte [ebp - 0xa8]
mov dword [edi], vtable.._AV__RunnableMethod_VBookmarkStorage__P81_AEX_NABVFilePath___ZU__Tuple2__NVFilePath______.0
mov dword [edi + 4], esi
mov dword [edi + 8], 0x41fea0
mov dword [edi + 0xc], 0
mov byte [ecx], al
lea eax, [ebp - 0xa4]
add ecx, 4
push eax
mov dword [ebp - 0x164], ecx
call fcn.00405a50
mov eax, dword [edi + 4]
mov ecx, 1
add eax, 8
lock xadd dword [eax], ecx
lea ecx, [ebp - 0xa4]
mov dword [ebp - 4], 0xffffffff
call fcn.00405c10
call fcn.0046fec0
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.0046e090
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.00550156
mov esp, ebp
pop ebp
ret
call fcn.00572795
call fcn.00572795
int3