Function at 0x140137580
Capabilities:
Copy file

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xb0
mov qword [rbp - 0x59], 0xfffffffffffffffe
mov qword [rsp + 0x100], rbx
mov rax, qword [0x14027e238]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rbx, rdx
mov r13, rcx
mov qword [rbp - 0x51], rdx
cmp byte [rcx], 0
jne 0x1401375ff
mov r8, qword [rdx + 0x18]
cmp r8, 8
jb 0x1401375dd
inc r8
mov rdx, qword [rdx]
mov rcx, rbx
call fcn.1400be810
mov qword [rbx + 0x18], 7
xor edi, edi
mov qword [rbx + 0x10], rdi
cmp qword [rbx + 0x18], 8
jb 0x1401375f5
mov rbx, qword [rbx]
mov eax, 0xffffffe9
jmp 0x140137897
mov qword [rbp - 0x31], 7
xor edi, edi
mov qword [rbp - 0x39], rdi
mov word [rbp - 0x49], di
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x49]
call fcn.1400be8c0
nop
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], rdi
mov word [rbp - 9], di
xor r8d, r8d
lea rdx, [0x140227194]
lea rcx, [rbp - 9]
call fcn.1400be520
nop
mov qword [rbp - 0x11], 7
mov qword [rbp - 0x19], rdi
mov word [rbp - 0x29], di
lea r8d, [rdi + 1]
lea rdx, [0x140227bb0]
lea rcx, [rbp - 0x29]
call fcn.1400be520
nop
lea rdx, [rbp - 0x29]
mov r12, qword [rbp - 0x29]
mov r14, qword [rbp - 0x11]
cmp r14, 8
cmovae rdx, r12
mov r15, qword [rbp - 0x19]
mov r9, r15
xor r8d, r8d
lea rcx, [rbp - 0x49]
call fcn.1400be3d0
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1401376f5
nop dword [rax + rax]
mov qword [rsp + 0x28], 0xffffffffffffffff
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 9]
mov r8, r15
mov rdx, rsi
lea rcx, [rbp - 0x49]
call fcn.1400c65f0
lea rdx, [rbp - 0x29]
mov r12, qword [rbp - 0x29]
mov r14, qword [rbp - 0x11]
cmp r14, 8
cmovae rdx, r12
mov r8, qword [rbp + 7]
add r8, rsi
mov r15, qword [rbp - 0x19]
mov r9, r15
lea rcx, [rbp - 0x49]
call fcn.1400be3d0
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1401376a0
cmp r14, 8
jb 0x14013770b
lea r8, [r14 + 1]
mov rdx, r12
lea rcx, [rbp - 0x29]
call fcn.1400be810
mov qword [rbp - 0x11], 7
mov qword [rbp - 0x19], rdi
mov word [rbp - 0x29], di
mov r8, qword [rbp + 0xf]
cmp r8, 8
jb 0x140137735
inc r8
mov rdx, qword [rbp - 9]
lea rcx, [rbp - 9]
call fcn.1400be810
lea rdx, [rbp - 0x49]
mov rcx, r13
call fcn.140137ef0
lea rdx, [r13 + 8]
lea r8, [rbp - 0x49]
lea rcx, [rbp - 9]
call fcn.1400c5640
mov rsi, rax
lea rax, [rbp - 0x49]
cmp rax, rsi
je 0x140137795
mov r8, qword [rbp - 0x31]
cmp r8, 8
jb 0x140137778
inc r8
mov rdx, qword [rbp - 0x49]
lea rcx, [rbp - 0x49]
call fcn.1400be810
mov qword [rbp - 0x31], 7
mov qword [rbp - 0x39], rdi
mov word [rbp - 0x49], di
mov rdx, rsi
lea rcx, [rbp - 0x49]
call fcn.1400be780
nop
mov r8, qword [rbp + 0xf]
cmp r8, 8
jb 0x1401377af
inc r8
mov rdx, qword [rbp - 9]
lea rcx, [rbp - 9]
call fcn.1400be810
lea rdx, [rbp - 0x49]
cmp qword [rbp - 0x31], 8
cmovae rdx, qword [rbp - 0x49]
cmp qword [rbx + 0x18], 8
jb 0x1401377c9
mov rcx, qword [rbx]
jmp 0x1401377cc
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14013783d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov r8, qword [rbp - 0x31]
cmp r8, 8
jb 0x1401377fa
inc r8
mov rdx, qword [rbp - 0x49]
lea rcx, [rbp - 0x49]
call fcn.1400be810
mov qword [rbp - 0x31], 7
mov qword [rbp - 0x39], rdi
mov word [rbp - 0x49], di
mov r8, qword [rbx + 0x18]
cmp r8, 8
jb 0x140137822
inc r8
mov rdx, qword [rbx]
mov rcx, rbx
call fcn.1400be810
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rdi
cmp qword [rbx + 0x18], 8
jb 0x140137838
mov rbx, qword [rbx]
or eax, 0xffffffff
jmp 0x140137897
mov r8, qword [rbp - 0x31]
cmp r8, 8
jb 0x140137857
inc r8
mov rdx, qword [rbp - 0x49]
lea rcx, [rbp - 0x49]
call fcn.1400be810
mov qword [rbp - 0x31], 7
mov qword [rbp - 0x39], rdi
mov word [rbp - 0x49], di
mov r8, qword [rbx + 0x18]
cmp r8, 8
jb 0x14013787f
inc r8
mov rdx, qword [rbx]
mov rcx, rbx
call fcn.1400be810
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rdi
cmp qword [rbx + 0x18], 8
jb 0x140137895
mov rbx, qword [rbx]
xor eax, eax
mov word [rbx], di
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1401646e0
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret