Function at 0x1404dfdc8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
movzx ebp, si
movsx bp, r9b
push rsi
btr bp, r10w
push rdi
bswap rdi
dec rdi
bts rbp, rsi
push r12
shl r12w, 0xca
push r13
shl r12, 0x75
push r14
bts di, r15w
neg bp
push r15
inc dil
mov rbp, rsp
sub rsp, 0x60
bsr rdi, r13
xor ebx, ebx
rol dil, 0x62
and r12w, 0x4cd3
mov r14d, r8d
movsxd r12, ecx
mov rdi, rdx
test r8d, r8d
jmp 0x1404dfe2b
je 0x1404e030e
test rdx, rdx
jmp 0x1404dfe39
jne 0x1404dfe68
call fcn.1404ba1d5
mov dword [rax], ebx
jmp 0x1404dfe4b
call fcn.1404ba199
mov dword [rax], 0x16
call fcn.1404bae47
or eax, 0xffffffff
jmp 0x1404dfe63
jmp 0x1404e0315
mov rax, r12
shl r13b, 0x44
xor rcx, 0x29b46d3
and ch, al
lea rcx, [0x1400ba940]
sar r13d, cl
and eax, 0x3f
sar sil, cl
or r13b, 0x1e
mov r13, r12
sub r15b, 0xd6
xchg sil, r15b
sar r13, 6
rcr sil, cl
lea r15, [rax + rax*8]
mov ax, sp
cmp cl, 0x76
mov rcx, qword [rcx + r13*8]
movsx esi, byte [rcx + r15*8 + 0x39]
clc
rol eax, 0x51
lea eax, [rsi - 1]
stc
cmp al, 1
jmp 0x1404dfec0
ja 0x1404dfed8
mov eax, r14d
not eax
test al, 1
jmp 0x1404dfed2
je 0x1404dfe3f
test byte [rcx + r15*8 + 0x38], 0x20
jmp 0x1404dfee3
je 0x1404dfefc
xor edx, edx
mov ecx, r12d
lea r8d, [rdx + 2]
jmp 0x1404dfef7
call fcn.14027cb6c
mov ecx, r12d
jmp 0x1404dff04
mov qword [rbp - 0x20], rbx
jmp 0x1404dff0d
call fcn.1404e5ce2
test eax, eax
jmp 0x1404dff19
je 0x1404e0125
lea rax, [0x1400ba940]
jmp 0x1404dff2e
mov rax, qword [rax + r13*8]
jmp 0x1404dff37
cmp byte [rax + r15*8 + 0x38], bl
jmp 0x1404dff41
jge 0x1404e0125
call fcn.1404ce4cd
mov rcx, qword [rax + 0x90]
clc
jmp 0x1404dff59
cmp qword [rcx + 0x138], rbx
jmp 0x1404dff65
jne 0x1404dff8b
lea rax, [0x1400ba940]
mov rax, qword [rax + r13*8]
stc
cmp r11b, 0x11
cmp byte [rax + r15*8 + 0x39], bl
jmp 0x1404dff85
je 0x1404e0125
lea rax, [0x1400ba940]
movzx rdx, r12w
movsx cx, ah
bswap cx
mov rcx, qword [rax + r13*8]
movzx dx, r8b
movzx edx, r14w
cwd
lea rdx, [rbp - 0x10]
jmp 0x1404dffb5
mov rcx, qword [rcx + r15*8 + 0x28]
jmp 0x1404dffbf
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jmp 0x1404dffcc
je 0x1404e0125
test sil, sil
jmp 0x1404dffda
je 0x1404e00e4
dec sil
cmp sil, 1
jmp 0x1404dffec
ja 0x1404e0256
lea r12, [rdi + r14]
bt r14w, sp
sal r14d, 0xed
mov qword [rbp - 0x30], rbx
sal r14b, 0x2d
mov r14, rdi
jmp 0x1404e000f
cmp rdi, r12
jmp 0x1404e0017
jae 0x1404e0245
mov esi, dword [rbp - 0x2c]
xchg ah, al
movsx rcx, r15w
movzx eax, word [r14]
cmovp ecx, r8d
xchg ch, ch
movzx ecx, ax
jmp 0x1404e0038
mov word [rbp - 0x10], ax
jmp 0x1404e0041
call fcn.1404ea4e7
movzx ecx, word [rbp - 0x10]
jmp 0x1404e004f
cmp ax, cx
jne 0x1404e00d1
add esi, 2
cmp rbx, r14
mov dword [rbp - 0x2c], esi
test dil, r11b
cmp cx, 0xa
jne 0x1404e00b5
mov ecx, 0xd
jmp 0x1404e0078
call fcn.1404ea4e7
mov ecx, 0xd
cmp ebp, r13d
cmc
cmp si, 0x62d
cmp ax, cx
jmp 0x1404e0093
jne 0x1404e00d1
inc esi
jmp 0x1404e00a0
mov dword [rbp - 0x2c], esi
jmp 0x1404e00a8
inc ebx
jmp 0x1404e00b5
add r14, 2
stc
test bpl, 0x61
cmp r14, r12
jmp 0x1404e00c6
jae 0x1404e0245
jmp 0x1404e0026
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
jmp 0x1404e00df
jmp 0x1404e0245
mov r9d, r14d
movzx dx, r10b
not cl
lea rcx, [rbp - 0x30]
movsx r8w, bl
xchg r8b, dl
mov r8, rdi
jmp 0x1404e0102
mov edx, r12d
jmp 0x1404e010a
call fcn.1404e0378
movsd xmm0, qword [rax]
setbe bh
bswap ebx
mov ebx, dword [rax + 8]
jmp 0x1404e0120
jmp 0x1404e024a
lea rax, [0x1400ba940]
sbb cl, sil
or cx, bp
sbb cx, 0x3a4c
mov rcx, qword [rax + r13*8]
cmc
cmp r8d, 0x25811b91
cmp byte [rcx + r15*8 + 0x38], bl
jmp 0x1404e014d
jge 0x1404e01f0
mov ecx, esi
cmp r13b, 0x1a
cmp r11w, sp
test sil, sil
je 0x1404e01cb
sub ecx, 1
je 0x1404e01ae
cmp ecx, 1
jmp 0x1404e0177
jne 0x1404e0256
mov r9d, r14d
setno cl
movsx r8w, dil
lea rcx, [rbp - 0x30]
bswap r8d
movsx r8w, r14b
mov r8, rdi
movzx edx, r15w
cdq
mov edx, r12d
jmp 0x1404e01a4
call fcn.1404e0fde
jmp 0x1404e010f
mov r9d, r14d
lea rcx, [rbp - 0x30]
not r8
mov r8, rdi
movsx edx, di
mov edx, r12d
call fcn.1404e121f
jmp 0x1404e010f
mov r9d, r14d
cmovl ecx, ecx
lea rcx, [rbp - 0x30]
mov r8, rdi
cdq
cqo
movsxd rdx, edi
mov edx, r12d
jmp 0x1404e01e6
call fcn.1404e0d46
jmp 0x1404e010f
mov rcx, qword [rcx + r15*8 + 0x28]
movzx r8, r10w
shr r8b, 1
cwd
lea r9, [rbp - 0x2c]
movzx r8d, r9w
not dx
sub eax, eax
mov r8d, r14d
and qword [rsp + 0x20], rax
mov rdx, rdi
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x28], eax
jmp 0x1404e0222
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1404e0242
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
cmp r8b, 0x76
shrd ax, sp, 0xa
mov ebx, dword [rbp - 0x28]
movsd xmm0, qword [rbp - 0x30]
movsd qword [rbp - 0x20], xmm0
rcr ah, 0xff
bts rax, r15
mov rax, qword [rbp - 0x20]
cmp sil, 0x51
shr rax, 0x20
test eax, eax
jne 0x1404e02fd
mov eax, dword [rbp - 0x20]
test eax, eax
je 0x1404e02b5
cmp eax, 5
jmp 0x1404e027d
jne 0x1404e02a3
call fcn.1404ba199
mov dword [rax], 9
call fcn.1404ba1d5
mov dword [rax], 5
jmp 0x1404e029e
jmp 0x1404dfe5b
mov ecx, dword [rbp - 0x20]
jmp 0x1404e02ab
call fcn.1404ba211
jmp 0x1404dfe5b
lea rax, [0x1400ba940]
stc
mov rax, qword [rax + r13*8]
test byte [rax + r15*8 + 0x38], 0x40
jmp 0x1404e02cc
je 0x1404e02e0
cmp byte [rdi], 0x1a
jmp 0x1404e02da
je 0x1404e030e
call fcn.1404ba199
mov dword [rax], 0x1c
jmp 0x1404e02f0
call fcn.1404ba1d5
and dword [rax], 0
jmp 0x1404dfe5b
mov eax, dword [rbp - 0x1c]
cmc
cmp r14w, 0x76df
sub eax, ebx
jmp 0x1404e0315
xor eax, eax
btc bp, 0xd0
mov rbx, qword [rsp + 0xb8]
or r14, rax
movzx r13w, r11b
add rsp, 0x60
movzx rsi, r14w
mov r14w, 0x3de7
jmp 0x1404e0337
pop r15
movsxd rdi, ecx
bswap r12
movzx r14, r11w
pop r14
movsx r13w, dil
jmp 0x1404e0353
pop r13
jmp 0x1404e035f
pop r12
movsxd rsi, esp
mov bpl, 0x81
pop rdi
pop rsi
movzx bp, r9b
movsxd rbp, r14d
pop rbp
jmp 0x1404e0377
ret