Function at 0x140024d00
Capabilities:
Copy file

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rax, qword [0x14026be10]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rcx, [0x14021c7c8]
call fcn.1406975d3
nop
mov r8, rax
lea rcx, [rsp + 0x48]
call fcn.140025c20
mov rbx, rax
lea rcx, [0x14021c798]
call fcn.1406975d3
nop
mov r8, rax
lea rcx, [rsp + 0x28]
call fcn.140025c20
cmp qword [rbx + 0x18], 0x10
jb 0x140024d68
mov rbx, qword [rbx]
cmp qword [rax + 0x18], 0x10
jb 0x140024d72
mov rax, qword [rax]
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
setne sil
mov rax, qword [rsp + 0x40]
cmp rax, 0x10
jb 0x140024ddf
inc rax
mov rcx, qword [rsp + 0x28]
cmp rax, 0x1000
jb 0x140024dda
test cl, 0x1f
je 0x140024dad
call fcn.14016fd1c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140024dbc
call fcn.14016fd1c
int3
sub rcx, rax
cmp rcx, 8
jae 0x140024dcb
call fcn.14016fd1c
int3
cmp rcx, 0x27
jbe 0x140024dd7
call fcn.14016fd1c
int3
mov rcx, rax
call fcn.14016945c
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], bl
mov rax, qword [rsp + 0x60]
cmp rax, 0x10
jb 0x140024e4b
inc rax
mov rcx, qword [rsp + 0x48]
cmp rax, 0x1000
jb 0x140024e46
test cl, 0x1f
je 0x140024e19
call fcn.14016fd1c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140024e28
call fcn.14016fd1c
int3
sub rcx, rax
cmp rcx, 8
jae 0x140024e37
call fcn.14016fd1c
int3
cmp rcx, 0x27
jbe 0x140024e43
call fcn.14016fd1c
int3
mov rcx, rax
call fcn.14016945c
lea rcx, [0x14021c818]
call fcn.1406975d3
nop
mov r8, rax
lea rcx, [rsp + 0x48]
call fcn.140025c20
mov rdi, rax
lea rcx, [0x14021c7e8]
call fcn.1406975d3
nop
mov r8, rax
lea rcx, [rsp + 0x28]
call fcn.140025c20
cmp qword [rdi + 0x18], 0x10
jb 0x140024e8c
mov rdi, qword [rdi]
cmp qword [rax + 0x18], 0x10
jb 0x140024e96
mov rax, qword [rax]
xor r8d, r8d
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
setne dil
mov rax, qword [rsp + 0x40]
cmp rax, 0x10
jb 0x140024f03
inc rax
mov rcx, qword [rsp + 0x28]
cmp rax, 0x1000
jb 0x140024efe
test cl, 0x1f
je 0x140024ed1
call fcn.14016fd1c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140024ee0
call fcn.14016fd1c
int3
sub rcx, rax
cmp rcx, 8
jae 0x140024eef
call fcn.14016fd1c
int3
cmp rcx, 0x27
jbe 0x140024efb
call fcn.14016fd1c
int3
mov rcx, rax
call fcn.14016945c
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], 0
mov rax, qword [rsp + 0x60]
cmp rax, 0x10
jb 0x140024f6e
inc rax
mov rcx, qword [rsp + 0x48]
cmp rax, 0x1000
jb 0x140024f69
test cl, 0x1f
je 0x140024f3c
call fcn.14016fd1c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140024f4b
call fcn.14016fd1c
int3
sub rcx, rax
cmp rcx, 8
jae 0x140024f5a
call fcn.14016fd1c
int3
cmp rcx, 0x27
jbe 0x140024f66
call fcn.14016fd1c
int3
mov rcx, rax
call fcn.14016945c
test sil, sil
je 0x140024f7d
test dil, dil
je 0x140024f7d
mov ebx, 1
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140168e10
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret