Function at 0x1404d7a58
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
ror bpl, cl
or bpl, 0xdd
stc
push rsi
push rdi
push r12
push r13
clc
push r14
bsf r12w, bx
push r15
mov rbp, rsp
sub rsp, 0x60
xor ebx, ebx
and dil, 0xc6
mov r14d, r8d
movzx r12d, r10w
shr r12w, 0xac
movsxd r12, ecx
bsf rdi, rsi
mov rdi, rdx
test r15b, r12b
clc
cmp r15b, 0xd3
test r8d, r8d
jmp 0x1404d7aa9
je 0x1404d7f6d
test rdx, rdx
jmp 0x1404d7ab7
jne 0x1404d7ae6
call fcn.1404b1f76
mov dword [rax], ebx
call fcn.1404b1f42
mov dword [rax], 0x16
jmp 0x1404d7ad4
call fcn.1404b2c43
or eax, 0xffffffff
jmp 0x1404d7ae1
jmp 0x1404d7f73
mov rax, r12
lea rcx, [0x1400ba940]
cmp r13w, r14w
sar r13b, cl
and eax, 0x3f
test rdx, 0x73906c4d
ror si, cl
neg r13
mov r13, r12
and esi, 0x715556f8
inc r15w
sar r13, 6
or sil, 0xaf
lea r15, [rax + rax*8]
mov rcx, qword [rcx + r13*8]
rol eax, 0x5c
rol eax, cl
movsx esi, byte [rcx + r15*8 + 0x39]
ror al, 0x60
rcl ah, 0x11
shl al, cl
lea eax, [rsi - 1]
test r11b, 0xe2
cmp al, 1
jmp 0x1404d7b45
ja 0x1404d7b62
mov eax, r14d
test al, 0x69
cmp bpl, dil
not eax
test al, 1
jmp 0x1404d7b5c
je 0x1404d7abd
test byte [rcx + r15*8 + 0x38], 0x20
je 0x1404d7b8c
xor edx, edx
cmovge rcx, rbp
mov ecx, r12d
movzx r8d, r13w
mov r8b, 0xb3
lea r8d, [rdx + 2]
jmp 0x1404d7b87
call fcn.14011308b
mov ecx, r12d
jmp 0x1404d7b94
mov qword [rbp - 0x20], rbx
jmp 0x1404d7b9d
call fcn.1404dda9e
test eax, eax
jmp 0x1404d7ba9
je 0x1404d7d72
lea rax, [0x1400ba940]
clc
stc
cmc
mov rax, qword [rax + r13*8]
clc
test dil, al
stc
cmp byte [rax + r15*8 + 0x38], bl
jge 0x1404d7d72
call fcn.1404c625b
mov rcx, qword [rax + 0x90]
test r8b, r13b
cmc
cmp qword [rcx + 0x138], rbx
jmp 0x1404d7be9
jne 0x1404d7c12
lea rax, [0x1400ba940]
mov rax, qword [rax + r13*8]
cmp r15w, r13w
test r15w, r15w
cmp byte [rax + r15*8 + 0x39], bl
jmp 0x1404d7c0c
je 0x1404d7d72
lea rax, [0x1400ba940]
mov rcx, qword [rax + r13*8]
lea rdx, [rbp - 0x10]
jmp 0x1404d7c26
mov rcx, qword [rcx + r15*8 + 0x28]
jmp 0x1404d7c30
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jmp 0x1404d7c3d
je 0x1404d7d72
test sil, sil
jmp 0x1404d7c4b
je 0x1404d7d2b
dec sil
stc
cmp sil, 1
ja 0x1404d7eb0
lea r12, [rdi + r14]
mov qword [rbp - 0x30], rbx
not r14b
mov r14, rdi
cmp rdi, r12
jmp 0x1404d7c75
jae 0x1404d7ea6
mov esi, dword [rbp - 0x2c]
movzx eax, word [r14]
movzx rcx, sp
movzx ecx, ax
mov word [rbp - 0x10], ax
call fcn.1404e22b7
movzx ecx, word [rbp - 0x10]
cmp r14d, ecx
cmp ax, cx
jmp 0x1404d7ca1
jne 0x1404d7d18
add esi, 2
jmp 0x1404d7cb3
mov dword [rbp - 0x2c], esi
clc
cmp di, bp
cmp cx, 0xa
jmp 0x1404d7cc3
jne 0x1404d7d00
mov ecx, 0xd
jmp 0x1404d7cd3
call fcn.1404e22b7
mov ecx, 0xd
cmp dx, r14w
cmc
test bl, r10b
cmp ax, cx
jmp 0x1404d7ced
jne 0x1404d7d18
inc esi
mov dword [rbp - 0x2c], esi
jmp 0x1404d7cfd
inc ebx
stc
add r14, 2
stc
jmp 0x1404d7d0a
cmp r14, r12
jae 0x1404d7ea6
jmp 0x1404d7c7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
jmp 0x1404d7d26
jmp 0x1404d7ea6
mov r9d, r14d
movzx r8, r12w
jmp 0x1404d7d37
lea rcx, [rbp - 0x30]
movzx rdx, bp
movsx dx, r15b
mov r8, rdi
mov edx, 0x43a36aec
movsxd rdx, r15d
mov edx, r12d
jmp 0x1404d7d57
call fcn.1404d7fce
movsd xmm0, qword [rax]
movzx bx, r11b
mov ebx, dword [rax + 8]
jmp 0x1404d7d6d
jmp 0x1404d7eab
lea rax, [0x1400ba940]
bt ecx, r14d
mov rcx, qword [rax + r13*8]
cmp byte [rcx + r15*8 + 0x38], bl
jmp 0x1404d7d8b
jge 0x1404d7e41
mov ecx, esi
cmc
test r14b, r15b
test sil, sil
jmp 0x1404d7d9f
je 0x1404d7e17
sub ecx, 1
je 0x1404d7dea
cmp ecx, 1
jmp 0x1404d7db6
jne 0x1404d7eb0
mov r9d, r14d
cqo
mov r8w, 0x49b6
setae ch
lea rcx, [rbp - 0x30]
mov r8, rdi
not dx
movzx edx, sp
cwd
mov edx, r12d
jmp 0x1404d7de0
call fcn.1404d8c4f
jmp 0x1404d7d5c
mov r9d, r14d
xchg ecx, r8d
movsxd r8, r10d
lea rcx, [rbp - 0x30]
mov r8, rdi
movzx edx, r10w
jmp 0x1404d7e05
mov edx, r12d
jmp 0x1404d7e0d
call fcn.1404d8eb8
jmp 0x1404d7d5c
mov r9d, r14d
movsx ecx, ax
lea rcx, [rbp - 0x30]
cwd
movsx dx, r9b
sete r8b
mov r8, rdi
mov edx, r12d
jmp 0x1404d7e37
call fcn.1404d8a28
jmp 0x1404d7d5c
mov rcx, qword [rcx + r15*8 + 0x28]
cwd
lea r9, [rbp - 0x2c]
add dl, r9b
not dh
xor eax, eax
cmc
sbb r8b, spl
cmp r12d, 0x5db5464
mov r8d, r14d
shl dh, cl
and qword [rsp + 0x20], rax
mov dl, 0x2d
mov rdx, rdi
jmp 0x1404d7e72
mov qword [rbp - 0x30], rax
jmp 0x1404d7e7b
mov dword [rbp - 0x28], eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jmp 0x1404d7e8b
jne 0x1404d7ea3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
sub al, r9b
shr ebx, cl
bts rax, r15
mov ebx, dword [rbp - 0x28]
movsd xmm0, qword [rbp - 0x30]
movsd qword [rbp - 0x20], xmm0
mov rax, qword [rbp - 0x20]
cmc
shr rax, 0x20
test eax, eax
jmp 0x1404d7ec0
jne 0x1404d7f5e
mov eax, dword [rbp - 0x20]
test eax, eax
jmp 0x1404d7ed0
je 0x1404d7f16
cmp eax, 5
jne 0x1404d7f04
call fcn.1404b1f42
mov dword [rax], 9
jmp 0x1404d7eef
call fcn.1404b1f76
mov dword [rax], 5
jmp 0x1404d7eff
jmp 0x1404d7ad9
mov ecx, dword [rbp - 0x20]
jmp 0x1404d7f0c
call fcn.1404b1fac
jmp 0x1404d7ad9
lea rax, [0x1400ba940]
stc
cmc
mov rax, qword [rax + r13*8]
cmp r11b, 0x43
test byte [rax + r15*8 + 0x38], 0x40
je 0x1404d7f3c
cmp byte [rdi], 0x1a
je 0x1404d7f6d
call fcn.1404b1f42
mov dword [rax], 0x1c
jmp 0x1404d7f4c
call fcn.1404b1f76
and dword [rax], 0
jmp 0x1404d7f59
jmp 0x1404d7ad9
mov eax, dword [rbp - 0x1c]
sub eax, ebx
jmp 0x1404d7f68
jmp 0x1404d7f73
sub eax, eax
movsx r12d, cx
mov rbx, qword [rsp + 0xb8]
add rsp, 0x60
movsx rdi, r13w
mov dil, dil
pop r15
movsx r13d, r15w
xchg r13w, r14w
pop r14
mov si, 0x7c91
jmp 0x1404d7f9b
pop r13
movzx rsi, bp
not dil
pop r12
cmovns di, r11w
setns bpl
movzx ebp, r9w
pop rdi
movsx rsi, r9w
movsxd rbp, r10d
movsx esi, bp
pop rsi
movzx ebp, r9w
movsx rbp, r9w
pop rbp
jmp 0x1404d7fcd
ret