Function at 0x1400ebe60
Capabilities:
Copy file

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1210]
mov eax, 0x1310
call fcn.14024c240
sub rsp, rax
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x1350], rbx
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x1200], rax
mov rbx, r9
mov qword [rsp + 0x68], rbx
mov rsi, r8
mov qword [rsp + 0x50], r8
mov r15, rdx
mov rdi, qword [rbp + 0x1270]
mov qword [rsp + 0x70], rdi
xor r8d, r8d
lea rdx, str.CBaseUtyMgr::CompareAndCopyFile
lea rcx, [rsp + 0x58]
call fcn.1400075a0
nop
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rsi
mov r9, r15
lea r8, str.lpszSrc___s__lpszSrcClr___s__lpszFolder___s__lpszColor___s
mov edx, 1
lea rcx, [rsp + 0x58]
call fcn.140007780
lea rcx, [rsp + 0x78]
call fcn.140105848
nop
mov edi, 2
mov dword [rsp + 0x48], edi
or r12d, 0xffffffff
lea r14d, [rdi - 1]
xor r13d, r13d
mov word [rbp - 0x50], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0x4e]
call fcn.14024b970
mov word [rbp + 0x1c0], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x1c2]
call fcn.14024b970
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xf0]
mov r13d, eax
test eax, eax
je 0x1400ebfdb
xor eax, eax
mov r12d, eax
mov word [rbp + 0xa00], ax
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp + 0xa02]
call fcn.14024b970
mov rcx, qword [0x1403b9750]
mov rdx, qword [rcx]
call qword [rdx + 0x48]
mov rdi, qword [rax]
lea r8, [rbp + 0xa00]
lea rdx, str.PDL_TYPE
mov rcx, rax
call qword [rdi + 0x18]
lea rsi, [rbp + 0xa00]
lea rdi, [0x1402ddbb8]
mov eax, 4
mov ecx, eax
repe cmpsw word [rsi], word [rdi]
mov edi, dword [rsp + 0x48]
cmove edi, eax
mov dword [rsp + 0x48], edi
mov rsi, qword [rsp + 0x50]
test r15, r15
je 0x1400ebfed
mov rdx, r15
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
test rsi, rsi
je 0x1400ec002
mov rdx, rsi
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp r12d, edi
jge 0x1400ec46d
test r13d, r13d
je 0x1400ec0a4
test r14d, r13d
je 0x1400ec456
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rdi, qword [rax]
mov edx, r12d
mov rcx, rax
call qword [rdi + pe_nt_image_headers64]
mov rdi, rax
mov rdx, r15
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rdx, rsi
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rbp - 0x50]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov rdx, rdi
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, rdi
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp - 0x50]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
cmp word [rbx], 0
je 0x1400ec276
or r8, 0xffffffffffffffff
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.140105958
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
xor r9d, r9d
lea r8, [rsp + 0x78]
mov rdx, r15
call qword [rax + 0x40]
xor esi, esi
mov rax, qword [rbp - 0x78]
movsxd rbx, eax
test eax, eax
jle 0x1400ec261
nop word [rax + rax]
mov rcx, qword [0x1403b9768]
test rsi, rsi
js 0x1400ec461
cmp rsi, rax
jge 0x1400ec461
mov rax, qword [rbp - 0x80]
mov rdi, qword [rcx]
mov r9d, 2
lea r8, [rbp + 0x7f0]
mov rdx, qword [rax + rsi*8]
call qword [rdi + 0x50]
lea r9, [rbp + 0x7f0]
mov r8, qword [rsp + 0x68]
lea rdx, [0x1402e3978]
lea rcx, [rbp + 0x5e0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, [rbp + 0x7f0]
mov r8, r15
lea rdx, [0x1402e3978]
lea rcx, [rbp + 0x3d0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
mov r9d, 1
lea r8, [rbp + 0x3d0]
lea rdx, [rbp + 0x5e0]
call qword [rax + 0x58]
test eax, eax
jle 0x1400ec227
xor r8d, r8d
lea rdx, [rbp + 0x3d0]
lea rcx, [rbp + 0x5e0]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1400ec250
mov qword [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x409
mov r8d, edi
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x1400ec215
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
lea r9, str._t_t_tCopyFile
lea r8, str.ApiName:__s__ErrorCode:__d_:__s
mov edx, 6
lea rcx, [rsp + 0x58]
call fcn.140007780
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400ec250
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400ec250
cmp eax, 0xffffffff
jne 0x1400ec250
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rdi, qword [rax]
lea r8, [0x1402e2d50]
lea rdx, str.DRVMDLEXIST
mov rcx, rax
call qword [rdi + 0x20]
inc rsi
cmp rsi, rbx
jge 0x1400ec261
mov rax, qword [rbp - 0x78]
jmp 0x1400ec0f0
or r8, 0xffffffffffffffff
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.140105958
mov rsi, qword [rsp + 0x50]
mov rax, qword [rsp + 0x70]
cmp word [rax], 0
je 0x1400ec443
or r8, 0xffffffffffffffff
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.140105958
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
xor r9d, r9d
lea r8, [rsp + 0x78]
mov rdx, rsi
call qword [rax + 0x40]
xor esi, esi
mov rax, qword [rbp - 0x78]
movsxd rbx, eax
test eax, eax
jle 0x1400ec433
nop
mov rcx, qword [0x1403b9768]
test rsi, rsi
js 0x1400ec467
cmp rsi, rax
jge 0x1400ec467
mov rax, qword [rbp - 0x80]
mov rdi, qword [rcx]
mov r9d, 2
lea r8, [rbp + 0x7f0]
mov rdx, qword [rax + rsi*8]
call qword [rdi + 0x50]
lea r9, [rbp + 0x7f0]
mov r8, qword [rsp + 0x50]
lea rdx, [0x1402e3978]
lea rcx, [rbp + 0x3d0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, [rbp + 0x7f0]
mov r8, qword [rsp + 0x70]
lea rdx, [0x1402e3978]
lea rcx, [rbp + 0x5e0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
mov r9d, 1
lea r8, [rbp + 0x3d0]
lea rdx, [rbp + 0x5e0]
call qword [rax + 0x58]
test eax, eax
jle 0x1400ec3f9
xor r8d, r8d
lea rdx, [rbp + 0x3d0]
lea rcx, [rbp + 0x5e0]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1400ec422
mov qword [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x409
mov r8d, edi
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x1400ec3e7
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
lea r9, str._t_t_tCopyFile
lea r8, str.ApiName:__s__ErrorCode:__d_:__s
mov edx, 6
lea rcx, [rsp + 0x58]
call fcn.140007780
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400ec422
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400ec422
cmp eax, 0xffffffff
jne 0x1400ec422
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rdi, qword [rax]
lea r8, [0x1402e2d50]
lea rdx, str.DRVMDLEXIST
mov rcx, rax
call qword [rdi + 0x20]
inc rsi
cmp rsi, rbx
jge 0x1400ec433
mov rax, qword [rbp - 0x78]
jmp 0x1400ec2c0
or r8, 0xffffffffffffffff
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.140105958
test r13d, r13d
je 0x1400ec46d
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x68]
mov edi, dword [rsp + 0x48]
add r14d, r14d
inc r12d
jmp 0x1400ec002
call fcn.140102ffc
int3
call fcn.140102ffc
int3
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x58]
call fcn.140007780
nop
lea rcx, [rsp + 0x78]
call fcn.140105ce4
nop
lea rcx, [rsp + 0x58]
call fcn.140007730
xor eax, eax
mov rcx, qword [rbp + 0x1200]
xor rcx, rsp
call fcn.140245660
mov rbx, qword [rsp + 0x1350]
add rsp, 0x1310
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret