Function at 0x1404d41f6
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
cmp dl, sil
test ecx, edx
push rbp
btc bp, r12w
shl bpl, 0xfd
rcr bp, cl
push rsi
sal rbp, cl
add ebp, 0x5bb745c9
push rdi
xchg rbp, rbp
push r12
rcr r12w, cl
btr r12w, dx
push r13
push r14
not r14w
push r15
shrd di, r15w, 0x78
mov rbp, rsp
ror r12w, cl
sub rsp, 0x60
rcl edi, 0x6d
test rsi, r11
xor ebx, ebx
mov r14d, r8d
movsxd r12, ecx
bsf di, r14w
rol dil, cl
mov rdi, rdx
test r8d, r8d
jmp 0x1404d4262
je 0x1404d4781
test rdx, rdx
jmp 0x1404d4270
jne 0x1404d42a4
call fcn.1404ae12b
mov dword [rax], ebx
jmp 0x1404d4282
call fcn.1404ae0f9
mov dword [rax], 0x16
jmp 0x1404d4292
call fcn.1404aed82
or eax, 0xffffffff
jmp 0x1404d429f
jmp 0x1404d4783
mov rax, r12
and r13b, 0xf7
xadd cl, ch
lea rcx, [0x1400ba940]
rcl r15b, 0x5c
sal sil, cl
and sil, dil
and eax, 0x3f
or sil, 0xc3
rcr r15b, cl
mov r13, r12
xor esi, 0x93d32c3
shl r15b, cl
seto r15b
sar r13, 6
lea r15, [rax + rax*8]
xadd esi, eax
sal sil, cl
mov rcx, qword [rcx + r13*8]
mov al, r14b
movsx esi, byte [rcx + r15*8 + 0x39]
movzx rax, di
xadd ax, ax
shr al, 2
lea eax, [rsi - 1]
jmp 0x1404d430b
cmp al, 1
jmp 0x1404d4312
ja 0x1404d432a
mov eax, r14d
not eax
jmp 0x1404d4322
test al, 1
je 0x1404d4276
test byte [rcx + r15*8 + 0x38], 0x20
jmp 0x1404d4335
je 0x1404d435e
xor edx, edx
not r8
mov ecx, r12d
movzx r8, r12w
movsx r8d, r15w
mov r8w, 0x2739
lea r8d, [rdx + 2]
jmp 0x1404d4359
call fcn.14026871c
mov ecx, r12d
mov qword [rbp - 0x20], rbx
jmp 0x1404d436a
call fcn.1404da247
test eax, eax
je 0x1404d4565
lea rax, [0x1400ba940]
jmp 0x1404d4383
mov rax, qword [rax + r13*8]
test r12b, 0xd5
cmp r11w, 0x5413
cmp r14w, bp
cmp byte [rax + r15*8 + 0x38], bl
jmp 0x1404d439f
jge 0x1404d4565
call fcn.1404c2697
mov rcx, qword [rax + 0x90]
cmp qword [rcx + 0x138], rbx
jmp 0x1404d43bd
jne 0x1404d43de
lea rax, [0x1400ba940]
mov rax, qword [rax + r13*8]
cmp byte [rax + r15*8 + 0x39], bl
jmp 0x1404d43d8
je 0x1404d4565
lea rax, [0x1400ba940]
movzx cx, r8b
movsx ecx, ax
cmovnp ecx, r11d
mov rcx, qword [rax + r13*8]
cwd
movzx edx, r13w
jmp 0x1404d4400
lea rdx, [rbp - 0x10]
jmp 0x1404d4409
mov rcx, qword [rcx + r15*8 + 0x28]
jmp 0x1404d4413
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jmp 0x1404d4420
je 0x1404d4565
test sil, sil
jmp 0x1404d442e
je 0x1404d4529
dec sil
cmp r8b, 6
cmp sil, 1
jmp 0x1404d4444
ja 0x1404d46b4
lea r12, [rdi + r14]
test sil, 0xd4
sal r14, 0x1e
mov qword [rbp - 0x30], rbx
movsxd r14, ebx
test bx, 0x25d8
mov r14, rdi
jmp 0x1404d446c
cmp rdi, r12
jmp 0x1404d4474
jae 0x1404d469e
mov esi, dword [rbp - 0x2c]
movzx ecx, r13w
movzx eax, word [r14]
movsxd rcx, r9d
movsx ecx, bp
movzx ecx, ax
jmp 0x1404d4493
mov word [rbp - 0x10], ax
jmp 0x1404d449c
call fcn.1404de9c7
movzx ecx, word [rbp - 0x10]
cmc
cmp ax, cx
jmp 0x1404d44ae
jne 0x1404d4516
add esi, 2
mov dword [rbp - 0x2c], esi
cmc
cmp cx, 0xa
jmp 0x1404d44c4
jne 0x1404d44ff
mov ecx, 0xd
jmp 0x1404d44d4
call fcn.1404de9c7
mov ecx, 0xd
stc
cmp ax, cx
jne 0x1404d4516
inc esi
jmp 0x1404d44ef
mov dword [rbp - 0x2c], esi
jmp 0x1404d44f7
inc ebx
cmp r10w, 0x1fde
add r14, 2
cmp r14, r12
jmp 0x1404d450b
jae 0x1404d469e
jmp 0x1404d4481
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
jmp 0x1404d4524
jmp 0x1404d469e
mov r9d, r14d
movzx ecx, r12w
movzx rdx, bp
lea rcx, [rbp - 0x30]
mov dl, r15b
mov r8, rdi
mov dx, r9w
mov edx, r12d
jmp 0x1404d454a
call fcn.1404d47ca
movsd xmm0, qword [rax]
movzx bx, r12b
mov ebx, dword [rax + 8]
jmp 0x1404d4560
jmp 0x1404d46a6
lea rax, [0x1400ba940]
bsr cx, bx
jmp 0x1404d457a
mov rcx, qword [rax + r13*8]
cmp byte [rcx + r15*8 + 0x38], bl
jmp 0x1404d4588
jge 0x1404d463d
mov ecx, esi
test sil, sil
jmp 0x1404d4598
je 0x1404d460f
sub ecx, 1
jmp 0x1404d45a6
je 0x1404d45e7
cmp ecx, 1
jne 0x1404d46b4
mov r9d, r14d
cmove r8w, r13w
movzx edx, r12w
xchg r8d, r8d
lea rcx, [rbp - 0x30]
cqo
mov r8, rdi
bswap edx
movsx edx, bx
not dx
mov edx, r12d
jmp 0x1404d45dd
call fcn.1404d5456
jmp 0x1404d454f
mov r9d, r14d
cdq
lea rcx, [rbp - 0x30]
mov dx, 0x3155
movsx dx, bh
mov r8, rdi
movsxd rdx, esp
mov edx, r12d
jmp 0x1404d4605
call fcn.1404d569d
jmp 0x1404d454f
mov r9d, r14d
movsx r8, bp
not rdx
jmp 0x1404d461e
lea rcx, [rbp - 0x30]
movsxd r8, r8d
movsx rdx, sp
bswap r8w
mov r8, rdi
mov edx, r12d
call fcn.1404d51f1
jmp 0x1404d454f
mov rcx, qword [rcx + r15*8 + 0x28]
cmp dx, r11w
inc rdx
lea r9, [rbp - 0x2c]
adc r8b, 0x41
bswap dx
xor eax, eax
mov r8d, r14d
sub dl, dl
and qword [rsp + 0x20], rax
mov rdx, rdi
jmp 0x1404d4668
mov qword [rbp - 0x30], rax
jmp 0x1404d4671
mov dword [rbp - 0x28], eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jmp 0x1404d4681
jne 0x1404d4693
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
bts eax, eax
mov ebx, dword [rbp - 0x28]
test r13b, cl
btr ax, 0x6e
movsd xmm0, qword [rbp - 0x30]
sub eax, r11d
movsd qword [rbp - 0x20], xmm0
mov al, 0x2f
btr eax, 0x87
xor al, spl
mov rax, qword [rbp - 0x20]
shr rax, 0x20
cmc
clc
test eax, eax
jne 0x1404d476f
mov eax, dword [rbp - 0x20]
test eax, eax
jmp 0x1404d46d0
je 0x1404d471b
cmp eax, 5
jmp 0x1404d46de
jne 0x1404d4709
call fcn.1404ae0f9
mov dword [rax], 9
jmp 0x1404d46f4
call fcn.1404ae12b
mov dword [rax], 5
jmp 0x1404d4704
jmp 0x1404d4297
mov ecx, dword [rbp - 0x20]
jmp 0x1404d4711
call fcn.1404ae16b
jmp 0x1404d4297
lea rax, [0x1400ba940]
mov rax, qword [rax + r13*8]
cmp r9w, r14w
cmp r8b, 0x2f
test byte [rax + r15*8 + 0x38], 0x40
jmp 0x1404d4739
je 0x1404d474d
cmp byte [rdi], 0x1a
jmp 0x1404d4747
je 0x1404d4781
call fcn.1404ae0f9
mov dword [rax], 0x1c
jmp 0x1404d475d
call fcn.1404ae12b
and dword [rax], 0
jmp 0x1404d476a
jmp 0x1404d4297
mov eax, dword [rbp - 0x1c]
clc
stc
cmc
sub eax, ebx
jmp 0x1404d477c
jmp 0x1404d4783
sub eax, eax
mov rbx, qword [rsp + 0xb8]
sbb r15b, 0x58
cmc
btc bp, r15w
add rsp, 0x60
mov r15b, dl
cmovle r14w, sp
pop r15
movzx r12, ax
pop r14
pop r13
movsx r12w, r11b
movsx esi, r8w
not rsi
pop r12
movsxd rdi, r9d
pop rdi
movzx rbp, bp
pop rsi
xchg ebp, ebp
movsx ebp, r13w
pop rbp
ret