Function at 0x1404d8923
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
cmp r8d, 0x1fad6330
push rbp
push rsi
ror rbp, cl
rcl bpl, 0x4c
push rdi
cmc
btc ebp, esp
push r12
dec bpl
ror r12b, 0xc5
push r13
push r14
ror rdi, cl
jmp 0x1404d8952
push r15
shld r12d, r15d, 9
mov rbp, rsp
btr r14w, 0x6e
cmovne di, r8w
sub rsp, 0x60
neg r12b
rcl dil, cl
xor ebx, ebx
movsx r12w, dl
xchg r12w, r14w
mov r14d, r8d
shr r12w, cl
adc r12b, 0xff
rcl dil, cl
movsxd r12, ecx
mov rdi, rdx
test bx, 0x541
test r8d, r8d
jmp 0x1404d899d
je 0x1404d8e99
test rdx, rdx
jne 0x1404d89d5
call fcn.1404b2d51
mov dword [rax], ebx
jmp 0x1404d89b8
call fcn.1404b2d1c
mov dword [rax], 0x16
call fcn.1404b39ea
or eax, 0xffffffff
jmp 0x1404d89d0
jmp 0x1404d8ea2
mov rax, r12
xor r15d, r15d
rcl r13d, cl
lea rcx, [0x1400ba940]
or sil, cl
setle sil
and eax, 0x3f
shl sil, cl
sar sil, cl
mov r13, r12
shl rsi, cl
neg r15b
sar r13, 6
movsx rsi, r11w
lea r15, [rax + rax*8]
btr rsi, 0xdd
ror rsi, 0x1c
add al, 0xc6
mov rcx, qword [rcx + r13*8]
movsx esi, byte [rcx + r15*8 + 0x39]
test r14w, r8w
rcr al, 0x5e
shl al, 0xa7
lea eax, [rsi - 1]
test r15b, 0x5b
cmp di, sp
cmp al, 1
jmp 0x1404d8a3a
ja 0x1404d8a5c
mov eax, r14d
cmp r13b, r13b
test al, 0xb1
not eax
cmp eax, 0x3ac416eb
jmp 0x1404d8a54
test al, 1
je 0x1404d89ac
test byte [rcx + r15*8 + 0x38], 0x20
jmp 0x1404d8a67
je 0x1404d8a8d
xor edx, edx
not r8w
movsx cx, dh
mov ecx, r12d
mov r8w, 0x32bc
lea r8d, [rdx + 2]
jmp 0x1404d8a88
call fcn.1400fb6ba
mov ecx, r12d
jmp 0x1404d8a95
mov qword [rbp - 0x20], rbx
call fcn.1404de986
test eax, eax
jmp 0x1404d8aa5
je 0x1404d8c8c
lea rax, [0x1400ba940]
jmp 0x1404d8ab7
mov rax, qword [rax + r13*8]
cmc
test r15w, bp
cmp byte [rax + r15*8 + 0x38], bl
jmp 0x1404d8aca
jge 0x1404d8c8c
call fcn.1404c6f70
mov rcx, qword [rax + 0x90]
clc
jmp 0x1404d8ae3
cmp qword [rcx + 0x138], rbx
jmp 0x1404d8aef
jne 0x1404d8b16
lea rax, [0x1400ba940]
mov rax, qword [rax + r13*8]
cmc
jmp 0x1404d8b06
cmp byte [rax + r15*8 + 0x39], bl
jmp 0x1404d8b10
je 0x1404d8c8c
lea rax, [0x1400ba940]
mov rcx, qword [rax + r13*8]
cwd
movsx dx, dil
lea rdx, [rbp - 0x10]
jmp 0x1404d8b31
mov rcx, qword [rcx + r15*8 + 0x28]
jmp 0x1404d8b3b
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jmp 0x1404d8b48
je 0x1404d8c8c
test sil, sil
jmp 0x1404d8b56
je 0x1404d8c5f
dec sil
stc
cmp sil, 1
jmp 0x1404d8b69
ja 0x1404d8dcd
lea r12, [rdi + r14]
rol r14w, 0xee
sar r14w, cl
movsx r14w, r15b
mov qword [rbp - 0x30], rbx
test r14d, r8d
rcr r14w, 0x9c
mov r14, rdi
cmp rdi, r12
jmp 0x1404d8b98
jae 0x1404d8db5
mov esi, dword [rbp - 0x2c]
movzx eax, dx
movsx rcx, bx
cbw
movzx eax, word [r14]
not ecx
movzx cx, dl
movzx ecx, ax
jmp 0x1404d8bbc
mov word [rbp - 0x10], ax
jmp 0x1404d8bc5
call fcn.1404e3112
movzx ecx, word [rbp - 0x10]
clc
cmp ax, cx
jmp 0x1404d8bd7
jne 0x1404d8c4c
add esi, 2
mov dword [rbp - 0x2c], esi
clc
cmp cx, 0xa
jmp 0x1404d8bed
jne 0x1404d8c36
mov ecx, 0xd
jmp 0x1404d8bfd
call fcn.1404e3112
mov ecx, 0xd
test r15d, 0x1c2b4102
cmp r11b, 0x2e
test spl, r8b
cmp ax, cx
jmp 0x1404d8c1d
jne 0x1404d8c4c
inc esi
mov dword [rbp - 0x2c], esi
jmp 0x1404d8c2d
inc ebx
cmc
cmp r14w, 0x1552
add r14, 2
test al, r10b
clc
cmp r14, r12
jae 0x1404d8db5
jmp 0x1404d8baa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
jmp 0x1404d8c5a
jmp 0x1404d8db5
mov r9d, r14d
movzx rcx, dx
lea rcx, [rbp - 0x30]
setnp r8b
mov r8, rdi
mov edx, r12d
call fcn.1404d8ef6
movsd xmm0, qword [rax]
not bh
mov ebx, dword [rax + 8]
jmp 0x1404d8c87
jmp 0x1404d8dbe
lea rax, [0x1400ba940]
rcr ecx, 0x2b
xadd cx, cx
mov rcx, qword [rax + r13*8]
cmp byte [rcx + r15*8 + 0x38], bl
jmp 0x1404d8ca8
jge 0x1404d8d5f
mov ecx, esi
test r14b, 0x2f
cmp rcx, 0x3fdb4799
jmp 0x1404d8cc0
test sil, sil
jmp 0x1404d8cc8
je 0x1404d8d3b
sub ecx, 1
jmp 0x1404d8cd6
je 0x1404d8d0d
cmp ecx, 1
jmp 0x1404d8ce4
jne 0x1404d8dcd
mov r9d, r14d
movzx ecx, cx
lea rcx, [rbp - 0x30]
sets r8b
mov r8, rdi
mov edx, r12d
jmp 0x1404d8d03
call fcn.1404d9b31
jmp 0x1404d8c79
mov r9d, r14d
cqo
movsx dx, ah
cwd
lea rcx, [rbp - 0x30]
jmp 0x1404d8d28
mov r8, rdi
bswap dx
mov edx, r12d
call fcn.1404d9db4
jmp 0x1404d8c79
mov r9d, r14d
setnp r8b
mov edx, 0x33961f12
cmovbe cx, di
lea rcx, [rbp - 0x30]
mov r8, rdi
mov edx, r12d
call fcn.1404d9906
jmp 0x1404d8c79
mov rcx, qword [rcx + r15*8 + 0x28]
lea r9, [rbp - 0x2c]
sub eax, eax
movsx r8, r13w
setle dl
bsf rdx, r11
mov r8d, r14d
cqo
test spl, r13b
and qword [rsp + 0x20], rax
mov rdx, rdi
jmp 0x1404d8d8a
mov qword [rbp - 0x30], rax
jmp 0x1404d8d93
mov dword [rbp - 0x28], eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jmp 0x1404d8da3
jne 0x1404d8db2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
mov ebx, dword [rbp - 0x28]
movsd xmm0, qword [rbp - 0x30]
bts eax, r11d
movsd qword [rbp - 0x20], xmm0
and al, r9b
bsr ax, bp
bsf eax, esi
mov rax, qword [rbp - 0x20]
cmc
shr rax, 0x20
test eax, eax
jmp 0x1404d8ddd
jne 0x1404d8e87
mov eax, dword [rbp - 0x20]
stc
test eax, eax
jmp 0x1404d8dee
je 0x1404d8e34
cmp eax, 5
jmp 0x1404d8dfc
jne 0x1404d8e27
call fcn.1404b2d1c
mov dword [rax], 9
jmp 0x1404d8e12
call fcn.1404b2d51
mov dword [rax], 5
jmp 0x1404d8e22
jmp 0x1404d89c8
mov ecx, dword [rbp - 0x20]
call fcn.1404b2d89
jmp 0x1404d89c8
lea rax, [0x1400ba940]
cmp r15b, sil
mov rax, qword [rax + r13*8]
cmc
test ebp, edx
clc
test byte [rax + r15*8 + 0x38], 0x40
jmp 0x1404d8e51
je 0x1404d8e65
cmp byte [rdi], 0x1a
jmp 0x1404d8e5f
je 0x1404d8e99
call fcn.1404b2d1c
mov dword [rax], 0x1c
jmp 0x1404d8e75
call fcn.1404b2d51
and dword [rax], 0
jmp 0x1404d8e82
jmp 0x1404d89c8
mov eax, dword [rbp - 0x1c]
test r10b, r8b
sub eax, ebx
jmp 0x1404d8e94
jmp 0x1404d8ea2
xor eax, eax
bswap ebx
or si, 0x1226
mov rbx, qword [rsp + 0xb8]
sub r14w, 0x2c2f
and r15d, 0x15fc07c2
add rsp, 0x60
movzx esi, cx
movsxd rsi, r10d
pop r15
pop r14
seto dil
mov r12b, 0xef
movsx di, bl
pop r13
not rsi
mov dil, 0x72
movsx rsi, di
pop r12
movsx esi, bx
movsx rsi, r15w
pop rdi
pop rsi
jmp 0x1404d8eef
pop rbp
jmp 0x1404d8ef5
ret