Function at 0x100db09f
Capabilities:
Check if file exists
Check mutex on windows
Delete file
Write file on windows

Disassembly:
push ebp
sub esp, 0x400
lea ebp, [esp - 4]
mov eax, dword [0x101f6410]
xor eax, ebp
mov dword [ebp + 0x400], eax
push 0x58
mov eax, 0x1018dcca
call fcn.10145d80
mov esi, dword [ebp + 0x40c]
xor ebx, ebx
cmp esi, ebx
je 0x100db34e
lea ecx, [ebp - 0x40]
call fcn.101390d6
push 0x101b155c
push esi
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], ebx
call fcn.10138b93
push dword [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.101458e6
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x18]
push eax
call fcn.1011de11
pop ecx
pop ecx
push str.namedsites.dat
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
call fcn.10007b6e
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.10003b75
mov ecx, 0x101f84e8
call fcn.1005254a
cmp dword [ebp - 0x30], eax
jle 0x100db145
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100db156
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100db332
lea eax, [ebp - 0x14]
push str.namedsites
push eax
call fcn.1011f647
pop ecx
pop ecx
push str.http:__toolbar.baidu.com_update_
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.10007b11
push str.namedsites1.dat
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.1001107f
push 1
push 0x4e20
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.10007ade
push ecx
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
mov byte [ebp - 4], 7
call fcn.10007ade
mov byte [ebp - 4], 6
call fcn.1011af35
add esp, 0x10
cmp eax, ebx
je 0x100db322
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x14]
call fcn.10148cc9
test eax, eax
pop ecx
pop ecx
jne 0x100db319
mov edi, dword [ebp - 0x14]
cmp edi, ebx
je 0x100db1f1
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x100db1f5
xor eax, eax
jmp 0x100db20a
lea esi, [eax + eax]
mov eax, esi
call fcn.101473b0
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.1000ff6e
push 0x101b14d8
push eax
call fcn.1013c5de
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x1c], eax
je 0x100db319
push str.B0FE8C19_4C14_4b12_9005_1E871700C232
push ebx
mov ecx, 0x101f8c68
call fcn.10016a0b
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x100db310
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100db307
push 0x101b1480
push dword [ebp - 0x10]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], ebx
call fcn.10147b95
add esp, 0xc
test eax, eax
jne 0x100db2fe
push 0x3ff
lea eax, [ebp + 1]
push ebx
push eax
mov byte [ebp], bl
call fcn.10146c80
mov esi, 0x400
push esi
lea eax, [ebp]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x24], ebx
call fcn.1013cad8
add esp, 0x18
jmp 0x100db2cf
add dword [ebp - 0x24], edi
lea eax, [ebp]
push edi
push eax
call fcn.1007358e
push dword [ebp - 0x28]
lea eax, [ebp]
push edi
push 1
push eax
call fcn.10148a8b
push esi
lea eax, [ebp]
push eax
push dword [ebp - 0x1c]
call fcn.1013cad8
add esp, 0x24
mov edi, eax
cmp edi, ebx
jg 0x100db2a3
push dword [ebp - 0x28]
call fcn.101475da
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x50]
pop ecx
jle 0x100db2f5
push dword [ebp - 0x30]
mov ecx, 0x101f84e8
call fcn.10052599
jmp 0x100db2fe
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1c]
call fcn.1013d1fe
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x18]
call fcn.10003b75
lea ecx, [ebp - 0x14]
call fcn.10003b75
lea ecx, [ebp - 0x10]
call fcn.10003b75
lea ecx, [ebp - 0x2c]
call fcn.10003b75
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10138686
lea esp, [ebp - 0x74]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.10145d71
add ebp, 0x404
leave
ret