Function at 0x503850
Capabilities:
Check if file exists
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c9d8
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x531304]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x503d76
push 0x7c
call fcn.00418aea
add esp, 4
mov dword [ebp - 0x84], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x84], 0
je 0x5038e1
lea ecx, [ebp - 0x88]
push ecx
call fcn.004eee80
add esp, 4
push eax
mov ecx, dword [ebp - 0x84]
call fcn.004ef190
mov dword [ebp - 0xfc], eax
jmp 0x5038eb
mov dword [ebp - 0xfc], 0
mov edx, dword [ebp - 0xfc]
mov dword [ebp - 0x80], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x60], eax
push 0
lea ecx, [ebp - 0x5c]
call fcn.004ebad0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.004e7500
mov byte [ebp - 4], 2
push 0x523b04
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041625a
add esp, 8
mov dword [ebp - 0x10], eax
push 2
push 0
mov edx, dword [ebp - 0x10]
push edx
call fcn.00416afd
add esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
call fcn.004169d3
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00416afd
add esp, 0xc
mov edx, dword [ebp - 0x14]
add edx, 1
push edx
call fcn.00415d52
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 1
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0041651a
add esp, 0x10
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x14]
mov byte [eax], 0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00416bf5
add esp, 4
cmp dword [ebp - 0x14], 0
jne 0x5039fc
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00415c75
add esp, 4
mov dword [ebp - 0x14], 0xb37
mov eax, dword [ebp - 0x14]
add eax, 1
push eax
call fcn.00415d52
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00415fc0
add esp, 0xc
mov eax, dword [ebp - 0x14]
push eax
push str._account_id_migration_state_:2__account_tracker_service_last_update_:_13150265246298617___bookmark_editor_:_expanded_nodes_:____browser_:_window_placement_:_bottom_:728__docked_:false__left_:10__maximized_:false__right_:1014__top_:10__work_area_bottom_:738__work_area_left_:0__work_area_right_:1024__work_area_top_:0__countryid_at_install_:17230__data_reduction_:_daily_original_length_:____daily_original_length_via_data_reduction_proxy_:____daily_original_length_with_data_reduction_proxy_enabled_:____daily_received_length_:____daily_received_length_https_with_data_reduction_proxy_enabled_:____daily_received_length_long_bypass_with_data_reduction_proxy_enabled_:____daily_received_length_short_bypass_with_data_reduction_proxy_enabled_:____daily_received_length_unknown_with_data_reduction_proxy_enabled_:____daily_received_length_via_data_reduction_proxy_:____daily_received_length_with_data_reduction_proxy_enabled_:____last_update_date_:_0___data_reduction_lo_fi_:_consecutive_session_disables_:0__load_images_requests_per_session_:0__was_used_this_session_:false__default_apps_install_state_:2__dns_prefetching_:_host_referral_list_:_2___startup_list_:_1__http:__www.126.com____https:__clients2.google.com____https:__www.googleapis.com_____extensions_:_alerts_:_initialized_:true__autoupdate_:_next_check_:_13150282636807226___chrome_url_overrides_:_bookmarks_:__chrome_extension:__eemcgdkfndhakfknompkggombfjjjeno_main.html____last_chrome_version_:_45.0.2454.85___http_original_content_length_:_0___http_received_content_length_:_0___intl_:_accept_languages_:_zh_CN_zh___invalidator_:_client_id_:_ueUiSdS0ha1DxorFgCGjSQ___media_:_device_id_salt_:_vqfNme_F48APBPTLzzKghA___plugins_:_npapi_flash_migrated_to_pepper_flash_:true__plugins_list_:____profile_:_avatar_bubble_tutorial_shown_:2__avatar_index_:26__content_settings_:_exceptions_:_app_banner_:__auto_select_certificate_:__automatic_downloads_:__cookies_:__durable_storage_:__fullscreen_:__geolocation_:__images_:__javascript_:__media_stream_:__media_stream_camera_:__media_stream_mic_:__metro_switch_to_desktop_:__midi_sysex_:__mixed_script_:__mouselock_:__notifications_:__plugins_:__popups_:__ppapi_broker_:__protocol_handlers_:__push_messaging_:__site_engagement_:__ssl_cert_decisions_:__pattern_pairs_:__pref_version_:1__created_by_version_:_45.0.2454.85___exit_type_:_Normal___exited_cleanly_:true__icon_version_:3__managed_user_id_:____migrated_content_settings_exceptions_:true__migrated_default_content_settings_:true__migrated_default_media_stream_content_settings_:true__name_:_1___per_host_zoom_levels_:__protection_:_macs_:__session_:_restore_on_startup_migrated_:true__startup_urls_migration_time_:_13150265245637985___translate_blocked_languages_:__zh___zh_CN____translate_whitelists_:
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00415910
add esp, 0xc
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x14]
mov byte [edx], 0
cmp dword [ebp - 0x14], 0x3e8
jle 0x503a72
push 0x523b08
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00401000
add esp, 8
test eax, eax
je 0x503a72
push 0x523b0c
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00401000
add esp, 8
push eax
lea ecx, [ebp - 0xa8]
call fcn.00401e20
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xf8]
or edx, 1
mov dword [ebp - 0xf8], edx
push 1
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0xa8]
push ecx
mov ecx, dword [ebp - 0x60]
call fcn.004f3df0
movzx edx, al
test edx, edx
je 0x503a72
mov dword [ebp - 0x100], 1
jmp 0x503a7c
mov dword [ebp - 0x100], 0
mov al, byte [ebp - 0x100]
mov byte [ebp - 0x89], al
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0xf8]
and ecx, 1
je 0x503aac
and dword [ebp - 0xf8], 0xfffffffe
lea ecx, [ebp - 0xa8]
call fcn.00401260
movzx edx, byte [ebp - 0x89]
test edx, edx
je 0x503d12
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xac], esp
push 4
call fcn.004eac00
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0x108], eax
mov byte [ebp - 4], 4
push 0x523b18
push 0x523b10
lea ecx, [ebp - 0x5c]
call fcn.004ee360
mov ecx, eax
call fcn.004ee360
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.004eb520
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xb0], esp
push 1
call fcn.004eab40
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10c]
mov dword [ebp - 0x110], ecx
mov byte [ebp - 4], 5
push str.restore_on_startup_migrated
push 0x523b2c
lea ecx, [ebp - 0x5c]
call fcn.004ee360
mov ecx, eax
call fcn.004ee360
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.004eb520
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xb4], esp
mov edx, dword [0x55bc34]
push edx
call fcn.004ed9d0
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x118], eax
mov byte [ebp - 4], 6
push 0x523b58
push 0x523b50
lea ecx, [ebp - 0x5c]
call fcn.004ee360
mov ecx, eax
call fcn.004ee360
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.004eb520
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0xcc]
call fcn.004edc90
mov byte [ebp - 4], 7
lea edx, [ebp - 0xcc]
push edx
push 0x523b70
push 0x523b68
lea ecx, [ebp - 0x5c]
call fcn.004ee360
mov ecx, eax
call fcn.004ee360
mov ecx, eax
call fcn.004ee2a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xcc]
call fcn.004eb3f0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xd0], esp
mov eax, dword [0x55bc34]
push eax
call fcn.004ed9d0
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x11c]
mov dword [ebp - 0x120], ecx
mov byte [ebp - 4], 8
push 0x523b88
push 0x523b80
lea ecx, [ebp - 0x5c]
call fcn.004ee360
mov ecx, eax
call fcn.004ee360
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.004eb520
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0xec]
call fcn.004edc90
mov byte [ebp - 4], 9
lea eax, [ebp - 0xec]
push eax
push 0x523bac
push 0x523ba4
lea ecx, [ebp - 0x5c]
call fcn.004ee360
mov ecx, eax
call fcn.004ee360
mov ecx, eax
call fcn.004ee2a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xec]
call fcn.004eb3f0
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x7c]
push edx
lea ecx, [ebp - 0x44]
call fcn.004ea3e0
mov byte [ebp - 4], 0xa
push 0x80
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x523bc8
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041625a
add esp, 8
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
push 1
lea ecx, [ebp - 0x7c]
call fcn.004012e0
push eax
call fcn.00415e20
add esp, 4
push eax
lea ecx, [ebp - 0x7c]
call fcn.004012e0
push eax
call fcn.004167ae
add esp, 0x10
mov eax, dword [ebp - 0x10]
push eax
call fcn.00416bf5
add esp, 4
push str._DEBUGINFO__LOCK__SET_LockGoogleChrome_old_json_ok_n
call fcn.004e4170
add esp, 4
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x7c]
call fcn.00401260
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0xf4], ecx
mov edx, dword [ebp - 0xf4]
mov dword [ebp - 0xf0], edx
cmp dword [ebp - 0xf0], 0
je 0x503d45
push 1
mov ecx, dword [ebp - 0xf0]
call fcn.00413240
mov dword [ebp - 0x124], eax
jmp 0x503d4f
mov dword [ebp - 0x124], 0
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00415c75
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.00410630
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.004eb3f0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.004158f4
mov esp, ebp
pop ebp
ret