Function at 0x1400847a0
Capabilities:
Move file
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
lea rbp, [rsp - 0x2f0]
sub rsp, 0x3f0
mov rax, qword [0x1401f3df8]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
movzx esi, r8b
mov r12, rdx
mov rdi, rcx
mov ebx, 0x8fc
test rcx, rcx
je 0x140084bf3
test rdx, rdx
je 0x140084bf3
xor edx, edx
lea rcx, [rbp + 0x1c0]
mov r8d, 0x104
call fcn.140099b00
xor edx, edx
lea rcx, [rbp + 0xb0]
mov r8d, 0x104
call fcn.140099b00
xor eax, eax
lea rcx, [rbp + 0x40]
xor edx, edx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
lea r8d, [rax + 0x70]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
call fcn.140099b00
xor edx, edx
lea rcx, [rbp - 0x30]
lea r8d, [rdx + 0x70]
call fcn.140099b00
xor ebx, ebx
lea rcx, [rbp + 0x1c0]
mov r8, r12
mov edx, 0x104
lea r9, [rbx - 1]
call fcn.1400a6c98
mov edx, 0x104
lea rcx, [rbp + 0x1c0]
call fcn.1400c0fe0
cmp rax, 0x104
jne 0x1400848a3
mov byte [rbp + 0x2c3], bl
jmp 0x1400848c2
mov r9, 0xffffffffffffffff
lea r8, str.._tmp
mov edx, 0x104
lea rcx, [rbp + 0x1c0]
call fcn.1400d7df8
mov r9, 0xffffffffffffffff
lea rcx, [rbp + 0xb0]
mov r8, r12
mov edx, 0x104
call fcn.1400a6c98
mov edx, 0x104
lea rcx, [rbp + 0xb0]
call fcn.1400c0fe0
cmp rax, 0x104
jne 0x1400848fe
mov byte [rbp + 0x1b3], bl
jmp 0x14008491d
mov r9, 0xffffffffffffffff
lea r8, str.._ok_
mov edx, 0x104
lea rcx, [rbp + 0xb0]
call fcn.1400d7df8
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x1c0]
call fcn.1400c42b0
test eax, eax
jne 0x14008493d
lea rcx, [rbp + 0x1c0]
call fcn.1400a8788
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0xb0]
call fcn.1400c42b0
test eax, eax
jne 0x140084991
lea rdx, [rbp - 0x60]
mov rcx, r12
call fcn.1400c42b0
lea rcx, [rbp + 0xb0]
test eax, eax
je 0x14008497e
mov rdx, r12
call fcn.1400a84a4
test eax, eax
je 0x140084991
mov ebx, 0xbba
jmp 0x140084bf3
call fcn.1400a8788
test eax, eax
je 0x140084991
mov ebx, 0xbbc
jmp 0x140084bf3
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1400c42b0
test eax, eax
jne 0x140084bf3
cmp dword [rsp + 0x54], ebx
jle 0x140084bf3
lea rdx, [rsp + 0x70]
mov rcx, r12
call fcn.1400c42b0
test eax, eax
jne 0x1400849ca
test sil, sil
je 0x140084bf3
mov ecx, dword [rsp + 0x54]
cmp dword [rbp - 0x7c], ecx
jne 0x140084a1a
lea rdx, [rbp + 0x40]
mov rcx, rdi
call fcn.140085340
test al, al
je 0x140084bf3
lea rdx, [rbp - 0x30]
mov rcx, r12
call fcn.140085340
test al, al
je 0x140084bf3
mov r8d, 0x20
lea rdx, [rbp - 0x2c]
lea rcx, [rbp + 0x44]
call fcn.140099d80
test eax, eax
je 0x140084bf3
mov ecx, dword [rsp + 0x54]
mov eax, 0x1000
mov qword [rsp + 0x430], r13
cmp ecx, eax
mov qword [rsp + 0x3e0], r15
mov qword [rsp + 0x38], rbx
cmovle eax, ecx
movsxd r15, eax
mov rcx, r15
call fcn.1400a6bc8
mov r13, rax
test rax, rax
je 0x140084bde
mov r8, r15
mov qword [rsp + 0x3e8], r14
xor edx, edx
mov rcx, rax
call fcn.140099b00
xor r8d, r8d
lea rdx, [0x14010d5a4]
mov rcx, rdi
call fcn.140085050
mov qword [rsp + 0x30], rax
mov r14, rax
mov esi, 0xbba
test rax, rax
je 0x140084baa
xor r8d, r8d
lea rdx, [0x14010dac8]
lea rcx, [rbp + 0x1c0]
call fcn.140085050
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140084baa
movsxd rsi, dword [rsp + 0x54]
test rsi, rsi
je 0x140084b16
nop dword [rax + rax]
cmp rsi, r15
mov qword [rsp + 0x20], r14
mov rdi, r15
mov r8d, 1
cmovbe rdi, rsi
mov rdx, r15
mov r9, rdi
mov rcx, r13
call fcn.1400d8538
mov r14, rax
mov rax, rbx
cmp r14, rdi
jne 0x140084b03
mov r9, qword [rsp + 0x38]
mov r8, r14
mov edx, 1
mov rcx, r13
call fcn.1400d9ae0
cmp rax, rdi
jne 0x140084b99
sub rsi, r14
mov r14, qword [rsp + 0x30]
jne 0x140084ac0
mov esi, 0xbba
mov rcx, r13
call fcn.1400a6bb4
test r14, r14
je 0x140084b38
mov rcx, r14
call fcn.1400d8d44
mov rcx, r14
call fcn.1400d86f8
mov rdi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x3e8]
test rdi, rdi
je 0x140084b6a
mov rcx, rdi
call fcn.1400d8d44
mov rcx, rdi
call fcn.1400d86f8
lea rcx, [rbp + 0x1c0]
test ebx, ebx
je 0x140084bb4
call fcn.1400a8788
test ebx, ebx
jne 0x140084be3
mov rcx, r12
call fcn.140085010
test eax, eax
je 0x140084bc8
mov rcx, r12
call fcn.1400a8788
test eax, eax
je 0x140084bc8
lea rcx, [rbp + 0xb0]
call fcn.1400a8788
mov ebx, 0xbbc
jmp 0x140084be3
mov r14, qword [rsp + 0x30]
mov esi, 0xbba
mov ebx, esi
jmp 0x140084b1b
mov ebx, 0xbbb
jmp 0x140084b1b
lea rdx, [rbp + 0xb0]
call fcn.1400a84a4
test eax, eax
je 0x140084b6e
mov ebx, esi
jmp 0x140084be3
mov rdx, r12
lea rcx, [rbp + 0xb0]
call fcn.1400a84a4
test eax, eax
cmovne ebx, esi
jmp 0x140084be3
mov ebx, 0x708
mov r13, qword [rsp + 0x430]
mov r15, qword [rsp + 0x3e0]
mov eax, ebx
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.140097fb0
add rsp, 0x3f0
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret