Function at 0x1404d8900
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
movzx ebp, bp
or bpl, r9b
test bx, 0x3a39
push rsi
neg bpl
movsxd rbp, ebp
btc ebp, 0xea
push rdi
push r12
push r13
inc bp
clc
dec r12d
push r14
xadd bpl, bpl
rcl r12w, cl
push r15
not dil
movsxd rdi, ebp
cmp r10b, 0xc7
mov rbp, rsp
xchg dil, r12b
sub rsp, 0x60
sub dil, 0xce
rol dil, cl
bswap r14
xor ebx, ebx
rcr r14b, cl
not dil
mov r14d, r8d
movsxd r12, ecx
not dil
bsr edi, esp
mov rdi, rdx
cmp r13w, 0x62e2
test r8d, r8d
jmp 0x1404d8977
je 0x1404d8e5a
test rdx, rdx
jne 0x1404d89b4
call fcn.1404b2a75
mov dword [rax], ebx
jmp 0x1404d8992
call fcn.1404b2a34
mov dword [rax], 0x16
jmp 0x1404d89a2
call fcn.1404b36f7
or eax, 0xffffffff
jmp 0x1404d89af
jmp 0x1404d8e5d
mov rax, r12
cmova rcx, rdi
shld r15, rdx, 0x76
sal esi, 0x87
lea rcx, [0x1400ba940]
stc
sbb r13w, 0x64e4
btr r13w, r9w
and eax, 0x3f
btc r13w, sp
mov r13, r12
bts esi, ecx
sar r13, 6
lea r15, [rax + rax*8]
bt eax, 0xc5
bsf rsi, rdx
mov rcx, qword [rcx + r13*8]
rol rsi, 0xa8
adc sil, r8b
movsx esi, byte [rcx + r15*8 + 0x39]
lea eax, [rsi - 1]
cmp al, 1
jmp 0x1404d8a0f
ja 0x1404d8a2f
mov eax, r14d
not eax
test rbx, 0x2ca83cd0
stc
test al, 1
jmp 0x1404d8a29
je 0x1404d8986
test byte [rcx + r15*8 + 0x38], 0x20
jmp 0x1404d8a3a
je 0x1404d8a53
sub edx, edx
mov ecx, r12d
lea r8d, [rdx + 2]
jmp 0x1404d8a4e
call fcn.14028f6cc
mov ecx, r12d
jmp 0x1404d8a5b
mov qword [rbp - 0x20], rbx
jmp 0x1404d8a64
call fcn.1404de94f
test eax, eax
jmp 0x1404d8a70
je 0x1404d8c4e
lea rax, [0x1400ba940]
mov rax, qword [rax + r13*8]
cmp byte [rax + r15*8 + 0x38], bl
jmp 0x1404d8a8b
jge 0x1404d8c4e
call fcn.1404c6e28
mov rcx, qword [rax + 0x90]
stc
jmp 0x1404d8aa3
cmp qword [rcx + 0x138], rbx
jmp 0x1404d8aaf
jne 0x1404d8ada
lea rax, [0x1400ba940]
test sil, 0xaa
mov rax, qword [rax + r13*8]
cmp bl, r12b
test r11b, r8b
cmp byte [rax + r15*8 + 0x39], bl
jmp 0x1404d8ad4
je 0x1404d8c4e
lea rax, [0x1400ba940]
mov ecx, 0x636105e1
mov rcx, qword [rax + r13*8]
mov dl, r15b
movzx edx, r9w
lea rdx, [rbp - 0x10]
mov rcx, qword [rcx + r15*8 + 0x28]
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jmp 0x1404d8b07
je 0x1404d8c4e
test sil, sil
jmp 0x1404d8b15
je 0x1404d8c11
dec sil
stc
cmp r10w, 0x5995
cmc
cmp sil, 1
ja 0x1404d8d85
lea r12, [rdi + r14]
mov qword [rbp - 0x30], rbx
cmovno r14w, r9w
mov r14, rdi
jmp 0x1404d8b46
cmp rdi, r12
jmp 0x1404d8b4e
jae 0x1404d8d67
mov esi, dword [rbp - 0x2c]
movzx eax, word [r14]
movsx ecx, bx
movzx ecx, ax
jmp 0x1404d8b66
mov word [rbp - 0x10], ax
jmp 0x1404d8b6f
call fcn.1404e3145
movzx ecx, word [rbp - 0x10]
test r8, 0x204c763a
cmc
cmp ax, cx
jmp 0x1404d8b88
jne 0x1404d8bfe
add esi, 2
jmp 0x1404d8b99
mov dword [rbp - 0x2c], esi
clc
cmp cx, 0xa
jmp 0x1404d8ba6
jne 0x1404d8be7
mov ecx, 0xd
jmp 0x1404d8bb6
call fcn.1404e3145
mov ecx, 0xd
test r13b, 0x21
cmp ax, cx
jmp 0x1404d8bcc
jne 0x1404d8bfe
inc esi
mov dword [rbp - 0x2c], esi
jmp 0x1404d8bdc
inc ebx
jmp 0x1404d8be7
add r14, 2
cmp r14, r12
jmp 0x1404d8bf3
jae 0x1404d8d67
jmp 0x1404d8b57
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
jmp 0x1404d8c0c
jmp 0x1404d8d67
mov r9d, r14d
lea rcx, [rbp - 0x30]
cwd
cmovl dx, r10w
mov r8, rdi
movsxd rdx, edi
movzx rdx, r9w
cmovp rdx, rbp
mov edx, r12d
jmp 0x1404d8c35
call fcn.1404d8eaa
movsd xmm0, qword [rax]
setb bl
mov ebx, dword [rax + 8]
jmp 0x1404d8c49
jmp 0x1404d8d76
lea rax, [0x1400ba940]
rcr cl, 0xd2
xchg cl, cl
movzx cx, r10b
mov rcx, qword [rax + r13*8]
cmp dil, 0x35
cmp byte [rcx + r15*8 + 0x38], bl
jmp 0x1404d8c71
jge 0x1404d8d0e
mov ecx, esi
test sil, sil
je 0x1404d8cf0
sub ecx, 1
je 0x1404d8cbd
cmp ecx, 1
jmp 0x1404d8c93
jne 0x1404d8d85
mov r9d, r14d
lea rcx, [rbp - 0x30]
mov r8, rdi
movsx edx, si
setg dh
cqo
mov edx, r12d
jmp 0x1404d8cb3
call fcn.1404d9b24
jmp 0x1404d8c3a
mov r9d, r14d
jmp 0x1404d8cca
lea rcx, [rbp - 0x30]
mov dl, r12b
xchg dx, dx
jmp 0x1404d8cd9
mov r8, rdi
movsx rdx, r9w
movsxd rdx, r10d
mov edx, r12d
call fcn.1404d9d8e
jmp 0x1404d8c3a
mov r9d, r14d
movsxd rcx, r15d
mov cl, 0xeb
lea rcx, [rbp - 0x30]
mov r8, rdi
cwd
mov edx, r12d
call fcn.1404d9899
jmp 0x1404d8c3a
mov rcx, qword [rcx + r15*8 + 0x28]
lea r9, [rbp - 0x2c]
xor r8w, 0x6829
cwd
cmp r8w, 0x799a
sub eax, eax
xchg dl, dl
mov r8d, r14d
and qword [rsp + 0x20], rax
movzx edx, dx
mov rdx, rdi
mov qword [rbp - 0x30], rax
jmp 0x1404d8d40
mov dword [rbp - 0x28], eax
jmp 0x1404d8d48
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jmp 0x1404d8d55
jne 0x1404d8d64
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
mov ebx, dword [rbp - 0x28]
movsd xmm0, qword [rbp - 0x30]
jmp 0x1404d8d76
movsd qword [rbp - 0x20], xmm0
ror ah, 0x20
cmp r12b, dil
and ax, 0x5455
mov rax, qword [rbp - 0x20]
test cx, 0x26b6
stc
clc
shr rax, 0x20
cmp r15b, 0x62
clc
test eax, eax
jmp 0x1404d8da0
jne 0x1404d8e46
mov eax, dword [rbp - 0x20]
cmc
cmp sil, dl
test eax, eax
jmp 0x1404d8db4
je 0x1404d8df5
cmp eax, 5
jmp 0x1404d8dc2
jne 0x1404d8de8
call fcn.1404b2a34
mov dword [rax], 9
call fcn.1404b2a75
mov dword [rax], 5
jmp 0x1404d8de3
jmp 0x1404d89a7
mov ecx, dword [rbp - 0x20]
call fcn.1404b2ab6
jmp 0x1404d89a7
lea rax, [0x1400ba940]
cmc
test r12b, 0x8a
test r10w, sp
mov rax, qword [rax + r13*8]
clc
test byte [rax + r15*8 + 0x38], 0x40
jmp 0x1404d8e15
je 0x1404d8e29
cmp byte [rdi], 0x1a
jmp 0x1404d8e23
je 0x1404d8e5a
call fcn.1404b2a34
mov dword [rax], 0x1c
jmp 0x1404d8e39
call fcn.1404b2a75
and dword [rax], 0
jmp 0x1404d89a7
mov eax, dword [rbp - 0x1c]
cmp r14b, 0xda
stc
sub eax, ebx
jmp 0x1404d8e55
jmp 0x1404d8e5d
sub eax, eax
cmc
mov rbx, qword [rsp + 0xb8]
shld r15w, r8w, 0x5d
sbb bp, 0x5765
add rsp, 0x60
movsx r13w, bpl
movzx rdi, r9w
not rsi
pop r15
pop r14
pop r13
bswap r12d
xchg r12w, r12w
movsx rdi, r13w
pop r12
movsx di, r12b
movsx edi, ax
cmovnp di, di
pop rdi
pop rsi
bswap bp
mov bp, 0x6ebd
pop rbp
ret