Function at 0x1404e0f17
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub edi, 0xc533c38
push r15
sal r12b, 0xb4
mov rbp, rsp
stc
adc r12w, r13w
clc
sub rsp, 0x60
rol edi, cl
sub ebx, ebx
bts r12d, ebp
and dil, 0xd9
and dil, r12b
mov r14d, r8d
sal r12b, 0x7e
xor di, 0x64b2
bsr r12d, r12d
movsxd r12, ecx
bsr rdi, rdx
rol edi, 0x72
cmc
mov rdi, rdx
test r8d, r8d
jmp 0x1404e0f73
je 0x1404e143e
test rdx, rdx
jne 0x1404e0fb0
call fcn.1404bb0d8
mov dword [rax], ebx
jmp 0x1404e0f8e
call fcn.1404bb09a
mov dword [rax], 0x16
jmp 0x1404e0f9e
call fcn.1404bbde4
or eax, 0xffffffff
jmp 0x1404e0fab
jmp 0x1404e1445
mov rax, r12
lea rcx, [0x1400ba940]
cmp si, 0x62a8
sar r15b, 0x3b
mov r15b, r12b
and eax, 0x3f
bts r15w, bx
movzx r15w, r14b
mov r13, r12
sar r13, 6
movzx r15d, si
lea r15, [rax + rax*8]
rcl ax, 0x26
shl si, cl
ror al, cl
mov rcx, qword [rcx + r13*8]
ror sil, 0xe8
shl rsi, cl
add si, r13w
movsx esi, byte [rcx + r15*8 + 0x39]
lea eax, [rsi - 1]
cmp al, 1
jmp 0x1404e100a
ja 0x1404e1028
mov eax, r14d
not eax
stc
jmp 0x1404e101b
test al, 1
jmp 0x1404e1022
je 0x1404e0f82
test byte [rcx + r15*8 + 0x38], 0x20
je 0x1404e105f
sub edx, edx
cmovne cx, bp
movsx r8w, cl
xchg r8b, r8b
mov ecx, r12d
setns r8b
movzx r8d, bx
bswap r8w
lea r8d, [rdx + 2]
jmp 0x1404e105a
call fcn.1401dd441
mov ecx, r12d
jmp 0x1404e1067
mov qword [rbp - 0x20], rbx
jmp 0x1404e1070
call fcn.1404e6f79
test eax, eax
jmp 0x1404e107c
je 0x1404e1247
lea rax, [0x1400ba940]
jmp 0x1404e108e
mov rax, qword [rax + r13*8]
jmp 0x1404e1097
cmp byte [rax + r15*8 + 0x38], bl
jmp 0x1404e10a1
jge 0x1404e1247
call fcn.1404cf477
mov rcx, qword [rax + 0x90]
test r13b, 0x56
test r10b, al
cmp qword [rcx + 0x138], rbx
jmp 0x1404e10c6
jne 0x1404e10ef
lea rax, [0x1400ba940]
cmc
cmp r10d, edi
mov rax, qword [rax + r13*8]
test dl, 7
cmc
cmp byte [rax + r15*8 + 0x39], bl
jmp 0x1404e10e9
je 0x1404e1247
lea rax, [0x1400ba940]
mov rcx, qword [rax + r13*8]
movsx edx, r14w
lea rdx, [rbp - 0x10]
mov rcx, qword [rcx + r15*8 + 0x28]
jmp 0x1404e110c
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jmp 0x1404e1119
je 0x1404e1247
test sil, sil
jmp 0x1404e1127
je 0x1404e121c
dec sil
cmp sil, 1
ja 0x1404e137a
lea r12, [rdi + r14]
movsx r14d, r9w
shld r14w, bx, 0xb9
sub r14w, bp
mov qword [rbp - 0x30], rbx
mov r14, rdi
cmc
test ebp, 0x1b22776b
cmp rdi, r12
jmp 0x1404e1162
jae 0x1404e1365
mov esi, dword [rbp - 0x2c]
movzx eax, word [r14]
bswap cx
movzx ecx, r13w
jmp 0x1404e117b
movzx ecx, ax
mov word [rbp - 0x10], ax
jmp 0x1404e1187
call fcn.1404eb67c
movzx ecx, word [rbp - 0x10]
test r9, 0x3c38048f
test sil, sil
cmp ax, cx
jne 0x1404e120e
add esi, 2
stc
mov dword [rbp - 0x2c], esi
cmp cx, 0xa
jmp 0x1404e11b3
jne 0x1404e11f2
mov ecx, 0xd
jmp 0x1404e11c3
call fcn.1404eb67c
mov ecx, 0xd
clc
cmp r14b, 0xc9
cmp ax, cx
jmp 0x1404e11da
jne 0x1404e120e
inc esi
mov dword [rbp - 0x2c], esi
jmp 0x1404e11ea
inc ebx
jmp 0x1404e11f2
add r14, 2
jmp 0x1404e11fb
cmp r14, r12
jmp 0x1404e1203
jae 0x1404e1365
jmp 0x1404e116b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
jmp 0x1404e1365
mov r9d, r14d
movsx r8w, sil
seto dl
lea rcx, [rbp - 0x30]
mov r8, rdi
cwd
mov edx, r12d
call fcn.1404e1497
movsd xmm0, qword [rax]
movzx ebx, di
mov ebx, dword [rax + 8]
jmp 0x1404e136a
lea rax, [0x1400ba940]
bsr rcx, rax
mov rcx, qword [rax + r13*8]
test dil, al
cmp byte [rcx + r15*8 + 0x38], bl
jmp 0x1404e1263
jge 0x1404e130e
mov ecx, esi
test sil, sil
jmp 0x1404e1273
je 0x1404e12e7
sub ecx, 1
jmp 0x1404e1281
je 0x1404e12bd
cmp ecx, 1
jmp 0x1404e128f
jne 0x1404e137a
mov r9d, r14d
movsx r8w, bl
lea rcx, [rbp - 0x30]
mov r8, rdi
movzx dx, r12b
not dl
mov edx, r12d
jmp 0x1404e12b3
call fcn.1404e20d8
jmp 0x1404e1238
mov r9d, r14d
not r8b
setb ch
movsxd rdx, r11d
lea rcx, [rbp - 0x30]
mov r8, rdi
not dh
bswap dx
mov edx, r12d
jmp 0x1404e12dd
call fcn.1404e2333
jmp 0x1404e1238
mov r9d, r14d
movzx r8, bx
cqo
lea rcx, [rbp - 0x30]
mov edx, r9d
cwd
mov r8, rdi
mov edx, r12d
jmp 0x1404e1304
call fcn.1404e1eb7
jmp 0x1404e1238
mov rcx, qword [rcx + r15*8 + 0x28]
cwd
sub dh, 0x6c
lea r9, [rbp - 0x2c]
sub eax, eax
xadd r8w, dx
sal dl, cl
xor dh, 0xe7
mov r8d, r14d
and qword [rsp + 0x20], rax
setg dh
movzx rdx, r10w
mov rdx, rdi
mov qword [rbp - 0x30], rax
jmp 0x1404e1343
mov dword [rbp - 0x28], eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jmp 0x1404e1353
jne 0x1404e1362
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
mov ebx, dword [rbp - 0x28]
movsd xmm0, qword [rbp - 0x30]
movsd qword [rbp - 0x20], xmm0
shld eax, ecx, 0xb0
rcl ah, 0x45
bt eax, 0x9c
mov rax, qword [rbp - 0x20]
clc
shr rax, 0x20
cmc
stc
test eax, eax
jmp 0x1404e138c
jne 0x1404e142f
mov eax, dword [rbp - 0x20]
cmp di, 0x45d6
test r10d, r11d
jmp 0x1404e13a2
test eax, eax
je 0x1404e13e5
cmp eax, 5
jne 0x1404e13d3
call fcn.1404bb09a
mov dword [rax], 9
call fcn.1404bb0d8
mov dword [rax], 5
jmp 0x1404e13ce
jmp 0x1404e0fa3
mov ecx, dword [rbp - 0x20]
jmp 0x1404e13db
call fcn.1404bb115
jmp 0x1404e0fa3
lea rax, [0x1400ba940]
test cl, bpl
mov rax, qword [rax + r13*8]
test byte [rax + r15*8 + 0x38], 0x40
jmp 0x1404e13fe
je 0x1404e1412
cmp byte [rdi], 0x1a
jmp 0x1404e140c
je 0x1404e143e
call fcn.1404bb09a
mov dword [rax], 0x1c
call fcn.1404bb0d8
and dword [rax], 0
jmp 0x1404e142a
jmp 0x1404e0fa3
mov eax, dword [rbp - 0x1c]
sub eax, ebx
jmp 0x1404e1439
jmp 0x1404e1445
sub eax, eax
movzx rdi, bx
stc
mov rbx, qword [rsp + 0xb8]
jmp 0x1404e1452
add rsp, 0x60
movsx r12, bp
movsx r12w, al
pop r15
setg r12b
movzx r14w, sil
xchg bp, si
pop r14
pop r13
pop r12
movsxd rdi, r14d
pop rdi
cmovge bp, r9w
xchg bpl, bpl
jmp 0x1404e1484
pop rsi
mov bpl, 0x95
movsx rbp, bp
movzx rbp, bp
pop rbp
jmp 0x1404e1496
ret