Function at 0x140018dc0
Capabilities:
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.140044900
sub rsp, rax
cmp byte [r9 + 0x10], 6
mov edi, dword [rsp + 0x10118]
mov qword [rsp + 0x100d8], rdx
mov r15, rcx
mov edx, dword [r9]
mov rax, r8
je 0x140019050
mov byte [rsp + 0x80], 9
cmp edi, 0x3ff1
ja 0x140018fca
lea ebp, [rdi + 0xe]
lea r14d, [rdi + 0xe]
cmp edi, 0x71
jbe 0x140018fe0
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 dword [rsp + 0x24], 3
mov byte [rsp + 0x82], r14b
mov r14d, ecx
or r14d, 0xffffff80
mov byte [rsp + 0x81], r14b
mov rcx, rax
mov r14d, dword [rsp + 0x24]
sar rcx, 0x18
mov byte [rsp + r14 + 0x80], cl
mov r14, rax
movzx ecx, ah
sar r14, 0x10
mov byte [rsp + r13 + 0x80], r14b
mov byte [rsp + r12 + 0x80], cl
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
movzx eax, dh
mov byte [rsp + r10 + 0x80], al
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]
mov byte [rsp + rax + 0x80], sil
mov eax, dword [rsp + 0x40]
movzx esi, byte [rsp + 0x10108]
mov byte [rsp + rax + 0x80], sil
mov rax, qword [rsp + 0x38]
lea rsi, [rsp + 0x80]
add rax, rsi
mov rcx, rax
call sym.memcpy
mov ecx, dword [rsp + 0x24]
lea ebx, [rcx + rbp]
mov r9, qword [rsp + 0x100d8]
mov r8, rbx
mov edx, 1
mov rcx, rsi
call sym.fwrite
cmp rbx, rax
jne 0x140019427
add qword [r15 + 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 dword [rsp + 0x30], 0xd
mov dword [rsp + 0x2c], 0xc
mov dword [rsp + 0x28], 0xb
mov dword [rsp + 0x24], 2
jmp 0x140018e9f
mov rcx, qword [r9]
mov rdx, qword [r9 + 8]
mov byte [rsp + 0x8080], 0xd
cmp edi, 0x3fe4
ja 0x140018fca
lea r12d, [rdi + 0x1b]
lea ebp, [rdi + 0x1b]
cmp edi, 0x64
jbe 0x140019350
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 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 dword [rsp + 0x24], 3
mov byte [rsp + 0x8082], bpl
mov ebp, r8d
mov r8d, 9
or ebp, 0xffffff80
mov byte [rsp + 0x8081], bpl
mov rbx, rax
mov ebp, dword [rsp + 0x24]
sar rbx, 0x18
mov byte [rsp + rbp + 0x8080], bl
mov ebp, dword [rsp + 0x28]
mov rbx, rax
sar rbx, 0x10
mov byte [rsp + rbp + 0x8080], bl
mov byte [rsp + rsi + 0x8080], ah
movzx esi, byte [rsp + 0x10108]
mov byte [rsp + r11 + 0x8080], al
movzx eax, byte [rsp + 0x100f0]
mov byte [rsp + r10 + 0x8080], al
mov eax, dword [rsp + 0x100f8]
movzx eax, ah
mov byte [rsp + r9 + 0x8080], al
movzx eax, byte [rsp + 0x100f8]
mov byte [rsp + r8 + 0x8080], al
mov eax, dword [rsp + 0x10100]
mov r8, rcx
shr r8, 0x38
movzx eax, ah
mov byte [rsp + r13 + 0x8080], al
movzx eax, byte [rsp + 0x10100]
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
mov eax, dword [rsp + 0x24]
lea ebx, [rax + r12]
jmp 0x140018fa2
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 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
mov dword [rsp + 0x24], 2
jmp 0x140019165
lea rcx, str.output
call sym.perror
mov ecx, 1
call sym.exit
nop
nop