Function at 0x140027a10
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x150], rbx
mov rax, qword [0x1400e5430]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r13d, edx
mov r15, rcx
mov rax, qword [rcx]
call qword [rax + 0x40]
mov rbx, rax
mov qword [rsp + 0x28], rax
mov rax, qword [rax]
mov rcx, rbx
call qword [rax + htons]
nop
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x18]
lea r14d, [r13 - 1]
xor edi, edi
cmp r14, 1
jb 0x140027c04
nop
mov rdx, r14
lea rcx, [rbp - 0x69]
call fcn.140027610
mov rsi, rax
lea rcx, [0x1400c8ae4]
call fcn.14036b37a
nop
mov r8, rax
lea rdx, [r15 + 0x20]
lea rcx, [rbp - 0x29]
call fcn.14001ab00
nop
mov r8, rsi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140027fe0
nop
cmp qword [rbp - 0x11], 8
jb 0x140027ace
mov rcx, qword [rbp - 0x29]
call fcn.14007f05c
mov qword [rbp - 0x11], 7
mov qword [rbp - 0x19], rdi
mov word [rbp - 0x29], di
cmp qword [rbp - 0x51], 8
jb 0x140027aee
mov rcx, qword [rbp - 0x69]
call fcn.14007f05c
mov qword [rbp - 0x51], 7
mov qword [rbp - 0x59], rdi
mov word [rbp - 0x69], di
lea rcx, [rsp + 0x50]
cmp qword [rbp - 0x71], 8
cmovae rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140027be6
test al, 0x10
jne 0x140027be6
lea rdx, [r14 + 1]
lea rcx, [rbp - 9]
call fcn.140027610
mov rsi, rax
lea rcx, [0x1400c8ae4]
call fcn.14036b37a
nop
mov r8, rax
lea rdx, [r15 + 0x20]
lea rcx, [rbp - 0x49]
call fcn.14001ab00
nop
mov r8, rsi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140027fe0
nop
cmp qword [rbp - 0x31], 8
jb 0x140027b74
mov rcx, qword [rbp - 0x49]
call fcn.14007f05c
mov qword [rbp - 0x31], 7
mov qword [rbp - 0x39], rdi
mov word [rbp - 0x49], di
cmp qword [rbp + 0xf], 8
jb 0x140027b94
mov rcx, qword [rbp - 9]
call fcn.14007f05c
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x50]
cmp qword [rbp - 0x71], 8
cmovae rcx, qword [rsp + 0x50]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp qword [rsp + 0x48], 8
jb 0x140027bd3
mov rcx, qword [rsp + 0x30]
call fcn.14007f05c
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rdi
mov word [rsp + 0x30], di
cmp qword [rbp - 0x71], 8
jb 0x140027bf7
mov rcx, qword [rsp + 0x50]
call fcn.14007f05c
dec r14
cmp r14, 1
jae 0x140027a80
cmp r13d, 1
jb 0x140027c60
lea rsi, [r15 + 0x20]
lea rcx, [0x1400c83e8]
call fcn.14036b37a
nop
mov r8, rax
mov rdx, rsi
lea rcx, [rbp - 9]
call fcn.14001ab00
cmp qword [rax + 0x18], 8
jb 0x140027c34
mov rax, qword [rax]
cmp qword [rsi + 0x18], 8
jb 0x140027c3e
mov rsi, qword [rsi]
mov r8d, 1
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp qword [rbp + 0xf], 8
jb 0x140027c60
mov rcx, qword [rbp - 9]
call fcn.14007f05c
lea rdx, [r15 + 0x20]
cmp qword [rdx + 0x18], 8
jb 0x140027c6e
mov rdx, qword [rdx]
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rdi
mov word [rsp + 0x30], di
cmp word [rdx], 0
je 0x140027c9a
or rdi, 0xffffffffffffffff
nop dword [rax + rax]
inc rdi
cmp word [rdx + rdi*2], 0
jne 0x140027c90
mov r8, rdi
lea rcx, [rsp + 0x30]
call fcn.14000bc90
nop
mov rax, qword [r15]
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, r15
call qword [rax + 0x10]
nop
cmp qword [rsp + 0x48], 8
jb 0x140027ccd
mov rcx, qword [rsp + 0x30]
call fcn.14007f05c
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14007e1c0
mov rbx, qword [rsp + 0x150]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret