Function at 0x501860
Capabilities:
Copy file
Delete file
Get common file path
Move file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50cd6a
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x531304]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3f0], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xb4], 0
push 0x7c
call fcn.00418aea
add esp, 4
mov dword [ebp - 0x34c], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34c], 0
je 0x5018e6
lea eax, [ebp - 0x350]
push eax
call fcn.004eee80
add esp, 4
push eax
mov ecx, dword [ebp - 0x34c]
call fcn.004ef190
mov dword [ebp - 0x3f4], eax
jmp 0x5018f0
mov dword [ebp - 0x3f4], 0
mov ecx, dword [ebp - 0x3f4]
mov dword [ebp - 0x348], ecx
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x348]
mov dword [ebp - 0xbc], edx
push 0
lea ecx, [ebp - 0x8c]
call fcn.004ebad0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.004e7500
mov byte [ebp - 4], 3
call fcn.004f4fb0
mov dword [ebp - 0x54], eax
call fcn.004f4fb0
mov dword [ebp - 0x90], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x74]
call fcn.00401210
mov byte [ebp - 4], 4
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0xb0]
call fcn.00401210
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x54]
push edx
lea ecx, [ebp - 0x74]
call fcn.0040bb70
push 0x522654
lea ecx, [ebp - 0xb0]
call fcn.0040bb70
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x50]
call fcn.00401210
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x90]
push ecx
lea ecx, [ebp - 0x50]
call fcn.0040bb70
push 0
lea ecx, [ebp - 0x74]
call fcn.004012e0
push eax
lea ecx, [ebp + 8]
call fcn.004012e0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edx, dword [ebp - 0x54]
push edx
call fcn.00415c75
add esp, 4
mov eax, dword [ebp - 0x90]
push eax
call fcn.00415c75
add esp, 4
push 0x522658
lea ecx, [ebp - 0x74]
call fcn.004012e0
push eax
call fcn.0041625a
add esp, 8
mov dword [ebp - 0x58], eax
push 2
push 0
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.00416afd
add esp, 0xc
mov edx, dword [ebp - 0x58]
push edx
call fcn.004169d3
add esp, 4
mov dword [ebp - 0x94], eax
push 0
push 0
mov eax, dword [ebp - 0x58]
push eax
call fcn.00416afd
add esp, 0xc
mov ecx, dword [ebp - 0x94]
add ecx, 1
push ecx
call fcn.00415d52
add esp, 4
mov dword [ebp - 0xb8], eax
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x94]
push eax
push 1
mov ecx, dword [ebp - 0xb8]
push ecx
call fcn.0041651a
add esp, 0x10
mov edx, dword [ebp - 0xb8]
add edx, dword [ebp - 0x94]
mov byte [edx], 0
mov eax, dword [ebp - 0x58]
push eax
call fcn.00416bf5
add esp, 4
cmp dword [ebp - 0x94], 0x3e8
jle 0x501af1
push 0x52265c
mov ecx, dword [ebp - 0xb8]
push ecx
call fcn.00401000
add esp, 8
test eax, eax
je 0x501af1
push 0x522660
mov edx, dword [ebp - 0xb8]
push edx
call fcn.00401000
add esp, 8
push eax
lea ecx, [ebp - 0x370]
call fcn.00401e20
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x3f0]
or eax, 1
mov dword [ebp - 0x3f0], eax
push 1
lea ecx, [ebp - 0x8c]
push ecx
lea edx, [ebp - 0x370]
push edx
mov ecx, dword [ebp - 0xbc]
call fcn.004f3df0
movzx eax, al
test eax, eax
je 0x501af1
mov dword [ebp - 0x3f8], 1
jmp 0x501afb
mov dword [ebp - 0x3f8], 0
mov cl, byte [ebp - 0x3f8]
mov byte [ebp - 0x351], cl
mov dword [ebp - 4], 6
mov edx, dword [ebp - 0x3f0]
and edx, 1
je 0x501b2b
and dword [ebp - 0x3f0], 0xfffffffe
lea ecx, [ebp - 0x370]
call fcn.00401260
movzx eax, byte [ebp - 0x351]
test eax, eax
je 0x50247a
push 0x522664
lea ecx, [ebp - 0x8c]
call fcn.004ee360
mov ecx, eax
call fcn.004eaa50
test eax, eax
je 0x501c40
push 0x522684
push 0x522674
lea ecx, [ebp - 0x8c]
call fcn.004ee360
mov ecx, eax
call fcn.004ee360
mov ecx, eax
call fcn.004eaa50
test eax, eax
je 0x501c40
push 0x5226a8
push 0x522698
lea ecx, [ebp - 0x8c]
call fcn.004ee360
mov ecx, eax
call fcn.004ee360
mov ecx, eax
call fcn.004eaa50
cmp eax, 5
jne 0x501c40
push 0x5226cc
push 0x5226bc
lea ecx, [ebp - 0x8c]
call fcn.004ee360
mov ecx, eax
call fcn.004ee360
mov ecx, eax
call fcn.004ec200
mov byte [ebp - 0x335], al
movzx ecx, byte [ebp - 0x335]
test ecx, ecx
jne 0x501c40
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x374], esp
push 1
call fcn.004eab40
mov dword [ebp - 0x3fc], eax
mov edx, dword [ebp - 0x3fc]
mov dword [ebp - 0x400], edx
mov byte [ebp - 4], 8
push str.show_on_all_tabs
push str.bookmark_bar
lea ecx, [ebp - 0x8c]
call fcn.004ee360
mov ecx, eax
call fcn.004ee360
mov byte [ebp - 4], 6
mov ecx, eax
call fcn.004eb520
push str._DEBUGINFO__LOCK__SET_LockLiebao_show_on_all_tabs__false_n
call fcn.004e4170
add esp, 4
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x378], esp
push 1
call fcn.004eab40
mov dword [ebp - 0x404], eax
mov eax, dword [ebp - 0x404]
mov dword [ebp - 0x408], eax
mov byte [ebp - 4], 9
push str.newtab2_was_cleaned
push str.browser
lea ecx, [ebp - 0x8c]
call fcn.004ee360
mov ecx, eax
call fcn.004ee360
mov byte [ebp - 4], 6
mov ecx, eax
call fcn.004eb520
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x37c], esp
push 1
call fcn.004eab40
mov dword [ebp - 0x40c], eax
mov ecx, dword [ebp - 0x40c]
mov dword [ebp - 0x410], ecx
mov byte [ebp - 4], 0xa
push str.kduba_url_preset
push 0x52275c
lea ecx, [ebp - 0x8c]
call fcn.004ee360
mov ecx, eax
call fcn.004ee360
mov byte [ebp - 4], 6
mov ecx, eax
call fcn.004eb520
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x380], esp
push 1
call fcn.004eab40
mov dword [ebp - 0x414], eax
mov edx, dword [ebp - 0x414]
mov dword [ebp - 0x418], edx
mov byte [ebp - 4], 0xb
push 0x522780
push 0x522778
lea ecx, [ebp - 0x8c]
call fcn.004ee360
mov ecx, eax
call fcn.004ee360
mov byte [ebp - 4], 6
mov ecx, eax
call fcn.004eb520
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x384], esp
mov eax, dword [0x55bc34]
push eax
call fcn.004ed9d0
mov dword [ebp - 0x41c], eax
mov ecx, dword [ebp - 0x41c]
mov dword [ebp - 0x420], ecx
mov byte [ebp - 4], 0xc
push 0x5227a4
push 0x52279c
lea ecx, [ebp - 0x8c]
call fcn.004ee360
mov ecx, eax
call fcn.004ee360
mov byte [ebp - 4], 6
mov ecx, eax
call fcn.004eb520
mov edx, dword [ebp + 0x24]
push edx
lea ecx, [ebp - 0x39c]
call fcn.004edc90
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x39c]
push eax
push 0x5227c8
push 0x5227c0
lea ecx, [ebp - 0x8c]
call fcn.004ee360
mov ecx, eax
call fcn.004ee360
mov ecx, eax
call fcn.004ee2a0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x39c]
call fcn.004eb3f0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x3a0], esp
push 3
call fcn.004eac00
mov dword [ebp - 0x424], eax
mov ecx, dword [ebp - 0x424]
mov dword [ebp - 0x428], ecx
mov byte [ebp - 4], 0xe
push str.new_open
push 0x5227e4
lea ecx, [ebp - 0x8c]
call fcn.004ee360
mov ecx, eax
call fcn.004ee360
mov byte [ebp - 4], 6
mov ecx, eax
call fcn.004eb520
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x3a4], esp
mov edx, dword [ebp + 0x24]
push edx
call fcn.004edc90
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x430], eax
mov byte [ebp - 4], 0xf
push 0x5227f8
push 0x5227f4
lea ecx, [ebp - 0x8c]
call fcn.004ee360
mov ecx, eax
call fcn.004ee360
mov byte [ebp - 4], 6
mov ecx, eax
call fcn.004eb520
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x3a8], esp
push 0
call fcn.004eac00
mov dword [ebp - 0x434], eax
mov ecx, dword [ebp - 0x434]
mov dword [ebp - 0x438], ecx
mov byte [ebp - 4], 0x10
push str.new_open_url_id
push 0x522808
lea ecx, [ebp - 0x8c]
call fcn.004ee360
mov ecx, eax
call fcn.004ee360
mov byte [ebp - 4], 6
mov ecx, eax
call fcn.004eb520
lea edx, [ebp - 0x8c]
push edx
lea eax, [ebp - 0x334]
push eax
lea ecx, [ebp - 0x34]
call fcn.004ea3e0
mov byte [ebp - 4], 0x11
push str._DEBUGINFO__LOCK__SET_LockLiebao_json_ok_n
call fcn.004e4170
add esp, 4
push 0x522848
lea ecx, [ebp - 0x74]
call fcn.004012e0
push eax
call fcn.0041625a
add esp, 8
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
push ecx
push 1
lea ecx, [ebp - 0x334]
call fcn.004012e0
push eax
call fcn.00415e20
add esp, 4
push eax
lea ecx, [ebp - 0x334]
call fcn.004012e0
push eax
call fcn.004167ae
add esp, 0x10
mov edx, dword [ebp - 0x58]
push edx
call fcn.00416bf5
add esp, 4
lea ecx, [ebp - 0x74]
call fcn.004012e0
push eax
push str._DEBUGINFO__LOCK__SET_LockLiebao_strRndPreferences___s_n
call fcn.004e4170
add esp, 8
lea ecx, [ebp - 0x334]
call fcn.00401300
shl eax, 1
mov dword [ebp - 0x1ec], eax
mov eax, dword [ebp - 0x1ec]
push eax
call fcn.00415d52
add esp, 4
mov dword [ebp - 0x318], eax
mov ecx, dword [ebp - 0x1ec]
push ecx
push 0
mov edx, dword [ebp - 0x318]
push edx
call fcn.00415fc0
add esp, 0xc
lea ecx, [ebp - 0x334]
call fcn.004012e0
push eax
mov eax, dword [ebp - 0x318]
push eax
call fcn.00415eb0
add esp, 8
mov ecx, dword [ebp - 0x318]
push ecx
call fcn.00415e20
add esp, 4
push eax
push str._DEBUGINFO__LOCK__SET_LockLiebao_buffer_len___d_n
call fcn.004e4170
add esp, 8
mov edx, dword [ebp - 0x318]
push edx
push str.5.3.0.0
call fcn.005017b0
add esp, 8
mov dword [ebp - 0x1e8], eax
mov eax, dword [ebp - 0x1e8]
push eax
push str._DEBUGINFO__LOCK__SET_LockLiebao_pref_ret___d_n
call fcn.004e4170
add esp, 8
push 0x5228f4
lea ecx, [ebp - 0x50]
call fcn.004012e0
push eax
call fcn.0041625a
add esp, 8
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
push ecx
push 1
mov edx, dword [ebp - 0x1e8]
push edx
mov eax, dword [ebp - 0x318]
push eax
call fcn.004167ae
add esp, 0x10
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.00416bf5
add esp, 4
mov edx, dword [ebp - 0x318]
push edx
call fcn.00415c75
add esp, 4
lea ecx, [ebp - 0x50]
call fcn.004012e0
push eax
push str._DEBUGINFO__LOCK__SET_LockLiebao_strRndPreferences1___s_n
call fcn.004e4170
add esp, 8
push 4
push 0
lea ecx, [ebp + 8]
call fcn.004012e0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 4
push 0
lea ecx, [ebp - 0xb0]
call fcn.004012e0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 4
lea ecx, [ebp + 8]
call fcn.004012e0
push eax
lea ecx, [ebp - 0x74]
call fcn.004012e0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 4
lea ecx, [ebp - 0xb0]
call fcn.004012e0
push eax
lea ecx, [ebp - 0x50]
call fcn.004012e0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push str._DEBUGINFO__LOCK__SET_LockLiebao_MOVEFILE_DELAY_UNTIL_REBOOT_n
call fcn.004e4170
add esp, 4
mov byte [ebp - 0xd9], 0
mov byte [ebp - 0x2f4], 0
push 0x103
push 0
lea eax, [ebp - 0x2f3]
push eax
call fcn.00415fc0
add esp, 0xc
push 0x522980
push 0x522974
lea ecx, [ebp - 0x8c]
call fcn.004ee360
mov ecx, eax
call fcn.004ee360
mov ecx, eax
call fcn.004eaa50
test eax, eax
je 0x50217f
lea ecx, [ebp - 0x3c4]
push ecx
push str.last_chrome_version
push 0x522994
lea ecx, [ebp - 0x8c]
call fcn.004ee360
mov ecx, eax
call fcn.004ee360
mov ecx, eax
call fcn.004ed160
mov dword [ebp - 0x43c], eax
mov edx, dword [ebp - 0x43c]
mov dword [ebp - 0x440], edx
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x440]
call fcn.004012e0
push eax
lea eax, [ebp - 0x2f4]
push eax
call fcn.00415eb0
add esp, 8
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x3c4]
call fcn.00401260
jmp 0x502210
push 0x5229c0
push 0x5229b4
lea ecx, [ebp - 0x8c]
call fcn.004ee360
mov ecx, eax
call fcn.004ee360
mov ecx, eax
call fcn.004eaa50
test eax, eax
je 0x502210
lea ecx, [ebp - 0x3e0]
push ecx
push str.created_by_version
push str.extensions
lea ecx, [ebp - 0x8c]
call fcn.004ee360
mov ecx, eax
call fcn.004ee360
mov ecx, eax
call fcn.004ed160
mov dword [ebp - 0x444], eax
mov edx, dword [ebp - 0x444]
mov dword [ebp - 0x448], edx
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x448]
call fcn.004012e0
push eax
lea eax, [ebp - 0x2f4]
push eax
call fcn.00415eb0
add esp, 8
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x3e0]
call fcn.00401260
lea ecx, [ebp - 0x2f4]
push ecx
call fcn.00415e20
add esp, 4
cmp eax, 3
jbe 0x50225b
movsx edx, byte [ebp - 0x2f4]
cmp edx, 0x34
jne 0x50225b
movsx eax, byte [ebp - 0x2f3]
cmp eax, 0x2e
jne 0x50225b
movsx ecx, byte [ebp - 0x2f2]
cmp ecx, 0x36
je 0x502254
movsx edx, byte [ebp - 0x2f2]
cmp edx, 0x37
jne 0x50225b
mov byte [ebp - 0xd9], 1
mov byte [ebp - 0x1e4], 0
push 0x103
push 0
lea eax, [ebp - 0x1e3]
push eax
call fcn.00415fc0
add esp, 0xc
push 0x104
push 0
lea ecx, [ebp - 0x1e4]
push ecx
call fcn.00415fc0
add esp, 0xc
push 0
push 0x1c
lea edx, [ebp - 0x1e4]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x1e4]
push eax
lea ecx, [ebp - 0x310]
call fcn.00401e20
mov byte [ebp - 4], 0x14
push str.liebaoUser_DataDefaultBookmarks_journal
lea ecx, [ebp - 0x310]
call fcn.0040bb70
lea ecx, [ebp - 0x310]
push ecx
lea ecx, [ebp - 0xd8]
call fcn.00401210
mov byte [ebp - 4], 0x15
call fcn.004f4fb0
mov dword [ebp - 0x314], eax
mov edx, dword [ebp - 0x314]
push edx
lea ecx, [ebp - 0xd8]
call fcn.0040bb70
mov eax, dword [ebp - 0x314]
push eax
call fcn.00415c75
add esp, 4
push 4
push 0
lea ecx, [ebp - 0x310]
call fcn.004012e0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
movzx ecx, byte [ebp - 0xd9]
test ecx, ecx
je 0x502443
lea ecx, [ebp - 0x334]
call fcn.00401300
shl eax, 1
mov dword [ebp - 0x344], eax
mov edx, dword [ebp - 0x344]
push edx
call fcn.00415d52
add esp, 4
mov dword [ebp - 0x340], eax
mov eax, dword [ebp - 0x344]
push eax
push 0
mov ecx, dword [ebp - 0x340]
push ecx
call fcn.00415fc0
add esp, 0xc
lea ecx, [ebp - 0x334]
call fcn.004012e0
push eax
mov edx, dword [ebp - 0x340]
push edx
call fcn.00415eb0
add esp, 8
mov eax, dword [ebp - 0x340]
push eax
push str.4.7.0.0
call fcn.005017b0
add esp, 8
mov dword [ebp - 0x33c], eax
mov ecx, dword [ebp - 0x33c]
push ecx
push str._DEBUGINFO__LOCK__SET_LockLiebao_pref_ret1___d_n
call fcn.004e4170
add esp, 8
push 0x522a5c
lea ecx, [ebp - 0xd8]
call fcn.004012e0
push eax
call fcn.0041625a
add esp, 8
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 0x58]
push edx
push 1
mov eax, dword [ebp - 0x33c]
push eax
mov ecx, dword [ebp - 0x340]
push ecx
call fcn.004167ae
add esp, 0x10
mov edx, dword [ebp - 0x58]
push edx
call fcn.00416bf5
add esp, 4
mov eax, dword [ebp - 0x340]
push eax
call fcn.00415c75
add esp, 4
lea ecx, [ebp - 0xd8]
call fcn.004012e0
push eax
push str._DEBUGINFO__LOCK__SET_LockLiebao_szRndBookmarks_journal___s_n
call fcn.004e4170
add esp, 8
push 4
lea ecx, [ebp - 0x310]
call fcn.004012e0
push eax
lea ecx, [ebp - 0xd8]
call fcn.004012e0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov dword [ebp - 0xb4], 1
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0xd8]
call fcn.00401260
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x310]
call fcn.00401260
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x334]
call fcn.00401260
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0x3e8], ecx
mov edx, dword [ebp - 0x3e8]
mov dword [ebp - 0x3e4], edx
cmp dword [ebp - 0x3e4], 0
je 0x5024b0
push 1
mov ecx, dword [ebp - 0x3e4]
call fcn.00413240
mov dword [ebp - 0x44c], eax
jmp 0x5024ba
mov dword [ebp - 0x44c], 0
mov eax, dword [ebp - 0xb8]
push eax
call fcn.00415c75
add esp, 4
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0x3ec], ecx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x50]
call fcn.00401260
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb0]
call fcn.00401260
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x74]
call fcn.00401260
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.00410630
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.004eb3f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401260
mov eax, dword [ebp - 0x3ec]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004158f4
mov esp, ebp
pop ebp
ret