Function at 0x415860
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x449e6d
mov eax, dword fs:[0]
push eax
sub esp, 0x650
mov eax, dword [0x4611f4]
xor eax, esp
mov dword [esp + 0x648], eax
push ebx
push esi
push edi
mov eax, dword [0x4611f4]
xor eax, esp
push eax
lea eax, [esp + 0x660]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x24], esi
push 1
push 0x23
lea eax, [esp + 0x454]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.BaofengBFVKanDianYingProfiles
lea ecx, [esp + 0x3c]
call fcn.00402410
push eax
lea edx, [esp + 0x450]
lea ecx, [esp + 0x24]
mov dword [esp + 0x66c], 0
call fcn.00419970
add esp, 4
mov byte [esp + 0x668], 2
mov edx, dword [esp + 0x38]
add edx, 0xfffffff0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41590f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esp + 0x20]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x415926
mov ecx, dword [esp + 0x20]
call fcn.0041c800
push str.ApplicationDataProfilesBFVCenterChannel_
lea edx, [esi + 0x24]
lea ecx, [esp + 0x1c]
call fcn.0040bce0
add esp, 4
push str.BFVCenterChannel_
lea edx, [esp + 0x24]
lea ecx, [esp + 0x18]
mov byte [esp + 0x66c], 3
call fcn.0040bce0
add esp, 4
mov byte [esp + 0x668], 4
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401e50
lea ecx, [eax + 0x10]
mov dword [esp + 0x1c], ecx
xor edx, edx
mov byte [esp + 0x668], 5
call fcn.0041c960
push 8
push dword [esp + 0x18]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4159a4
push dword [esp + 0x14]
mov ecx, esi
push dword [esp + 0x1c]
call fcn.00416b00
push str.ApplicationDataProfiles_attr.js
lea edx, [esi + 0x24]
lea ecx, [esp + 0x14]
call fcn.0040bce0
add esp, 4
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x66c], 6
call fcn.00401a10
mov byte [esp + 0x668], 5
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4159ef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str._attr.js
lea edx, [esp + 0x24]
lea ecx, [esp + 0x14]
call fcn.0040bce0
add esp, 4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x66c], 7
call fcn.00401a10
mov byte [esp + 0x668], 5
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415a3b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.00401a10
mov esi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call ebx
test eax, eax
jne 0x415a74
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x415a74
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call ebx
push 0
push dword [esp + 0x18]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [esp + 0x24]
push str.ApplicationDataProfiles_speed_config.json
lea edx, [edx + 0x24]
lea ecx, [esp + 0x14]
call fcn.0040bce0
add esp, 4
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x66c], 8
call fcn.00401a10
mov byte [esp + 0x668], 5
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415ad3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str._speed_config.json
lea edx, [esp + 0x24]
lea ecx, [esp + 0x14]
call fcn.0040bce0
add esp, 4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x66c], 9
call fcn.00401a10
mov byte [esp + 0x668], 5
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415b1f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.00401a10
mov esi, dword [esp + 0x1c]
push esi
call ebx
test eax, eax
jne 0x415b52
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x415b52
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call ebx
push 0
push dword [esp + 0x18]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [esp + 0x24]
push str.ApplicationDataProfilesLeftEyeCtrl.ini
lea edx, [edx + 0x24]
lea ecx, [esp + 0x14]
call fcn.0040bce0
add esp, 4
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x66c], 0xa
call fcn.00401a10
mov byte [esp + 0x668], 5
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415bb1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.LeftEyeCtrl.ini
lea edx, [esp + 0x24]
lea ecx, [esp + 0x14]
call fcn.0040bce0
add esp, 4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x66c], 0xb
call fcn.00401a10
mov byte [esp + 0x668], 5
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415bfd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.00401a10
mov esi, dword [esp + 0x1c]
push esi
call ebx
test eax, eax
jne 0x415c30
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x415c30
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call ebx
push 0
push dword [esp + 0x18]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push str.AppIcons_
lea edx, [esp + 0x24]
lea ecx, [esp + 0x2c]
call fcn.0040bce0
add esp, 4
mov byte [esp + 0x668], 0xc
mov ecx, dword [esp + 0x28]
call fcn.0041c800
mov esi, dword [esp + 0x24]
push str.ApplicationDataProfilesAppIconsdefault.png
lea edx, [esi + 0x24]
lea ecx, [esp + 0x38]
call fcn.0040bce0
add esp, 4
push str.AppIconsdefault.png
lea edx, [esp + 0x24]
lea ecx, [esp + 0x14]
mov byte [esp + 0x66c], 0xd
call fcn.0040bce0
add esp, 4
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x66c], 0xe
call fcn.00401a10
mov byte [esp + 0x668], 0xd
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415cd2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push dword [esp + 0x2c]
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push str.ApplicationDataProfilesBFVDesktopchannel.js
lea edx, [esi + 0x24]
lea ecx, [esp + 0x14]
call fcn.0040bce0
add esp, 4
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x66c], 0xf
call fcn.00401a10
mov byte [esp + 0x668], 0xd
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415d2d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.BFVDesktopchannel.js
lea edx, [esp + 0x24]
lea ecx, [esp + 0x14]
call fcn.0040bce0
add esp, 4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x66c], 0x10
call fcn.00401a10
mov byte [esp + 0x668], 0xd
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415d79
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.00401a10
mov esi, dword [esp + 0x1c]
push esi
call ebx
test eax, eax
jne 0x415dac
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x415dac
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call ebx
push dword [esp + 0x14]
lea eax, [esp + 0x40]
push 0x104
push eax
call fcn.00433dd5
add esp, 0xc
lea eax, [esp + 0x3c]
push 0x5c
push eax
call fcn.00432fb2
add esp, 8
test eax, eax
je 0x415df2
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x415df2
lea ecx, [esp + 0x3c]
call fcn.0041c800
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.0041c1c0
mov edx, dword [esp + 0x28]
add esp, 4
lea edx, [edx + 0x24]
push str.ApplicationDataProfilesBFVDesktop1.js
lea ecx, [esp + 0x14]
call fcn.0040bce0
add esp, 4
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x66c], 0x11
call fcn.00401a10
mov byte [esp + 0x668], 0xd
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415e52
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.BFVDesktop1.js
lea edx, [esp + 0x24]
lea ecx, [esp + 0x14]
call fcn.0040bce0
add esp, 4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x66c], 0x12
call fcn.00401a10
mov byte [esp + 0x668], 0xd
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415e9e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.00401a10
mov esi, dword [esp + 0x1c]
push esi
call ebx
test eax, eax
jne 0x415ed1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x415ed1
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call ebx
push dword [esp + 0x14]
lea eax, [esp + 0x40]
push 0x104
push eax
call fcn.00433dd5
add esp, 0xc
lea eax, [esp + 0x3c]
push 0x5c
push eax
call fcn.00432fb2
add esp, 8
test eax, eax
je 0x415f17
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x415f17
lea ecx, [esp + 0x3c]
call fcn.0041c800
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.0041c1c0
mov edx, dword [esp + 0x28]
add esp, 4
lea edx, [edx + 0x24]
push str.ApplicationDataProfilesBFVDesktop2.js
lea ecx, [esp + 0x14]
call fcn.0040bce0
add esp, 4
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x66c], 0x13
call fcn.00401a10
mov byte [esp + 0x668], 0xd
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415f77
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.BFVDesktop2.js
lea edx, [esp + 0x24]
lea ecx, [esp + 0x14]
call fcn.0040bce0
add esp, 4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x66c], 0x14
call fcn.00401a10
mov byte [esp + 0x668], 0xd
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415fc3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.00401a10
mov esi, dword [esp + 0x1c]
push esi
call ebx
test eax, eax
jne 0x415ff6
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x415ff6
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call ebx
push dword [esp + 0x14]
lea eax, [esp + 0x40]
push 0x104
push eax
call fcn.00433dd5
add esp, 0xc
lea eax, [esp + 0x3c]
push 0x5c
push eax
call fcn.00432fb2
add esp, 8
test eax, eax
je 0x41603c
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x41603c
lea ecx, [esp + 0x3c]
call fcn.0041c800
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.0041c1c0
mov edx, dword [esp + 0x28]
add esp, 4
lea edx, [edx + 0x24]
push str.ApplicationDataProfilesBFVDesktop3.js
lea ecx, [esp + 0x14]
call fcn.0040bce0
add esp, 4
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x66c], 0x15
call fcn.00401a10
mov byte [esp + 0x668], 0xd
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41609c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.BFVDesktop3.js
lea edx, [esp + 0x24]
lea ecx, [esp + 0x14]
call fcn.0040bce0
add esp, 4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x66c], 0x16
call fcn.00401a10
mov byte [esp + 0x668], 0xd
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4160e8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.00401a10
mov esi, dword [esp + 0x1c]
push esi
call ebx
test eax, eax
jne 0x41611b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41611b
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call ebx
push dword [esp + 0x14]
lea eax, [esp + 0x40]
push 0x104
push eax
call fcn.00433dd5
add esp, 0xc
lea eax, [esp + 0x3c]
push 0x5c
push eax
call fcn.00432fb2
add esp, 8
test eax, eax
je 0x416161
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x416161
lea ecx, [esp + 0x3c]
call fcn.0041c800
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.0041c1c0
mov edx, dword [esp + 0x28]
add esp, 4
lea edx, [edx + 0x24]
push str.ApplicationDataProfilesBFVDesktop4.js
lea ecx, [esp + 0x14]
call fcn.0040bce0
add esp, 4
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x66c], 0x17
call fcn.00401a10
mov byte [esp + 0x668], 0xd
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4161c1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.BFVDesktop4.js
lea edx, [esp + 0x24]
lea ecx, [esp + 0x14]
call fcn.0040bce0
add esp, 4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x66c], 0x18
call fcn.00401a10
mov byte [esp + 0x668], 0xd
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41620d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.00401a10
mov esi, dword [esp + 0x1c]
push esi
call ebx
test eax, eax
jne 0x416240
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x416240
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call ebx
push dword [esp + 0x14]
lea eax, [esp + 0x40]
push 0x104
push eax
call fcn.00433dd5
add esp, 0xc
lea eax, [esp + 0x3c]
push 0x5c
push eax
call fcn.00432fb2
add esp, 8
test eax, eax
je 0x416286
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x416286
lea ecx, [esp + 0x3c]
call fcn.0041c800
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.0041c1c0
mov edx, dword [esp + 0x28]
add esp, 4
lea edx, [edx + 0x24]
push str.ApplicationDataProfilesBFVDesktop9.js
lea ecx, [esp + 0x14]
call fcn.0040bce0
add esp, 4
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x66c], 0x19
call fcn.00401a10
mov byte [esp + 0x668], 0xd
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4162e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.BFVDesktop9.js
lea edx, [esp + 0x24]
lea ecx, [esp + 0x14]
call fcn.0040bce0
add esp, 4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x66c], 0x1a
call fcn.00401a10
mov byte [esp + 0x668], 0xd
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x416332
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.00401a10
mov esi, dword [esp + 0x1c]
push esi
call ebx
test eax, eax
jne 0x416365
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x416365
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call ebx
push dword [esp + 0x14]
lea eax, [esp + 0x40]
push 0x104
push eax
call fcn.00433dd5
add esp, 0xc
lea eax, [esp + 0x3c]
push 0x5c
push eax
call fcn.00432fb2
add esp, 8
test eax, eax
je 0x4163ab
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4163ab
lea ecx, [esp + 0x3c]
call fcn.0041c800
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.0041c1c0
mov edx, dword [esp + 0x28]
add esp, 4
lea edx, [edx + 0x24]
push str.ApplicationDataProfilesBFVDesktopUrlConfig.ini
lea ecx, [esp + 0x14]
call fcn.0040bce0
add esp, 4
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x66c], 0x1b
call fcn.00401a10
mov byte [esp + 0x668], 0xd
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41640b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.BFVDesktopUrlConfig.ini
lea edx, [esp + 0x24]
lea ecx, [esp + 0x14]
call fcn.0040bce0
add esp, 4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x66c], 0x1c
call fcn.00401a10
mov byte [esp + 0x668], 0xd
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x416457
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.00401a10
mov esi, dword [esp + 0x1c]
push esi
call ebx
test eax, eax
jne 0x41648a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41648a
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call ebx
push 0
push dword [esp + 0x18]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push str.BFVDesktopMdupdate.xml
lea edx, [esp + 0x24]
lea ecx, [esp + 0x14]
call fcn.0040bce0
add esp, 4
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x66c], 0x1d
call fcn.00401a10
mov byte [esp + 0x668], 0xd
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4164e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [esp + 0x1c]
push esi
call ebx
test eax, eax
jne 0x41650b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41650b
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call ebx
mov esi, dword [esp + 0x24]
push str.ApplicationDataProfilesLoading_
lea edx, [esi + 0x24]
lea ecx, [esp + 0x14]
call fcn.0040bce0
add esp, 4
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x66c], 0x1e
call fcn.00401a10
mov byte [esp + 0x668], 0xd
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41655a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.Loading_
lea edx, [esp + 0x24]
lea ecx, [esp + 0x14]
call fcn.0040bce0
add esp, 4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x66c], 0x1f
call fcn.00401a10
mov byte [esp + 0x668], 0xd
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4165a6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.00401a10
mov ecx, dword [esp + 0x1c]
xor edx, edx
call fcn.0041c960
push str.ApplicationDataProfilesSkin_
lea edx, [esi + 0x24]
lea ecx, [esp + 0x14]
call fcn.0040bce0
add esp, 4
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x66c], 0x20
call fcn.00401a10
mov byte [esp + 0x668], 0xd
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41660a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.Skin_
lea edx, [esp + 0x24]
lea ecx, [esp + 0x14]
call fcn.0040bce0
add esp, 4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x66c], 0x21
call fcn.00401a10
mov byte [esp + 0x668], 0xd
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x416656
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.00401a10
mov esi, dword [esp + 0x1c]
xor edx, edx
mov ecx, esi
call fcn.0041c960
mov ecx, dword [esp + 0x14]
call fcn.0041c800
push 8
push dword [esp + 0x18]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x41669f
push dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
push dword [esp + 0x1c]
call fcn.00416b00
mov edx, dword [esp + 0x24]
push str.ApplicationDataProfilesTips_
lea edx, [edx + 0x24]
lea ecx, [esp + 0x14]
call fcn.0040bce0
add esp, 4
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x66c], 0x22
call fcn.00401a10
mov byte [esp + 0x668], 0xd
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4166ee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.Tips_
lea edx, [esp + 0x24]
lea ecx, [esp + 0x14]
call fcn.0040bce0
add esp, 4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x66c], 0x23
call fcn.00401a10
mov byte [esp + 0x668], 0xd
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41673a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.theme.js
lea edx, [esp + 0x18]
lea ecx, [esp + 0x34]
call fcn.0040bce0
add esp, 4
mov byte [esp + 0x668], 0x24
push dword [esp + 0x30]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41679a
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.00401a10
mov esi, dword [esp + 0x1c]
xor edx, edx
mov ecx, esi
call fcn.0041c960
mov ecx, dword [esp + 0x14]
call fcn.0041c800
push dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
push dword [esp + 0x1c]
call fcn.00416b00
xor eax, eax
push 0x206
push eax
mov word [esp + 0x24c], ax
lea eax, [esp + 0x24e]
push eax
call fcn.00434de0
add esp, 0xc
lea eax, [esp + 0x244]
push 1
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.BaofengBFVKanDianYing_temp_
lea eax, [esp + 0x248]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [esp + 0x24]
push str.ApplicationData_temp_
lea edx, [edx + 0x24]
lea ecx, [esp + 0x14]
call fcn.0040bce0
add esp, 4
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x66c], 0x25
call fcn.00401a10
mov byte [esp + 0x668], 0x24
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x416830
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [esp + 0x244]
lea ecx, [edx + 2]
lea ebx, [ebx]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x416840
sub edx, ecx
sar edx, 1
push edx
lea eax, [esp + 0x248]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402300
push dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
push dword [esp + 0x1c]
call fcn.00416b00
mov edx, dword [esp + 0x24]
push str.ApplicationData_
lea edx, [edx + 0x24]
lea ecx, [esp + 0x30]
call fcn.0040bce0
add esp, 4
mov byte [esp + 0x668], 0x26
mov ecx, dword [esp + 0x2c]
xor edx, edx
call fcn.0041c960
push str.menu.xml
lea edx, [esp + 0x24]
lea ecx, [esp + 0x14]
call fcn.0040bce0
add esp, 4
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x66c], 0x27
call fcn.00401a10
mov byte [esp + 0x668], 0x26
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4168e9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x2c]
push eax
mov dword [esp + 0x28], eax
call ebx
test eax, eax
jne 0x41691b
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41691b
and eax, 0xfffffffe
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 0x24]
call ebx
mov byte [esp + 0x668], 0x24
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x416940
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x668], 0xd
mov edx, dword [esp + 0x30]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x416965
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x668], 0xc
mov edx, dword [esp + 0x34]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41698a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x668], 5
mov edx, dword [esp + 0x28]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4169af
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [esp + 0x668], 4
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4169d0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x668], 3
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4169f5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x668], 2
mov edx, dword [esp + 0x18]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x416a1a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x668], 0xffffffff
mov edx, dword [esp + 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x416a40
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x660]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x648]
xor ecx, esp
call fcn.00431c68
mov esp, ebp
pop ebp
ret