Function at 0x4dffb0
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x606538
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push edi
push eax
push ecx
push str.CUsrEngSyncModule::OnDownloadComplete___s___s___d___d
mov ecx, ebx
call fcn.004c6880
add esp, 0x14
test edi, edi
je 0x4e003e
push edi
push 0x633154
mov ecx, ebx
call fcn.004c6880
mov edx, dword [ebx]
mov eax, dword [edx + 0x18]
add esp, 8
mov ecx, ebx
call eax
fld1
fstp dword [ebx + 0xc]
mov dword [ebx + 0x14], edi
mov dword [ebx + 8], 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp esi, 0xc8
je 0x4e0070
cmp esi, 0x194
je 0x4e0070
lea edi, [esi + 0x2710]
mov esi, ebx
call fcn.004c5d60
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push 1
lea eax, [esp + 0x14]
push eax
call edx
mov dword [esp + 0x40], 0
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 0xc]
test eax, eax
jle 0x4e00bf
lea ecx, [eax - 1]
test ecx, ecx
jl 0x4e0225
cmp ecx, eax
jg 0x4e0225
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x4e00bf
mov edx, 0x62454c
lea edi, [esp + 0x10]
call fcn.0040ae60
push 0xb
push 0x62573c
lea eax, [esp + 0x18]
push eax
call fcn.0040aee0
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push 3
lea eax, [esp + 0x18]
push eax
call edx
mov byte [esp + 0x40], 1
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x4e011c
lea ecx, [eax - 1]
test ecx, ecx
jl 0x4e0225
cmp ecx, eax
jg 0x4e0225
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x4e011c
mov edx, 0x62454c
lea edi, [esp + 0x14]
call fcn.0040ae60
push 0xb
push 0x62573c
lea eax, [esp + 0x1c]
push eax
call fcn.0040aee0
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
mov edx, dword [0x677600]
mov edi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x62573c
push edi
push str.__u__s
lea edi, [esp + 0x24]
mov byte [esp + 0x4c], 2
call fcn.0040ac80
add esp, 0xc
cmp esi, 0x194
jne 0x4e02c2
test byte [ebx + 0x10], 2
je 0x4e02b4
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4e029e
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov esi, esp
call fcn.0040a210
add eax, 0x10
mov dword [esi], eax
call fcn.004e1180
test eax, eax
je 0x4e0288
mov eax, dword [ebx + 4]
push 0x63494c
lea edx, [esp + 0x20]
push edx
push eax
call fcn.004c5f50
mov byte [esp + 0x40], 3
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push ecx
push edx
call esi
test eax, eax
je 0x4e0271
mov eax, dword [esp + 0x1c]
push eax
push eax
call fcn.004c6090
add esp, 8
test eax, eax
jne 0x4e022f
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
push edx
mov edx, dword [esp + 0x1c]
push edx
push ebx
call eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 0
push ecx
push edx
call esi
jmp 0x4e0238
push 0x80070057
call fcn.00403650
mov edi, eax
mov esi, ebx
call fcn.004c5d60
lea ecx, [esp + 0x1c]
call fcn.00403870
lea ecx, [esp + 0x18]
call fcn.00403870
lea ecx, [esp + 0x14]
call fcn.00403870
lea ecx, [esp + 0x10]
call fcn.00403870
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xor edi, edi
mov esi, ebx
call fcn.004c5d60
lea ecx, [esp + 0x1c]
call fcn.00403870
jmp 0x4e062c
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
mov esi, ebx
call fcn.004c5d60
jmp 0x4e0241
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
mov esi, ebx
call fcn.004c5d60
jmp 0x4e0241
xor edi, edi
mov esi, ebx
call fcn.004c5d60
jmp 0x4e062c
mov esi, dword [ebp + 0xc]
push esi
push esi
call fcn.004c62b0
add esp, 8
test eax, eax
jge 0x4e02fa
mov edi, eax
mov esi, ebx
call fcn.004c5d60
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4e0645
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push ecx
mov ecx, esi
call fcn.00409dd0
call fcn.004e1180
test eax, eax
jne 0x4e03ee
test byte [ebx + 0x10], 2
je 0x4e0293
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4e0488
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov edi, esp
call fcn.0040a210
add eax, 0x10
mov dword [edi], eax
call fcn.004e1180
test eax, eax
je 0x4e046f
mov ecx, dword [ebx + 4]
push 0x63494c
lea eax, [esp + 0x24]
push eax
push ecx
call fcn.004c5f50
mov byte [esp + 0x40], 4
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push edx
push eax
call edi
test eax, eax
je 0x4e03d7
mov eax, dword [esp + 0x20]
push eax
push eax
call fcn.004c6090
add esp, 8
test eax, eax
jne 0x4e03c5
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
push ebx
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0
push eax
push ecx
call edi
lea ecx, [esp + 0x20]
jmp 0x4e023c
xor edi, edi
mov esi, ebx
call fcn.004c5d60
lea ecx, [esp + 0x20]
jmp 0x4e023c
xor edi, edi
mov esi, ebx
call fcn.004c5d60
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 2
call fcn.00403870
lea esi, [esp + 0x28]
call fcn.004e1ba0
mov edi, dword [ebp + 0xc]
mov ecx, esi
push ecx
push ecx
mov edx, esp
mov dword [esp + 0x2c], esp
push edx
mov ecx, edi
mov byte [esp + 0x4c], 5
call fcn.00409dd0
call fcn.004e0af0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4e0491
mov ecx, dword [esp + 0x10]
push ecx
push str.File_not_exist_t_s
mov ecx, ebx
call fcn.004c6880
mov edx, dword [esp + 0x1c]
add esp, 8
push 0
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [ebx]
mov edx, dword [eax + 0x3c]
mov ecx, esi
push ecx
mov ecx, ebx
call edx
xor edi, edi
mov esi, ebx
call fcn.004c5d60
lea eax, [esp + 0x28]
mov byte [esp + 0x40], 2
call fcn.004e2560
jmp 0x4e0241
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
mov esi, ebx
call fcn.004c5d60
jmp 0x4e0241
mov eax, dword [esp + 0x14]
jmp 0x4e028c
mov ecx, dword [ebx + 4]
push 0x63494c
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.004c5f50
lea edx, [esp + 0x28]
mov byte [esp + 0x40], 6
mov eax, dword [esp + 0x1c]
push edx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
call fcn.0040a210
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x40]
mov ecx, ebx
call edx
test eax, eax
je 0x4e0507
push str.Combine_error
mov ecx, ebx
call fcn.004c6880
add esp, 4
xor edi, edi
mov esi, ebx
call fcn.004c5d60
lea ecx, [esp + 0x1c]
call fcn.00403870
lea eax, [esp + 0x28]
mov byte [esp + 0x40], 2
call fcn.004e2560
jmp 0x4e0241
mov eax, dword [ebx + 0x10]
cmp eax, 1
jne 0x4e055e
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4e053f
mov edx, dword [ebx]
mov edx, dword [edx + 0x3c]
lea eax, [esp + 0x28]
push eax
mov ecx, ebx
call edx
mov eax, dword [esp + 0x14]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x4e0615
xor edi, edi
mov esi, ebx
call fcn.004c5d60
mov eax, dword [esp + 0x14]
mov edi, dword [ebp + 0xc]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x4e0615
cmp eax, 2
jne 0x4e0586
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4e05d4
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x4e05d4
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4e05cb
mov edx, dword [esp + 0x1c]
push edx
push str.Combine_file_:__s
mov ecx, ebx
call fcn.004c6880
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
add esp, 8
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [ebx]
mov edx, dword [edx + 0x3c]
lea eax, [esp + 0x28]
push eax
mov ecx, ebx
call edx
jmp 0x4e05d4
xor edi, edi
mov esi, ebx
call fcn.004c5d60
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4e060c
mov eax, dword [esp + 0x1c]
push eax
push eax
call fcn.004c6090
add esp, 8
test eax, eax
jne 0x4e060c
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
push eax
mov eax, dword [esp + 0x1c]
push eax
push ebx
call edx
jmp 0x4e0615
xor edi, edi
mov esi, ebx
call fcn.004c5d60
lea ecx, [esp + 0x1c]
call fcn.00403870
lea eax, [esp + 0x28]
mov byte [esp + 0x40], 2
call fcn.004e2560
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e0651
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e0676
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e069e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10