Function at 0x1404d4f7b
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
neg bpl
push rsi
push rdi
or bpl, sil
sbb rdi, 0x1fbb20e8
push r12
bt di, r14w
shr dil, 6
push r13
sub di, di
sar r12w, cl
bsf r12w, r8w
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
sub ebx, ebx
add r12w, r12w
movsx di, r10b
sete dil
mov r14d, r8d
stc
rcr r12, cl
movsxd r12, ecx
shl dil, 0x7b
mov rdi, rdx
cmp r14b, r12b
cmc
test r8d, r8d
je 0x1404d549f
test rdx, rdx
jmp 0x1404d4fe9
jne 0x1404d501d
call fcn.1404af026
mov dword [rax], ebx
jmp 0x1404d4ffb
call fcn.1404aeff3
mov dword [rax], 0x16
jmp 0x1404d500b
call fcn.1404afcfc
or eax, 0xffffffff
jmp 0x1404d5018
jmp 0x1404d54a1
mov rax, r12
xor r15w, 0x7cbf
lea rcx, [0x1400ba940]
bsr r15d, r9d
shr sil, cl
bt si, 0x48
and eax, 0x3f
mov r13, r12
sar r13, 6
lea r15, [rax + rax*8]
stc
bts ax, r9w
mov rcx, qword [rcx + r13*8]
movsx esi, byte [rcx + r15*8 + 0x39]
add al, ah
lea eax, [rsi - 1]
cmc
cmp al, 1
jmp 0x1404d5064
ja 0x1404d5086
mov eax, r14d
cmc
jmp 0x1404d5074
not eax
cmp bl, 0xc2
test al, 1
jmp 0x1404d5080
je 0x1404d4fef
test byte [rcx + r15*8 + 0x38], 0x20
jmp 0x1404d5091
je 0x1404d50c0
sub edx, edx
cmovae r8w, sp
movsx cx, ch
mov ecx, r12d
movsxd r8, edx
jmp 0x1404d50b2
lea r8d, [rdx + 2]
jmp 0x1404d50bb
call fcn.14025344d
mov ecx, r12d
jmp 0x1404d50c8
mov qword [rbp - 0x20], rbx
jmp 0x1404d50d1
call fcn.1404daf15
test eax, eax
jmp 0x1404d50dd
je 0x1404d5294
lea rax, [0x1400ba940]
cmp spl, 0xce
mov rax, qword [rax + r13*8]
cmc
cmp r10w, sp
stc
cmp byte [rax + r15*8 + 0x38], bl
jmp 0x1404d5102
jge 0x1404d5294
call fcn.1404c3385
mov rcx, qword [rax + 0x90]
stc
cmp dl, r12b
cmp qword [rcx + 0x138], rbx
jne 0x1404d5143
lea rax, [0x1400ba940]
mov rax, qword [rax + r13*8]
test r11w, dx
cmc
cmp bl, 0xc
cmp byte [rax + r15*8 + 0x39], bl
je 0x1404d5294
lea rax, [0x1400ba940]
mov rcx, qword [rax + r13*8]
xchg dl, dh
jmp 0x1404d5155
lea rdx, [rbp - 0x10]
mov rcx, qword [rcx + r15*8 + 0x28]
jmp 0x1404d5163
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jmp 0x1404d5170
je 0x1404d5294
test sil, sil
jmp 0x1404d517e
je 0x1404d5260
dec sil
clc
cmp esp, 0x2739461d
cmp sil, 1
jmp 0x1404d5197
ja 0x1404d53c6
lea r12, [rdi + r14]
mov qword [rbp - 0x30], rbx
movzx r14w, r12b
mov r14, rdi
cmp rdi, r12
jmp 0x1404d51b5
jae 0x1404d53bb
mov esi, dword [rbp - 0x2c]
cwde
movzx eax, word [r14]
movzx ecx, ax
jmp 0x1404d51cb
mov word [rbp - 0x10], ax
call fcn.1404df74d
movzx ecx, word [rbp - 0x10]
clc
cmp ax, cx
jmp 0x1404d51e1
jne 0x1404d524d
add esi, 2
mov dword [rbp - 0x2c], esi
cmp cx, 0xa
jmp 0x1404d51f6
jne 0x1404d522f
mov ecx, 0xd
jmp 0x1404d5206
call fcn.1404df74d
mov ecx, 0xd
cmp ax, cx
jne 0x1404d524d
inc esi
jmp 0x1404d5220
mov dword [rbp - 0x2c], esi
jmp 0x1404d5228
inc ebx
jmp 0x1404d522f
add r14, 2
test r10d, 0x25b15475
cmp r14, r12
jmp 0x1404d5242
jae 0x1404d53bb
jmp 0x1404d51bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
jmp 0x1404d525b
jmp 0x1404d53bb
mov r9d, r14d
cmovl ecx, r14d
lea rcx, [rbp - 0x30]
cwd
mov r8, rdi
cwd
movsx rdx, ax
mov edx, r12d
jmp 0x1404d527e
call fcn.1404d54e8
movsd xmm0, qword [rax]
mov ebx, dword [rax + 8]
jmp 0x1404d528f
jmp 0x1404d53c0
lea rax, [0x1400ba940]
test dx, r11w
xadd cl, cl
mov rcx, qword [rax + r13*8]
cmp byte [rcx + r15*8 + 0x38], bl
jge 0x1404d5358
mov ecx, esi
cmp r9, r12
test sil, sil
je 0x1404d5335
sub ecx, 1
jmp 0x1404d52c7
je 0x1404d530a
cmp ecx, 1
jne 0x1404d53c6
mov r9d, r14d
movzx r8d, r11w
movsxd r8, ebx
movsx rcx, di
lea rcx, [rbp - 0x30]
not dh
movsx r8, r11w
mov r8, rdi
not dl
jmp 0x1404d52f8
mov edx, r12d
jmp 0x1404d5300
call fcn.1404d611f
jmp 0x1404d5283
mov r9d, r14d
xchg cl, r8b
lea rcx, [rbp - 0x30]
mov r8, rdi
movsx dx, r11b
not dh
movzx dx, dil
mov edx, r12d
jmp 0x1404d532b
call fcn.1404d6397
jmp 0x1404d5283
mov r9d, r14d
movzx edx, si
lea rcx, [rbp - 0x30]
mov r8, rdi
cmovnp edx, r9d
mov edx, r12d
jmp 0x1404d534e
call fcn.1404d5ece
jmp 0x1404d5283
mov rcx, qword [rcx + r15*8 + 0x28]
movzx rdx, r13w
lea r9, [rbp - 0x2c]
and dl, ch
neg r8w
or r8b, bl
xor eax, eax
mov r8d, r14d
dec dl
and qword [rsp + 0x20], rax
movzx rdx, r13w
cmovae edx, ebp
movsx rdx, r10w
mov rdx, rdi
jmp 0x1404d538d
mov qword [rbp - 0x30], rax
jmp 0x1404d5396
mov dword [rbp - 0x28], eax
jmp 0x1404d539e
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1404d53b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
mov ebx, dword [rbp - 0x28]
sar ah, 0x57
movsd xmm0, qword [rbp - 0x30]
movsd qword [rbp - 0x20], xmm0
cmc
mov rax, qword [rbp - 0x20]
shr rax, 0x20
clc
jmp 0x1404d53d4
test eax, eax
jmp 0x1404d53db
jne 0x1404d5488
mov eax, dword [rbp - 0x20]
jmp 0x1404d53ea
test eax, eax
jmp 0x1404d53f1
je 0x1404d5432
cmp eax, 5
jne 0x1404d5425
call fcn.1404aeff3
mov dword [rax], 9
jmp 0x1404d5410
call fcn.1404af026
mov dword [rax], 5
jmp 0x1404d5420
jmp 0x1404d5010
mov ecx, dword [rbp - 0x20]
call fcn.1404af05f
jmp 0x1404d5010
lea rax, [0x1400ba940]
jmp 0x1404d543e
mov rax, qword [rax + r13*8]
cmp si, 0x342c
test byte [rax + r15*8 + 0x38], 0x40
jmp 0x1404d5452
je 0x1404d5466
cmp byte [rdi], 0x1a
jmp 0x1404d5460
je 0x1404d549f
call fcn.1404aeff3
mov dword [rax], 0x1c
jmp 0x1404d5476
call fcn.1404af026
and dword [rax], 0
jmp 0x1404d5483
jmp 0x1404d5010
mov eax, dword [rbp - 0x1c]
stc
test rsp, 0x572b1ae2
sub eax, ebx
jmp 0x1404d549a
jmp 0x1404d54a1
sub eax, eax
mov rbx, qword [rsp + 0xb8]
test ah, 0x82
sub r12d, r13d
test dl, r13b
add rsp, 0x60
movsx esi, r8w
pop r15
movsx rsi, di
movzx r13, r14w
bswap si
pop r14
not dil
cmovno si, r13w
pop r13
pop r12
movzx esi, r8w
pop rdi
jmp 0x1404d54df
pop rsi
xchg bp, bp
bswap rbp
pop rbp
ret