Function at 0x48da10
Capabilities:
Check if file exists
Copy file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f04af
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x521390]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x23c]
lea edi, [esi + 0x23c]
sub eax, 0x10
mov dword [ebp - 0x260], esi
mov dword [ebp - 0x278], 1
mov dword [ebp - 0x274], edi
call fcn.0045c3c0
add eax, 0x10
mov dword [ebp - 0x270], eax
push 0xa
push str.Archive.7z
lea ebx, [ebp - 0x270]
mov dword [ebp - 4], 0
call fcn.0045a6d0
mov edi, dword [edi]
mov ecx, dword [ebp - 0x270]
push esi
push 0x48e030
call fcn.0045a350
add esp, 8
test eax, eax
je 0x48dac7
mov ebx, 0x3e9
lea edi, [esi + 0x274]
lea eax, [ebp - 0x260]
mov dword [ebp - 0x260], ebx
call fcn.0047d470
jmp 0x48dfcb
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.004cfd40
add esp, 0xc
push 1
push 0x23
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x48db3f
mov ecx, eax
movzx edi, cx
call fcn.0045a7d0
test eax, eax
je 0x48db74
push eax
mov eax, edi
lea edi, [ebp - 0x254]
call fcn.0045a980
jmp 0x48db74
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
jmp 0x48db50
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48db50
sub eax, edx
lea edx, [ebp - 0x218]
sar eax, 1
push edx
lea ecx, [ebp - 0x254]
push ecx
mov ebx, eax
call fcn.0045aa80
lea edx, [ebp - 0x254]
push edx
lea eax, [ebp - 0x258]
push eax
mov ebx, str.BaofengStormPlayerProfilesMovieList_
mov byte [ebp - 4], 2
call fcn.0045c1d0
mov byte [ebp - 4], 3
mov eax, dword [eax]
push 0
push eax
call fcn.0045b6d0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x258]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48dbc7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x1e
push str.BaofengStormPlayerProfiles_
lea ebx, [ebp - 0x254]
call fcn.0045a6d0
mov ecx, ebx
push ecx
lea edx, [ebp - 0x258]
push edx
mov ebx, str.DZone_
call fcn.0045c1d0
mov byte [ebp - 4], 4
mov eax, dword [eax]
push eax
call fcn.0045b570
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x258]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48dc22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x254]
push ecx
lea edx, [ebp - 0x25c]
push edx
mov ebx, str.DZoneDownloadConfig.xml
call fcn.0045c1d0
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x26c]
push ecx
mov ebx, str.DZoneDownloadList.xml
mov byte [ebp - 4], 5
call fcn.0045c1d0
lea edx, [ebp - 0x254]
push edx
lea eax, [ebp - 0x258]
push eax
mov ebx, 0x4fec98
mov byte [ebp - 4], 6
call fcn.0045c1d0
mov ecx, dword [ebp - 0x25c]
mov eax, dword [eax]
add esp, 0x18
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 0x258]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48dca9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x26c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48dccf
mov edx, dword [ebp - 0x26c]
push eax
mov eax, dword [ebp - 0x25c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push ecx
mov ecx, esp
lea edx, [ebp - 0x254]
mov dword [ebp - 0x258], esp
push edx
push ecx
mov ebx, str.Config.ini
call fcn.0045c1d0
add esp, 8
lea eax, [ebp - 0x2c0]
push eax
call fcn.0045c9d0
mov byte [ebp - 4], 7
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
push ecx
mov esi, esp
mov ecx, section..data
mov dword [ebp - 0x258], esp
mov dword [ebp - 0x264], esi
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, str.DZone
mov byte [ebp - 4], 8
test ecx, 0xffff0000
jne 0x48dd4c
mov edx, ecx
movzx edi, dx
call fcn.0045a7d0
test eax, eax
je 0x48dd5c
push eax
mov eax, edi
mov edi, esi
call fcn.0045a980
jmp 0x48dd5c
push str.DZone
push esi
mov ebx, 5
call fcn.0045aa80
mov byte [ebp - 4], 9
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
push ecx
mov esi, esp
mov dword [ebp - 0x264], esp
mov ecx, section..data
mov dword [ebp - 0x264], esi
call edx
add eax, 0x10
mov dword [esi], eax
mov eax, 0x4fe2d4
mov byte [ebp - 4], 0xa
test eax, 0xffff0000
jne 0x48ddad
mov ecx, eax
movzx edi, cx
call fcn.0045a7d0
test eax, eax
je 0x48ddbd
push eax
mov eax, edi
mov edi, esi
call fcn.0045a980
jmp 0x48ddbd
push 0x4fe2d4
push esi
mov ebx, 3
call fcn.0045aa80
mov byte [ebp - 4], 9
mov ebx, 7
lea edi, [ebp - 0x268]
lea esi, [ebp - 0x2c0]
mov byte [ebp - 4], bl
call fcn.0045cb50
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x268]
xor edx, edx
mov ecx, eax
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], dx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x48de02
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x234]
call fcn.00459050
lea ecx, [ebp - 0x234]
lea ebx, [ebp - 0x250]
mov byte [ebp - 4], 0xc
call fcn.004588d0
mov edi, 0x10
cmp dword [eax + 0x14], edi
jb 0x48de3e
mov eax, dword [eax]
push eax
call fcn.004cf3a4
add esp, 4
movzx esi, ax
cmp dword [ebp - 0x23c], edi
jb 0x48de61
mov eax, dword [ebp - 0x250]
push eax
call fcn.004cc431
add esp, 4
xor ebx, ebx
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x220], 8
mov dword [ebp - 0x23c], 0xf
mov dword [ebp - 0x240], ebx
mov byte [ebp - 0x250], bl
jb 0x48de95
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.004cc431
add esp, 4
mov edx, dword [ebp - 0x268]
cmp dword [edx - 0xc], ebx
je 0x48deb7
cmp si, 2
jg 0x48deb7
mov eax, dword [ebp - 0x25c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48df18
mov ecx, dword [ebp - 0x274]
push ecx
lea edx, [ebp - 0x258]
push edx
mov ebx, str.ApplicationDataProfilesDZoneDownloadConfig.xml
call fcn.0045c1d0
mov ecx, dword [ebp - 0x25c]
mov eax, dword [eax]
add esp, 8
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 0x258]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48df06
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x260]
mov dword [ecx + 0x238], 1
xor ebx, ebx
mov ecx, dword [ebp - 0x260]
call fcn.0048e060
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48df49
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [ebp - 0x2c0]
call fcn.0045ca90
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48df7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x25c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48dfa0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x254]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48dfc5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x278]
mov esi, dword [ebp - 0x270]
push ecx
add esi, 0xfffffff0
mov eax, esi
mov dword [ebp - 0x264], esp
mov edi, esp
call fcn.0045c3c0
add eax, 0x10
mov dword [edi], eax
call fcn.0045bb10
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48e011
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cbf11
mov esp, ebp
pop ebp
ret