Function at 0x1001d820
Capabilities:
Check if file exists
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c2bf3
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x1022b584]
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 dword [ebp - 0x10], esp
mov dword [ebp - 0x60], ecx
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x14]
push dword [edi]
mov dword [ebp - 0x4c], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001dc1c
mov eax, dword [edi]
push ecx
sub eax, 0x10
mov esi, esp
push eax
mov dword [ebp - 0x64], esi
call fcn.100121a0
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x5c]
push eax
call fcn.100a1380
add esp, 8
push 0x80
push dword [ebp - 0x5c]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.100acbb0
push 0xfde9
push dword [edi]
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
push eax
call fcn.100aae50
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 3
jb 0x1001d8df
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x70]
call fcn.100ad960
mov edx, dword [ebp - 0x18]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x1001d920
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001d916
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001dc3c
push edx
push ecx
call fcn.101799c0
add esp, 8
push str.insert_into_tb_fav__id___parent_id___is_folder___title___url_pos___create_time___last_modify_time___is_best___reserved_____________________________values__:id__:parent_id__:is_folder__:title__:url_:pos__:create_time__:last_modify_time__:is_best__:reserved_
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x70]
call fcn.100ad380
mov ecx, 0x3e8
mov byte [ebp - 4], 4
cmp dword [ebp + 0xc], ecx
cmovge ecx, dword [ebp + 0xc]
push ecx
push 0x101d2bcc
lea ecx, [ebp - 0x58]
call fcn.100ad1a0
push 0
push str.:parent_id
lea ecx, [ebp - 0x58]
call fcn.100ad1a0
push 0
push str.:is_folder
lea ecx, [ebp - 0x58]
call fcn.100ad1a0
mov eax, dword [ebp - 0x48]
push dword [eax]
lea eax, [ebp - 0x48]
push eax
call fcn.100a0fb0
add esp, 8
push dword [eax]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
push str.:title
call fcn.100ad130
mov edx, dword [ebp - 0x48]
or esi, 0xffffffff
mov byte [ebp - 4], 4
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001d9b2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x4c]
push dword [eax]
lea eax, [ebp - 0x4c]
push eax
call fcn.100a0fb0
add esp, 8
push dword [eax]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 6
push str.:url
call fcn.100ad130
mov edx, dword [ebp - 0x4c]
mov eax, esi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001d9f4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push str.:pos
lea ecx, [ebp - 0x58]
call fcn.100ad1a0
push str.1312729546475800001
push str.:create_time
lea ecx, [ebp - 0x58]
call fcn.100ad130
push str.1312729546475800001
push str.:last_modify_time
lea ecx, [ebp - 0x58]
call fcn.100ad130
push 0
push str.:is_best
lea ecx, [ebp - 0x58]
call fcn.100ad1a0
push 0
push str.:reserved
lea ecx, [ebp - 0x58]
call fcn.100ad1a0
lea ecx, [ebp - 0x58]
call fcn.100ad490
cmp dword [ebx + 0x24], 0
je 0x1001db0c
call fcn.1000ed90
mov ecx, eax
test ecx, ecx
je 0x1001dc41
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x48], eax
mov eax, 0x101d1840
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x48]
test eax, 0xffff0000
jne 0x1001da8f
movzx eax, ax
push eax
call fcn.1000f350
jmp 0x1001da9b
push 0
push 0x101d1840
call fcn.1000f6e0
mov ecx, dword [ebp - 0x60]
lea edx, [ebp - 0x4c]
push edx
mov byte [ebp - 4], 8
mov eax, dword [ecx]
call dword [eax]
mov edx, eax
mov ecx, dword [ebx + 0x24]
mov byte [ebp - 4], 9
mov dword [ebp - 0x60], 1
test ecx, ecx
je 0x1001dc4b
mov eax, dword [ecx]
lea edi, [ebp - 0x48]
push edi
lea edi, [ebp - 0x60]
push edi
push edx
call dword [eax + 8]
mov edx, dword [ebp - 0x4c]
mov eax, esi
mov byte [ebp - 4], 8
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001daee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x48]
mov eax, esi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001db0c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x58]
call fcn.100acfc0
lea ecx, [ebp - 0x70]
call fcn.100ace60
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1001db3b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
jmp 0x1001dc1e
xor eax, eax
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.101799ce
mov esp, ebp
pop ebp
ret 0x1c
call fcn.10190cce
push 0x80004005
call fcn.10009b10
call fcn.100a2560
int3