Function at 0x140029e00
Capabilities:
Copy file

Disassembly:
push rbp
push rsi
push rdi
push r12
push r14
mov eax, 0x1d0
call fcn.140189b00
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x210], rbx
mov rax, qword [0x1401f3660]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor ebx, ebx
mov dword [rsp + 0x40], ebx
mov eax, dword [0x14023c830]
test al, 1
jne 0x140029e80
or eax, 1
mov dword [0x14023c830], eax
mov qword [0x14023c828], 0xf
mov qword [0x14023c820], rbx
mov byte [0x14023c810], bl
lea rcx, [0x14018c780]
call fcn.1400428b0
cmp qword [0x14023c820], rbx
jne 0x140029e95
lea rcx, [0x14023c808]
call fcn.14002e080
mov qword [rdi + 0x20], reloc.WS2_32.dll_ntohs
mov qword [rdi + 0x18], rbx
lea r12, [rdi + 8]
mov byte [r12], bl
or r14, 0xffffffffffffffff
mov r9, r14
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call fcn.1400023d0
mov dword [rsp + 0x40], 1
mov rax, qword [rsi + 0x18]
cmp rax, 1
jb 0x14002a0cd
add rax, r14
cmp rax, r14
cmova rax, r14
cmp qword [rsi + 0x20], 0x10
jb 0x140029eef
lea rbp, [rsi + 8]
mov rcx, qword [rbp]
jmp 0x140029ef6
lea rbp, [rsi + 8]
mov rcx, rbp
lea rbx, [rcx + rax]
nop
nop
cmp byte [rbx], 0x5c
jne 0x140029f0f
mov al, byte [rbx]
cmp al, byte [0x1401cd150]
je 0x140029f26
mov rcx, rsi
call fcn.1400023b0
cmp rbx, rax
je 0x14002a0c8
sub rbx, 1
jmp 0x140029f00
cmp qword [rsi + 0x20], 0x10
jb 0x140029f33
mov rax, qword [rbp]
jmp 0x140029f36
mov rax, rbp
sub rbx, rax
cmp rbx, 0xffffffffffffffff
je 0x14002a0c3
lea r8, [rbx + 1]
mov r9, r14
lea rdx, [rsp + 0x80]
mov rcx, rsi
call fcn.14001dc90
nop
mov byte [rsp + 0xb0], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0xb1]
call fcn.140041940
lea rbx, [rsp + 0x88]
cmp qword [rsp + 0xa0], 0x10
cmovae rbx, qword [rsp + 0x88]
xor ecx, ecx
call fcn.1400411e0
mov r9, rax
mov qword [rsp + 0x20], rbx
lea r8, str._d__s
mov edx, 0x103
lea rcx, [rsp + 0xb0]
call fcn.1400418a0
lea r8, [rsp + 0xb0]
lea rdx, [0x14023c808]
lea rcx, [rsp + 0x58]
call fcn.1400110d0
nop
mov r9, r14
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
call fcn.1400023d0
nop
cmp qword [rsp + 0x78], 0x10
jb 0x140029ff8
mov rcx, qword [rsp + 0x60]
call fcn.140041700
cmp qword [rdi + 0x20], 0x10
jb 0x14002a005
mov rcx, qword [r12]
jmp 0x14002a008
mov rcx, r12
cmp qword [rsi + 0x20], 0x10
jb 0x14002a015
mov rax, qword [rbp]
jmp 0x14002a018
mov rax, rbp
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
lea rbx, str.BackupFileForUploadFile
mov qword [rsp + 0x20], rbx
lea r9, str._s___Backup_file__s___new__s_
mov r8d, 0x67
lea rdx, str..cnttmss_AtseScan.cpp
lea ecx, [r8 - 0x23]
call fcn.1400382e0
cmp qword [rdi + 0x20], 0x10
jb 0x14002a056
mov r12, qword [r12]
cmp qword [rsi + 0x20], 0x10
jb 0x14002a061
mov rbp, qword [rbp]
xor r8d, r8d
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x14002a0a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
lea r9, str._s___Copy_failed._Error__d_
mov r8d, 0x69
lea rdx, str..cnttmss_AtseScan.cpp
lea ecx, [r8 - 0x25]
call fcn.1400382e0
nop
cmp qword [rsp + 0xa0], 0x10
jb 0x14002a0be
mov rcx, qword [rsp + 0x88]
call fcn.140041700
mov rax, rdi
jmp 0x14002a0d0
mov rax, rdi
jmp 0x14002a0d0
mov rax, rdi
jmp 0x14002a0d0
mov rax, rdi
jmp 0x14002a0d0
mov rax, rdi
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140041910
mov rbx, qword [rsp + 0x210]
add rsp, 0x1d0
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret