Function at 0x1404dc01f
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
cmp r8b, r9b
clc
test edi, r15d
push rbp
push rsi
adc rbp, 0x153d0131
push rdi
and edi, 0x43cf7e21
neg bp
push r12
push r13
movzx ebp, r10w
push r14
btr r12w, 0x21
xor r12w, 0x6cc0
shr r12w, 0x19
push r15
sub bp, 0x6c70
shrd ebp, r8d, 0x4b
movsx rdi, r12w
mov rbp, rsp
bswap r14d
sub rsp, 0x60
bts r12, r15
sub ebx, ebx
add r14, 0x4a8f561e
movzx r14, si
mov r14d, r8d
sar r12w, cl
btc r12, 0xe7
movsxd r12, ecx
or edi, 0xf2c2191
movsxd rdi, r14d
mov rdi, rdx
jmp 0x1404dc0a4
test r8d, r8d
jmp 0x1404dc0ac
je 0x1404dc589
test rdx, rdx
jmp 0x1404dc0ba
jne 0x1404dc0e9
call fcn.1404b6127
mov dword [rax], ebx
jmp 0x1404dc0cc
call fcn.1404b60e7
mov dword [rax], 0x16
call fcn.1404b6d9b
or eax, 0xffffffff
jmp 0x1404dc0e4
jmp 0x1404dc58f
mov rax, r12
cmovae si, r8w
lea rcx, [0x1400ba940]
and eax, 0x3f
mov r13, r12
add r15w, 0x1010
bt si, 0x11
shr esi, 0x17
sar r13, 6
or esi, ebp
btc r15w, si
movsxd r15, ecx
lea r15, [rax + rax*8]
and eax, ecx
movsxd rax, ebp
stc
mov rcx, qword [rcx + r13*8]
movzx ax, ch
movsx esi, byte [rcx + r15*8 + 0x39]
xchg al, ah
lea eax, [rsi - 1]
jmp 0x1404dc13d
cmp al, 1
jmp 0x1404dc144
ja 0x1404dc15f
mov eax, r14d
cmp al, dil
not eax
test al, 1
jmp 0x1404dc159
je 0x1404dc0c0
test byte [rcx + r15*8 + 0x38], 0x20
jmp 0x1404dc16a
je 0x1404dc195
xor edx, edx
bswap r8d
cmovns r8d, r10d
mov ecx, r12d
setb r8b
bswap r8d
movzx r8d, di
lea r8d, [rdx + 2]
jmp 0x1404dc190
call fcn.1401ebb0a
mov ecx, r12d
jmp 0x1404dc19d
mov qword [rbp - 0x20], rbx
jmp 0x1404dc1a6
call fcn.1404e1eec
test eax, eax
jmp 0x1404dc1b2
je 0x1404dc377
lea rax, [0x1400ba940]
cmc
jmp 0x1404dc1c5
mov rax, qword [rax + r13*8]
cmc
jmp 0x1404dc1cf
cmp byte [rax + r15*8 + 0x38], bl
jge 0x1404dc377
call fcn.1404ca4a3
mov rcx, qword [rax + 0x90]
cmp qword [rcx + 0x138], rbx
jmp 0x1404dc1f2
jne 0x1404dc213
lea rax, [0x1400ba940]
mov rax, qword [rax + r13*8]
cmp byte [rax + r15*8 + 0x39], bl
jmp 0x1404dc20d
je 0x1404dc377
lea rax, [0x1400ba940]
mov rcx, qword [rax + r13*8]
lea rdx, [rbp - 0x10]
mov rcx, qword [rcx + r15*8 + 0x28]
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jmp 0x1404dc234
je 0x1404dc377
test sil, sil
jmp 0x1404dc242
je 0x1404dc349
dec sil
cmp sil, 1
jmp 0x1404dc254
ja 0x1404dc4c0
lea r12, [rdi + r14]
sal r14b, cl
bts r14w, cx
mov qword [rbp - 0x30], rbx
adc r14b, 0xd5
mov r14, rdi
cmc
stc
test eax, r10d
cmp rdi, r12
jmp 0x1404dc27e
jae 0x1404dc4ac
mov esi, dword [rbp - 0x2c]
movsxd rax, ecx
movsx cx, r15b
cbw
movzx eax, word [r14]
setg cl
cmovns cx, r11w
not cx
movzx ecx, ax
jmp 0x1404dc2a8
mov word [rbp - 0x10], ax
jmp 0x1404dc2b1
call fcn.1404e6817
movzx ecx, word [rbp - 0x10]
cmp ax, cx
jmp 0x1404dc2c2
jne 0x1404dc336
add esi, 2
mov dword [rbp - 0x2c], esi
test r14b, r11b
stc
cmp cx, 0xa
jmp 0x1404dc2db
jne 0x1404dc318
mov ecx, 0xd
jmp 0x1404dc2eb
call fcn.1404e6817
mov ecx, 0xd
test r11w, r11w
cmp ax, cx
jmp 0x1404dc301
jne 0x1404dc336
inc esi
jmp 0x1404dc30e
mov dword [rbp - 0x2c], esi
jmp 0x1404dc316
inc ebx
add r14, 2
test al, r14b
cmp r9b, spl
stc
cmp r14, r12
jmp 0x1404dc32b
jae 0x1404dc4ac
jmp 0x1404dc291
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
jmp 0x1404dc344
jmp 0x1404dc4ac
mov r9d, r14d
cwd
mov r8, rsp
lea rcx, [rbp - 0x30]
mov r8, rdi
cdq
mov edx, r12d
call fcn.1404dc5dc
movsd xmm0, qword [rax]
mov ebx, 0x670f4409
mov ebx, dword [rax + 8]
jmp 0x1404dc372
jmp 0x1404dc4b3
lea rax, [0x1400ba940]
btc ecx, ebx
btr cx, 0xd8
mov rcx, qword [rax + r13*8]
cmc
test rsi, rbp
cmp byte [rcx + r15*8 + 0x38], bl
jmp 0x1404dc398
jge 0x1404dc441
mov ecx, esi
test sil, sil
jmp 0x1404dc3a8
je 0x1404dc41f
sub ecx, 1
jmp 0x1404dc3b6
je 0x1404dc3fc
cmp ecx, 1
jne 0x1404dc4c0
mov r9d, r14d
movzx rcx, r13w
movzx r8d, r12w
movzx cx, r11b
lea rcx, [rbp - 0x30]
mov r8, rdi
movzx dx, r12b
jmp 0x1404dc3ea
mov edx, r12d
jmp 0x1404dc3f2
call fcn.1404dd1d3
jmp 0x1404dc361
mov r9d, r14d
lea rcx, [rbp - 0x30]
cmovns rdx, r10
movsxd r8, r11d
mov r8, rdi
mov edx, r12d
jmp 0x1404dc415
call fcn.1404dd3f8
jmp 0x1404dc361
mov r9d, r14d
cwd
movsx ecx, r14w
lea rcx, [rbp - 0x30]
mov r8, rdi
mov edx, r12d
jmp 0x1404dc437
call fcn.1404dcfa0
jmp 0x1404dc361
mov rcx, qword [rcx + r15*8 + 0x28]
rcr r8b, cl
or r8, rdx
ror r9b, 7
lea r9, [rbp - 0x2c]
inc r8b
movzx edx, r9w
movsxd rdx, r13d
sub eax, eax
mov r8d, r14d
and qword [rsp + 0x20], rax
movzx dx, sil
cmovp rdx, r8
not rdx
mov rdx, rdi
jmp 0x1404dc47c
mov qword [rbp - 0x30], rax
jmp 0x1404dc485
mov dword [rbp - 0x28], eax
jmp 0x1404dc48d
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jmp 0x1404dc49a
jne 0x1404dc4a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
mov ebx, dword [rbp - 0x28]
movsd xmm0, qword [rbp - 0x30]
rcl ah, cl
movsd qword [rbp - 0x20], xmm0
bsr eax, eax
cmp bl, r14b
and al, 0xa0
mov rax, qword [rbp - 0x20]
shr rax, 0x20
cmp ax, 0xbe5
test eax, eax
jmp 0x1404dc4d3
jne 0x1404dc576
mov eax, dword [rbp - 0x20]
test eax, eax
jmp 0x1404dc4e3
je 0x1404dc529
cmp eax, 5
jne 0x1404dc517
call fcn.1404b60e7
mov dword [rax], 9
jmp 0x1404dc502
call fcn.1404b6127
mov dword [rax], 5
jmp 0x1404dc512
jmp 0x1404dc0dc
mov ecx, dword [rbp - 0x20]
jmp 0x1404dc51f
call fcn.1404b6162
jmp 0x1404dc0dc
lea rax, [0x1400ba940]
cmc
test rax, r12
mov rax, qword [rax + r13*8]
cmc
stc
jmp 0x1404dc53f
test byte [rax + r15*8 + 0x38], 0x40
jmp 0x1404dc54a
je 0x1404dc55e
cmp byte [rdi], 0x1a
jmp 0x1404dc558
je 0x1404dc589
call fcn.1404b60e7
mov dword [rax], 0x1c
call fcn.1404b6127
and dword [rax], 0
jmp 0x1404dc0dc
mov eax, dword [rbp - 0x1c]
cmp r14b, 0x4c
sub eax, ebx
jmp 0x1404dc584
jmp 0x1404dc58f
sub eax, eax
bswap r14d
cmc
mov rbx, qword [rsp + 0xb8]
rcr r14d, 0x19
movsx ebp, dx
add rsp, 0x60
movsx r12w, cl
movzx r14w, r10b
bswap edi
pop r15
pop r14
cmovbe r13d, r10d
movsx rdi, dx
movsx r13w, cl
pop r13
pop r12
movzx rsi, r12w
pop rdi
jmp 0x1404dc5d0
pop rsi
cmovnp bp, bp
movsx bp, r8b
pop rbp
ret