Function at 0x1400021b2
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
jmp 0x14007f640
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0x21a8
call fcn.1401b1720
sub rsp, rax
mov qword [rsp + 0x168], 0xfffffffffffffffe
mov rax, qword [0x14028c8d0]
xor rax, rsp
mov qword [rsp + 0x2190], rax
mov dword [rsp + 0x7c], 0
lea rcx, [rsp + 0x50]
call fcn.140002d51
nop
mov qword [rsp + 0x40], 0xffffffffffffffff
mov qword [rsp + 0x60], 0xffffffffffffffff
mov dword [rsp + 0x78], 0
lea rcx, [rsp + 0x70]
call fcn.140002d51
nop
mov dword [rsp + 0x6c], 0
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 0
mov rax, qword [rsp + 0x21b0]
add rax, 8
mov rcx, qword [rsp + 0x21b0]
mov edx, dword [rcx + 0x5ec]
mov rcx, rax
call fcn.140004c4b
lea rdx, [rsp + 0x98]
mov rcx, rax
call fcn.140003661
nop
mov rax, qword [rsp + 0x21b8]
add rax, 8
mov rcx, rax
call fcn.140002b08
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x14007f81c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0xb8]
call fcn.140001596
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x21b8]
add rax, 0x20
mov rdx, qword [rsp + 0x140]
mov rcx, rax
call fcn.140001451
nop
lea rcx, [rsp + 0xb8]
call fcn.1400053e9
mov rax, qword [rsp + 0x21b8]
mov r8, qword [rax + 8]
lea rdx, str.Error_opening_file__s.
lea rcx, [rsp + 0x50]
call fcn.140001d8e
lea rax, [rsp + 0x178]
mov qword [rsp + 0x128], rax
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x128]
call fcn.140001a7d
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x21b0]
add rax, 0x600
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xc8]
mov rcx, rax
call fcn.140002a31
jmp 0x14007fcc2
mov rax, qword [rsp + 0x21b8]
cmp dword [rax + 0x18], 0
je 0x14007fcba
mov rax, qword [rsp + 0x21b8]
mov r8, qword [rax + 8]
lea rdx, str.Copying_file__s.
lea rcx, [rsp + 0x50]
call fcn.140001d8e
lea rax, [rsp + 0x188]
mov qword [rsp + 0x150], rax
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x150]
call fcn.140001a7d
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x21b0]
add rax, 0x600
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xd8]
mov rcx, rax
call fcn.140002a31
lea rdx, [rsp + 0x130]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 0
jne 0x14007f996
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x160]
call fcn.140001596
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x21b8]
add rax, 0x20
mov rdx, qword [rsp + 0xa0]
mov rcx, rax
call fcn.140001451
nop
lea rcx, [rsp + 0x160]
call fcn.1400053e9
mov rax, qword [rsp + 0x21b8]
mov r8, qword [rax + 8]
lea rdx, str.Couldnt_get_file_size_of__s
lea rcx, [rsp + 0x50]
call fcn.140001d8e
lea rax, [rsp + 0x170]
mov qword [rsp + 0xf8], rax
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0xf8]
call fcn.140001a7d
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x21b0]
add rax, 0x600
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x148]
mov rcx, rax
call fcn.140002a31
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], 0xffffffffffffffff
jmp 0x14007fcc2
mov rax, qword [rsp + 0x21b8]
mov qword [rsp + 0x158], rax
lea r8, [0x140223b44]
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0xd0]
call fcn.140005506
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x158]
mov r8, rax
mov rdx, qword [rsp + 0x118]
lea rcx, [rsp + 0xc0]
call fcn.1400054fc
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xb0], rax
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x70]
call fcn.140001451
nop
lea rcx, [rsp + 0xc0]
call fcn.1400053e9
nop
lea rcx, [rsp + 0xd0]
call fcn.1400053e9
lea rcx, [rsp + 0x70]
call fcn.140002b08
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 1
mov edx, 0x40000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0xffffffffffffffff
jne 0x14007fb5f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x100]
call fcn.140001596
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x21b8]
add rax, 0x20
mov rdx, qword [rsp + 0xf0]
mov rcx, rax
call fcn.140001451
nop
lea rcx, [rsp + 0x100]
call fcn.1400053e9
mov r8, qword [rsp + 0x70]
lea rdx, str.Error_creating_file__s.
lea rcx, [rsp + 0x50]
call fcn.140001d8e
lea rax, [rsp + 0x180]
mov qword [rsp + 0x110], rax
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x110]
call fcn.140001a7d
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x21b0]
add rax, 0x600
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x120]
mov rcx, rax
call fcn.140002a31
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], 0xffffffffffffffff
jmp 0x14007fcc2
mov qword [rsp + 0x88], 0
mov rax, qword [rsp + 0x21b0]
add rax, 0x600
mov rcx, rax
call fcn.140003175
movzx eax, al
test eax, eax
je 0x14007fb8d
jmp 0x14007fcc2
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, 0x400
lea rdx, [rsp + 0x190]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x6c], eax
cmp dword [rsp + 0x6c], 0
je 0x14007fbc6
cmp dword [rsp + 0x48], 0
jne 0x14007fbcb
jmp 0x14007fc79
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov r8d, dword [rsp + 0x48]
lea rdx, [rsp + 0x190]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
je 0x14007fc06
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x48], eax
je 0x14007fc08
jmp 0x14007fc79
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
cvtsi2ss xmm0, qword [rsp + 0x88]
movss xmm1, dword [0x14022a39c]
mulss xmm1, xmm0
movaps xmm0, xmm1
cvtsi2ss xmm1, qword [rsp + 0x130]
divss xmm0, xmm1
cvttss2si eax, xmm0
mov dword [rsp + 0x80], eax
mov rax, qword [rsp + 0x21b0]
add rax, 0x600
xor r8d, r8d
mov edx, dword [rsp + 0x80]
mov rcx, rax
call fcn.140004d45
jmp 0x14007fb6b
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], 0xffffffffffffffff
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x60], 0xffffffffffffffff
mov rax, qword [rsp + 0x21b8]
add rax, 8
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.140001451
mov dword [rsp + 0x7c], 1
cmp qword [rsp + 0x40], 0xffffffffffffffff
je 0x14007fcd5
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x60], 0xffffffffffffffff
je 0x14007fce8
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x90], eax
lea rcx, [rsp + 0x98]
call fcn.1400053e9
nop
lea rcx, [rsp + 0x70]
call fcn.1400053e9
nop
lea rcx, [rsp + 0x50]
call fcn.1400053e9
mov eax, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x2190]
xor rcx, rsp
call fcn.1401b0dd0
add rsp, 0x21a8
ret