Function at 0x14001e2b0
Capabilities:
Create thread
Get file size
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x368
mov rax, qword [0x14006f010]
xor rax, rsp
mov qword [rsp + 0x358], rax
mov dword [rsp + 0x58], 0
lea rcx, [rsp + 0x50]
call fcn.14001ea90
mov rcx, rax
call fcn.14004d430
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1f01ff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x40], rax
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x68], eax
cmp qword [rsp + 0x40], 0
je 0x14001e346
cmp qword [rsp + 0x40], 0xffffffffffffffff
je 0x14001e346
cmp dword [rsp + 0x68], 0xa
jae 0x14001e9f3
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x2b0], 0
mov rax, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov qword [rsp + 0x98], rax
lea rcx, [rsp + 0x48]
call fcn.14001ebc0
mov rcx, rax
call fcn.14004d3a0
mov qword [rsp + 0x90], rax
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call fcn.140055c30
lea rdx, [rsp + 0x2b0]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___int____ptr64____ptr64]
cmp dword [rsp + 0x2b0], 1
jne 0x14001e61f
mov rax, qword [rsp + 0x370]
movzx eax, byte [rax]
test eax, eax
jne 0x14001e405
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140004350]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x370]
mov byte [rax], 1
lea rax, [rsp + 0x2b8]
mov qword [rsp + 0xa0], rax
movzx edx, byte [rsp + 0x49]
mov rcx, qword [rsp + 0xa0]
call fcn.14001a1b0
nop
lea rax, [0x14006a601]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0x60], 0xffffffffffffffff
inc qword [rsp + 0x60]
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x60]
cmp byte [rax + rcx], 0
jne 0x14001e440
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov r8, qword [rsp + 0xb8]
lea rdx, [0x14006a601]
lea rcx, [rsp + 0x2b8]
call fcn.14001a260
nop
mov rax, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov qword [rsp + 0xc8], rax
lea rcx, [rsp + 0x4a]
call fcn.14001edf0
mov rcx, rax
call fcn.14004d310
mov qword [rsp + 0xc0], rax
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xc8]
call fcn.140055c30
lea rdx, [rsp + 0x2b8]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.140055870
lea rcx, [rsp + 0x4b]
call fcn.14001ef70
mov rcx, rax
call fcn.14004d280
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1f01ff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x4c]
call fcn.14001f0a0
mov rcx, rax
call fcn.14004d1f0
mov rdx, rax
lea rcx, [rsp + 0x1f0]
call fcn.14001a0f0
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xd8], rax
lea r8, [rsp + 0x2b8]
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0x2d8]
call fcn.1400556a0
nop
lea rcx, [rsp + 0x1f0]
call fcn.1400541f0
mov rax, qword [rsp + 0x2e8]
mov qword [rsp + 0xe0], rax
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0x6c], eax
mov rax, qword [rsp + 0x1a0]
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x2d8]
mov rcx, rax
call fcn.14000e830
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x6c]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x2d8]
call fcn.1400541f0
nop
lea rcx, [rsp + 0x2b8]
call fcn.1400541f0
jmp 0x14001e975
cmp dword [rsp + 0x2b0], 2
jne 0x14001e970
mov rax, qword [rsp + 0x370]
movzx eax, byte [rax]
test eax, eax
jne 0x14001e675
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140004350]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x370]
mov byte [rax], 1
lea rdx, [0x14006a601]
lea rcx, [rsp + 0x318]
call fcn.14001a0f0
nop
lea rdx, [0x14006a601]
lea rcx, [rsp + 0x338]
call fcn.14001a0f0
nop
mov rax, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov qword [rsp + 0xf0], rax
lea rcx, [rsp + 0x4d]
call fcn.14001f1c0
mov rcx, rax
call fcn.14004d160
mov qword [rsp + 0xe8], rax
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xf0]
call fcn.140055c30
lea rdx, [rsp + 0x318]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.140055870
mov rax, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov qword [rsp + 0x110], rax
lea rcx, [rsp + 0x4e]
call fcn.14001f350
mov rcx, rax
call fcn.14004d0d0
mov rdx, rax
lea rcx, [rsp + 0x210]
call fcn.14001a0f0
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x108], rax
mov rdx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x110]
call fcn.1400557a0
nop
lea rcx, [rsp + 0x210]
call fcn.1400541f0
lea rdx, [rsp + 0x338]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.140055870
lea rcx, [rsp + 0x4f]
call fcn.14001f5c0
mov rcx, rax
call fcn.14004cfb0
mov rdx, rax
lea rcx, [rsp + 0x270]
call fcn.14001a0f0
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x148], rax
lea rcx, [rsp + 0x54]
call fcn.14001f4a0
mov rcx, rax
call fcn.14004d040
mov rdx, rax
lea rcx, [rsp + 0x250]
call fcn.14001a0f0
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x130], rax
lea r8, [rsp + 0x318]
mov rdx, qword [rsp + 0x130]
lea rcx, [rsp + 0x230]
call fcn.1400556a0
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x150], rax
mov r9, qword [rsp + 0x148]
mov r8, qword [rsp + 0x150]
movzx edx, byte [rsp + 0x51]
lea rcx, [rsp + 0x1b0]
call fcn.140057a60
mov eax, dword [rsp + 0x58]
or eax, 4
mov dword [rsp + 0x58], eax
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0x158], rax
lea r8, [rsp + 0x338]
mov rdx, qword [rsp + 0x158]
lea rcx, [rsp + 0x2f8]
call fcn.1400556a0
nop
lea rcx, [rsp + 0x1b0]
call fcn.1400541f0
nop
lea rcx, [rsp + 0x230]
call fcn.1400541f0
nop
lea rcx, [rsp + 0x250]
call fcn.1400541f0
nop
lea rcx, [rsp + 0x270]
call fcn.1400541f0
mov rax, qword [rsp + 0x308]
mov qword [rsp + 0x160], rax
mov eax, dword [rsp + 0x160]
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x2f8]
mov rcx, rax
call fcn.14000e830
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x2f8]
call fcn.1400541f0
nop
lea rcx, [rsp + 0x338]
call fcn.1400541f0
nop
lea rcx, [rsp + 0x318]
call fcn.1400541f0
jmp 0x14001e975
jmp 0x14001e35c
mov rax, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov qword [rsp + 0x180], rax
lea rcx, [rsp + 0x52]
call fcn.14001f6c0
mov rcx, rax
call fcn.14004cf20
mov rdx, rax
lea rcx, [rsp + 0x290]
call fcn.14001a0f0
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0x170], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x178], rax
mov rdx, qword [rsp + 0x178]
mov rcx, qword [rsp + 0x180]
call fcn.1400557a0
nop
lea rcx, [rsp + 0x290]
call fcn.1400541f0
jmp 0x14001ea6f
mov rax, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov qword [rsp + 0x88], rax
lea rcx, [rsp + 0x53]
call fcn.14001f7e0
mov rcx, rax
call fcn.14004ce90
mov rdx, rax
lea rcx, [rsp + 0x1d0]
call fcn.14001a0f0
mov qword [rsp + 0x188], rax
mov rax, qword [rsp + 0x188]
mov qword [rsp + 0x190], rax
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0x198], rax
mov rdx, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x88]
call fcn.1400557a0
nop
lea rcx, [rsp + 0x1d0]
call fcn.1400541f0
mov rcx, qword [rsp + 0x358]
xor rcx, rsp
call fcn.14005c1a0
add rsp, 0x368
ret