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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a8538
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5f13cc]
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.004aee70
add esp, 0x14
test edi, edi
je 0x4c5d4e
push edi
push 0x5c7d24
mov ecx, ebx
call fcn.004aee70
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 0x4c5d80
cmp esi, 0x194
je 0x4c5d80
lea edi, [esi + 0x2710]
mov esi, ebx
call fcn.004ae350
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 0x4c5dcf
lea ecx, [eax - 1]
test ecx, ecx
jl 0x4c5f35
cmp ecx, eax
jg 0x4c5f35
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x4c5dcf
mov edx, 0x5bd0e8
lea edi, [esp + 0x10]
call fcn.00412930
push 0xb
push str.enguser.dat
lea eax, [esp + 0x18]
push eax
call fcn.00403fc0
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 0x4c5e2c
lea ecx, [eax - 1]
test ecx, ecx
jl 0x4c5f35
cmp ecx, eax
jg 0x4c5f35
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x4c5e2c
mov edx, 0x5bd0e8
lea edi, [esp + 0x14]
call fcn.00412930
push 0xb
push str.enguser.dat
lea eax, [esp + 0x1c]
push eax
call fcn.00403fc0
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
mov edx, dword [0x5fcd20]
mov edi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push str.enguser.dat
push edi
push str.__u__s
lea edi, [esp + 0x24]
mov byte [esp + 0x4c], 2
call fcn.004126f0
add esp, 0xc
cmp esi, 0x194
jne 0x4c5fd2
test byte [ebx + 0x10], 2
je 0x4c5fc4
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c5fae
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov esi, esp
call fcn.00403ce0
add eax, 0x10
mov dword [esi], eax
call fcn.004c6e80
test eax, eax
je 0x4c5f98
mov eax, dword [ebx + 4]
push 0x5c9394
lea edx, [esp + 0x20]
push edx
push eax
call fcn.004ae540
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 0x4c5f81
mov eax, dword [esp + 0x1c]
push eax
push eax
call fcn.004ae680
add esp, 8
test eax, eax
jne 0x4c5f3f
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 0x4c5f48
push 0x80070057
call fcn.00404550
mov edi, eax
mov esi, ebx
call fcn.004ae350
lea ecx, [esp + 0x1c]
call fcn.00404510
lea ecx, [esp + 0x18]
call fcn.00404510
lea ecx, [esp + 0x14]
call fcn.00404510
lea ecx, [esp + 0x10]
call fcn.00404510
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.004ae350
lea ecx, [esp + 0x1c]
call fcn.00404510
jmp 0x4c633c
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
mov esi, ebx
call fcn.004ae350
jmp 0x4c5f51
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
mov esi, ebx
call fcn.004ae350
jmp 0x4c5f51
xor edi, edi
mov esi, ebx
call fcn.004ae350
jmp 0x4c633c
mov esi, dword [ebp + 0xc]
push esi
push esi
call fcn.004ae8a0
add esp, 8
test eax, eax
jge 0x4c600a
mov edi, eax
mov esi, ebx
call fcn.004ae350
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 0x4c6355
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push ecx
mov ecx, esi
call fcn.00404460
call fcn.004c6e80
test eax, eax
jne 0x4c60fe
test byte [ebx + 0x10], 2
je 0x4c5fa3
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c6198
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov edi, esp
call fcn.00403ce0
add eax, 0x10
mov dword [edi], eax
call fcn.004c6e80
test eax, eax
je 0x4c617f
mov ecx, dword [ebx + 4]
push 0x5c9394
lea eax, [esp + 0x24]
push eax
push ecx
call fcn.004ae540
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 0x4c60e7
mov eax, dword [esp + 0x20]
push eax
push eax
call fcn.004ae680
add esp, 8
test eax, eax
jne 0x4c60d5
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 0x4c5f4c
xor edi, edi
mov esi, ebx
call fcn.004ae350
lea ecx, [esp + 0x20]
jmp 0x4c5f4c
xor edi, edi
mov esi, ebx
call fcn.004ae350
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 2
call fcn.00404510
lea esi, [esp + 0x28]
call fcn.004c7860
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.00404460
call fcn.004c67f0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4c61a1
mov ecx, dword [esp + 0x10]
push ecx
push str.File_not_exist_t_s
mov ecx, ebx
call fcn.004aee70
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.004ae350
lea eax, [esp + 0x28]
mov byte [esp + 0x40], 2
call fcn.004c81f0
jmp 0x4c5f51
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
mov esi, ebx
call fcn.004ae350
jmp 0x4c5f51
mov eax, dword [esp + 0x14]
jmp 0x4c5f9c
mov ecx, dword [ebx + 4]
push 0x5c9394
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.004ae540
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.00403ce0
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 0x4c6217
push str.Combine_error
mov ecx, ebx
call fcn.004aee70
add esp, 4
xor edi, edi
mov esi, ebx
call fcn.004ae350
lea ecx, [esp + 0x1c]
call fcn.00404510
lea eax, [esp + 0x28]
mov byte [esp + 0x40], 2
call fcn.004c81f0
jmp 0x4c5f51
mov eax, dword [ebx + 0x10]
cmp eax, 1
jne 0x4c626e
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c624f
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 0x4c6325
xor edi, edi
mov esi, ebx
call fcn.004ae350
mov eax, dword [esp + 0x14]
mov edi, dword [ebp + 0xc]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x4c6325
cmp eax, 2
jne 0x4c6296
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c62e4
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x4c62e4
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c62db
mov edx, dword [esp + 0x1c]
push edx
push str.Combine_file_:__s
mov ecx, ebx
call fcn.004aee70
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 0x4c62e4
xor edi, edi
mov esi, ebx
call fcn.004ae350
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c631c
mov eax, dword [esp + 0x1c]
push eax
push eax
call fcn.004ae680
add esp, 8
test eax, eax
jne 0x4c631c
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 0x4c6325
xor edi, edi
mov esi, ebx
call fcn.004ae350
lea ecx, [esp + 0x1c]
call fcn.00404510
lea eax, [esp + 0x28]
mov byte [esp + 0x40], 2
call fcn.004c81f0
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 0x4c6361
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 0x4c6386
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 0x4c63ae
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