Function at 0x140019e80
Capabilities:
Terminate process
Write file on windows

Disassembly:
push r15
mov eax, 0x10088
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.140048f80
sub rsp, rax
cmp byte [r9 + 0x10], 6
mov edi, dword [rsp + 0x10118]
mov qword [rsp + 0x100d8], rdx
mov rax, r8
mov edx, dword [r9]
mov qword [rsp + 0x100d0], rcx
je 0x14001a118
mov byte [rsp + 0x80], 9
cmp edi, 0x3ff1
ja 0x14001a08f
lea ebp, [rdi + 0xe]
lea r14d, [rdi + 0xe]
cmp edi, 0x71
jbe 0x14001a0a8
mov ecx, ebp
and r14d, 0x7f
mov qword [rsp + 0x38], 0x11
mov r8d, 0xb
shr ecx, 7
mov dword [rsp + 0x40], 0x10
mov r9d, 0xa
mov r10d, 9
mov dword [rsp + 0x34], 0xf
mov r11d, 8
mov ebx, 7
mov esi, 6
mov dword [rsp + 0x30], 0xe
mov r12d, 5
mov r13d, 4
mov dword [rsp + 0x2c], 0xd
mov dword [rsp + 0x28], 0xc
mov byte [rsp + 0x82], r14b
mov r14d, ecx
mov ecx, 3
or r14d, 0xffffff80
mov byte [rsp + 0x81], r14b
mov r15d, ecx
mov r14d, ecx
mov rcx, rax
sar rcx, 0x18
mov byte [rsp + r14 + 0x80], cl
mov r14, rax
mov rcx, r12
sar r14, 0x10
mov byte [rsp + r13 + 0x80], r14b
mov byte [rsp + rcx + 0x80], ah
mov ecx, dword [rsp + 0x28]
mov byte [rsp + rsi + 0x80], al
mov eax, edx
movzx esi, byte [rsp + 0x100f8]
shr eax, 0x18
mov byte [rsp + rbx + 0x80], al
mov eax, edx
mov ebx, dword [rsp + 0x10100]
shr eax, 0x10
mov byte [rsp + r11 + 0x80], al
mov rax, r10
mov byte [rsp + rax + 0x80], dh
movzx eax, byte [rsp + 0x100f0]
mov byte [rsp + r9 + 0x80], dl
mov rdx, qword [rsp + 0x10110]
mov byte [rsp + r8 + 0x80], al
mov eax, dword [rsp + 0x100f8]
mov r8d, edi
mov byte [rsp + rcx + 0x80], ah
mov eax, dword [rsp + 0x2c]
mov byte [rsp + rax + 0x80], sil
mov eax, dword [rsp + 0x30]
movzx esi, byte [rsp + 0x10100]
mov byte [rsp + rax + 0x80], bh
mov eax, dword [rsp + 0x34]
movzx ebx, byte [rsp + 0x10108]
mov byte [rsp + rax + 0x80], sil
mov eax, dword [rsp + 0x40]
lea rsi, [rsp + 0x80]
mov byte [rsp + rax + 0x80], bl
mov rax, qword [rsp + 0x38]
lea ebx, [r15 + rbp]
add rax, rsi
mov rcx, rax
call sym.memcpy
mov r9, qword [rsp + 0x100d8]
mov r8, rbx
mov edx, 1
mov rcx, rsi
call sym.fwrite
cmp rbx, rax
jne 0x14001a4e4
mov rax, qword [rsp + 0x100d0]
add qword [rax + 0x258], rbx
add rsp, 0x10088
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x38], 0x10
mov r8d, 0xa
mov r9d, 9
mov r10d, 8
mov dword [rsp + 0x40], 0xf
mov r11d, 7
mov ebx, 6
mov esi, 5
mov dword [rsp + 0x34], 0xe
mov r12d, 4
mov r13d, 3
mov ecx, 2
mov dword [rsp + 0x30], 0xd
mov dword [rsp + 0x2c], 0xc
mov dword [rsp + 0x28], 0xb
jmp 0x140019f61
mov rcx, qword [r9]
mov rdx, qword [r9 + 8]
mov byte [rsp + 0x8080], 0xd
cmp edi, 0x3fe4
ja 0x14001a08f
lea r12d, [rdi + 0x1b]
lea ebp, [rdi + 0x1b]
cmp edi, 0x64
jbe 0x14001a410
mov r8d, r12d
and ebp, 0x7f
mov qword [rsp + 0x78], 0x1e
mov r14d, 0xb
shr r8d, 7
mov dword [rsp + 0x74], 0x1d
mov r13d, 0xa
mov r9d, 8
mov dword [rsp + 0x70], 0x1c
mov r10d, 7
mov r11d, 6
mov esi, 5
mov dword [rsp + 0x6c], 0x1b
mov ebx, 3
mov dword [rsp + 0x68], 0x1a
mov dword [rsp + 0x64], 0x19
mov dword [rsp + 0x60], 0x18
mov dword [rsp + 0x5c], 0x17
mov dword [rsp + 0x58], 0x16
mov dword [rsp + 0x54], 0x15
mov dword [rsp + 0x50], 0x14
mov dword [rsp + 0x4c], 0x13
mov dword [rsp + 0x48], 0x12
mov dword [rsp + 0x44], 0x11
mov dword [rsp + 0x38], 0x10
mov dword [rsp + 0x40], 0xf
mov dword [rsp + 0x34], 0xe
mov dword [rsp + 0x30], 0xd
mov dword [rsp + 0x2c], 0xc
mov dword [rsp + 0x28], 4
mov byte [rsp + 0x8082], bpl
mov ebp, r8d
mov r8d, 9
or ebp, 0xffffff80
mov r15, rax
mov byte [rsp + 0x8081], bpl
mov ebp, ebx
add ebx, r12d
sar r15, 0x18
mov ebx, ebx
mov byte [rsp + rbp + 0x8080], r15b
mov ebp, dword [rsp + 0x28]
mov r15, rax
sar r15, 0x10
mov byte [rsp + rbp + 0x8080], r15b
mov byte [rsp + rsi + 0x8080], ah
mov rsi, r9
mov byte [rsp + r11 + 0x8080], al
movzx eax, byte [rsp + 0x100f0]
mov byte [rsp + r10 + 0x8080], al
mov eax, dword [rsp + 0x100f8]
mov byte [rsp + rsi + 0x8080], ah
movzx eax, byte [rsp + 0x100f8]
mov rsi, r13
mov byte [rsp + r8 + 0x8080], al
mov eax, dword [rsp + 0x10100]
mov r8, rcx
shr r8, 0x38
mov byte [rsp + rsi + 0x8080], ah
movzx eax, byte [rsp + 0x10100]
movzx esi, byte [rsp + 0x10108]
mov byte [rsp + r14 + 0x8080], al
mov eax, dword [rsp + 0x2c]
mov byte [rsp + rax + 0x8080], sil
mov eax, dword [rsp + 0x30]
lea rsi, [rsp + 0x8080]
mov byte [rsp + rax + 0x8080], 6
mov eax, dword [rsp + 0x34]
mov byte [rsp + rax + 0x8080], r8b
mov eax, dword [rsp + 0x40]
mov r8, rcx
shr r8, 0x30
mov byte [rsp + rax + 0x8080], r8b
mov eax, dword [rsp + 0x38]
mov r8, rcx
shr r8, 0x28
mov byte [rsp + rax + 0x8080], r8b
mov eax, dword [rsp + 0x44]
mov r8, rcx
shr r8, 0x20
mov byte [rsp + rax + 0x8080], r8b
mov eax, dword [rsp + 0x48]
mov r8, rcx
shr r8, 0x18
mov byte [rsp + rax + 0x8080], r8b
mov eax, dword [rsp + 0x4c]
mov r8, rcx
shr r8, 0x10
mov byte [rsp + rax + 0x8080], r8b
mov eax, dword [rsp + 0x50]
mov r8d, edi
mov byte [rsp + rax + 0x8080], ch
mov eax, dword [rsp + 0x54]
mov byte [rsp + rax + 0x8080], cl
mov eax, dword [rsp + 0x58]
mov rcx, rdx
shr rcx, 0x38
mov byte [rsp + rax + 0x8080], cl
mov eax, dword [rsp + 0x5c]
mov rcx, rdx
shr rcx, 0x30
mov byte [rsp + rax + 0x8080], cl
mov eax, dword [rsp + 0x60]
mov rcx, rdx
shr rcx, 0x28
mov byte [rsp + rax + 0x8080], cl
mov eax, dword [rsp + 0x64]
mov rcx, rdx
shr rcx, 0x20
mov byte [rsp + rax + 0x8080], cl
mov eax, dword [rsp + 0x68]
mov rcx, rdx
shr rcx, 0x18
mov byte [rsp + rax + 0x8080], cl
mov eax, dword [rsp + 0x6c]
mov rcx, rdx
shr rcx, 0x10
mov byte [rsp + rax + 0x8080], cl
mov eax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov byte [rsp + rax + 0x8080], dh
mov eax, dword [rsp + 0x74]
add rcx, rsi
mov byte [rsp + rax + 0x8080], dl
mov rdx, qword [rsp + 0x10110]
call sym.memcpy
jmp 0x14001a05f
mov qword [rsp + 0x78], 0x1d
mov r14d, 0xa
mov r13d, 9
mov r8d, 8
mov dword [rsp + 0x74], 0x1c
mov r9d, 7
mov r10d, 6
mov r11d, 5
mov dword [rsp + 0x70], 0x1b
mov esi, 4
mov ebx, 2
mov dword [rsp + 0x6c], 0x1a
mov dword [rsp + 0x68], 0x19
mov dword [rsp + 0x64], 0x18
mov dword [rsp + 0x60], 0x17
mov dword [rsp + 0x5c], 0x16
mov dword [rsp + 0x58], 0x15
mov dword [rsp + 0x54], 0x14
mov dword [rsp + 0x50], 0x13
mov dword [rsp + 0x4c], 0x12
mov dword [rsp + 0x48], 0x11
mov dword [rsp + 0x44], 0x10
mov dword [rsp + 0x38], 0xf
mov dword [rsp + 0x40], 0xe
mov dword [rsp + 0x34], 0xd
mov dword [rsp + 0x30], 0xc
mov dword [rsp + 0x2c], 0xb
mov dword [rsp + 0x28], 3
jmp 0x14001a22a
lea rcx, str.output
call sym.perror
mov ecx, 1
call sym.exit
nop
nop dword [rax + rax]