Function at 0x1404dadec
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
and rbp, rdi
cmc
push r13
adc r12b, bpl
push r14
or r14w, 0x2ac6
cmovnp rdi, rcx
push r15
shl ebp, 0x6e
xchg bpl, dil
cmovl di, r14w
mov rbp, rsp
sub rsp, 0x60
rcr r12b, cl
dec rdi
xadd dil, dil
sub ebx, ebx
dec r12w
mov r14d, r8d
movsxd r12, ecx
mov rdi, rdx
test r8d, r8d
jmp 0x1404dae40
je 0x1404db315
test rdx, rdx
jmp 0x1404dae4e
jne 0x1404dae78
call fcn.1404b51ee
mov dword [rax], ebx
call fcn.1404b51b5
mov dword [rax], 0x16
jmp 0x1404dae6b
call fcn.1404b5e04
or eax, 0xffffffff
jmp 0x1404db31b
mov rax, r12
bsf r15w, r9w
bts r15d, r9d
sub r13b, 0x4f
lea rcx, [0x1400ba940]
shl r13b, 0x5b
and eax, 0x3f
xchg r13d, r15d
mov r13, r12
shr esi, 7
bt r15, rcx
sar r13, 6
sub r15b, 0x9d
lea r15, [rax + rax*8]
btr si, 0xaa
neg ax
mov rcx, qword [rcx + r13*8]
movsx esi, byte [rcx + r15*8 + 0x39]
cmovo ax, bx
setle al
lea eax, [rsi - 1]
test r10, rsi
jmp 0x1404daed3
cmp al, 1
jmp 0x1404daeda
ja 0x1404daef0
mov eax, r14d
stc
cmc
clc
not eax
test al, 1
je 0x1404dae54
test byte [rcx + r15*8 + 0x38], 0x20
jmp 0x1404daefb
je 0x1404daf1c
sub edx, edx
movsx r8, di
movzx rcx, r15w
mov ecx, r12d
lea r8d, [rdx + 2]
jmp 0x1404daf17
call fcn.1401b030c
mov ecx, r12d
jmp 0x1404daf24
mov qword [rbp - 0x20], rbx
call fcn.1404e0d8a
test eax, eax
jmp 0x1404daf34
je 0x1404db10c
lea rax, [0x1400ba940]
cmc
jmp 0x1404daf47
mov rax, qword [rax + r13*8]
cmp ax, r9w
cmc
cmp r15b, 0x1b
cmp byte [rax + r15*8 + 0x38], bl
jmp 0x1404daf5e
jge 0x1404db10c
call fcn.1404c92d9
mov rcx, qword [rax + 0x90]
cmc
cmp qword [rcx + 0x138], rbx
jmp 0x1404daf7d
jne 0x1404dafab
lea rax, [0x1400ba940]
clc
cmp r15b, 0x21
mov rax, qword [rax + r13*8]
stc
test r14d, r15d
test r9b, 0x22
cmp byte [rax + r15*8 + 0x39], bl
jmp 0x1404dafa5
je 0x1404db10c
lea rax, [0x1400ba940]
xchg cl, ch
movsx ecx, r14w
cwd
mov rcx, qword [rax + r13*8]
movsx rdx, r13w
movsxd rdx, esp
lea rdx, [rbp - 0x10]
jmp 0x1404dafce
mov rcx, qword [rcx + r15*8 + 0x28]
jmp 0x1404dafd8
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jmp 0x1404dafe5
je 0x1404db10c
test sil, sil
jmp 0x1404daff3
je 0x1404db0cc
dec sil
stc
cmp sil, 1
jmp 0x1404db006
ja 0x1404db256
lea r12, [rdi + r14]
ror r14b, cl
btr r14, r11
mov qword [rbp - 0x30], rbx
mov r14, rdi
clc
cmc
cmp rdi, r12
jmp 0x1404db028
jae 0x1404db242
mov esi, dword [rbp - 0x2c]
mov cl, bpl
movzx eax, word [r14]
movzx ecx, ax
jmp 0x1404db040
mov word [rbp - 0x10], ax
jmp 0x1404db049
call fcn.1404e560c
movzx ecx, word [rbp - 0x10]
test bpl, 0x1d
cmp ax, cx
jne 0x1404db0be
add esi, 2
clc
mov dword [rbp - 0x2c], esi
stc
cmp sp, bx
clc
cmp cx, 0xa
jmp 0x1404db074
jne 0x1404db0a3
mov ecx, 0xd
call fcn.1404e560c
mov ecx, 0xd
cmp ax, cx
jmp 0x1404db091
jne 0x1404db0be
inc esi
mov dword [rbp - 0x2c], esi
jmp 0x1404db0a1
inc ebx
add r14, 2
cmc
cmp bp, sp
cmp r14, r12
jmp 0x1404db0b3
jae 0x1404db242
jmp 0x1404db034
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
jmp 0x1404db242
mov r9d, r14d
movzx r8w, r15b
movzx rcx, r12w
cqo
lea rcx, [rbp - 0x30]
cmovo dx, bx
mov r8, rdi
mov edx, r12d
call fcn.1404db366
movsd xmm0, qword [rax]
movzx bx, r15b
jmp 0x1404db0ff
mov ebx, dword [rax + 8]
jmp 0x1404db107
jmp 0x1404db24c
lea rax, [0x1400ba940]
inc cx
btc cx, 0xb1
jmp 0x1404db120
mov rcx, qword [rax + r13*8]
cmc
cmp r8b, 0xd4
cmp byte [rcx + r15*8 + 0x38], bl
jge 0x1404db1e5
mov ecx, esi
test sil, sil
jmp 0x1404db13e
je 0x1404db1ac
sub ecx, 1
jmp 0x1404db14c
je 0x1404db18e
cmp ecx, 1
jmp 0x1404db15a
jne 0x1404db256
mov r9d, r14d
setl r8b
movsxd rcx, ecx
lea rcx, [rbp - 0x30]
movzx r8d, r10w
cdq
mov r8, rdi
movsxd rdx, r12d
mov dh, 0x77
mov edx, r12d
jmp 0x1404db184
call fcn.1404dbf84
jmp 0x1404db0ed
mov r9d, r14d
lea rcx, [rbp - 0x30]
mov r8, rdi
mov dl, r10b
mov dx, 0x3d6c
mov edx, r12d
call fcn.1404dc1c1
jmp 0x1404db0ed
mov r9d, r14d
mov dl, r15b
movzx r8, sp
bswap edx
lea rcx, [rbp - 0x30]
xchg r8w, dx
movsx r8w, al
mov r8, rdi
movzx rdx, r12w
movzx dx, r13b
cqo
mov edx, r12d
jmp 0x1404db1db
call fcn.1404dbd81
jmp 0x1404db0ed
mov rcx, qword [rcx + r15*8 + 0x28]
lea r9, [rbp - 0x2c]
sal dx, cl
sub eax, eax
bsr r8w, bx
cwd
bt edx, ebx
mov r8d, r14d
movzx rdx, si
rcl dl, cl
and qword [rsp + 0x20], rax
mov rdx, rdi
mov qword [rbp - 0x30], rax
jmp 0x1404db217
mov dword [rbp - 0x28], eax
jmp 0x1404db21f
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1404db23f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
and ax, 0x445f
shl ebx, cl
or al, r11b
mov ebx, dword [rbp - 0x28]
movsd xmm0, qword [rbp - 0x30]
bsr rax, rsp
lahf
movsd qword [rbp - 0x20], xmm0
clc
or al, 0x9c
cdqe
mov rax, qword [rbp - 0x20]
shr rax, 0x20
test eax, eax
jmp 0x1404db265
jne 0x1404db306
mov eax, dword [rbp - 0x20]
test r11b, al
clc
test eax, eax
jmp 0x1404db279
je 0x1404db2bf
cmp eax, 5
jne 0x1404db2ad
call fcn.1404b51b5
mov dword [rax], 9
jmp 0x1404db298
call fcn.1404b51ee
mov dword [rax], 5
jmp 0x1404db2a8
jmp 0x1404dae70
mov ecx, dword [rbp - 0x20]
jmp 0x1404db2b5
call fcn.1404b5228
jmp 0x1404dae70
lea rax, [0x1400ba940]
clc
cmp spl, 0x5b
mov rax, qword [rax + r13*8]
test byte [rax + r15*8 + 0x38], 0x40
je 0x1404db2e9
cmp byte [rdi], 0x1a
jmp 0x1404db2e3
je 0x1404db315
call fcn.1404b51b5
mov dword [rax], 0x1c
jmp 0x1404db2f9
call fcn.1404b51ee
and dword [rax], 0
jmp 0x1404dae70
mov eax, dword [rbp - 0x1c]
sub eax, ebx
jmp 0x1404db310
jmp 0x1404db31b
sub eax, eax
rol bpl, 0x97
mov rbx, qword [rsp + 0xb8]
add rsp, 0x60
cmovg r15d, ebx
movzx r12d, bx
mov bpl, 0x4b
pop r15
mov bpl, dil
movzx bp, al
pop r14
movzx ebp, bp
jmp 0x1404db345
pop r13
movzx rdi, bx
pop r12
cmovb rdi, rsp
bswap si
pop rdi
setle bpl
movzx si, sil
not sil
pop rsi
xchg ebp, ebp
pop rbp
ret