Function at 0x1404db5b2
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
jmp 0x1404db5ca
push rbp
push rsi
test r8, r10
push rdi
adc di, ax
push r12
test r9b, 0x2e
or di, bx
push r13
rol ebp, 0x3a
push r14
sar r14b, 0xaa
push r15
bsr r14d, esi
cmp r14b, 0x20
mov rbp, rsp
mov r12w, r9w
ror r12b, 0x50
sub rsp, 0x60
rol r14w, 0x19
or r14b, 0x70
movsx r12d, cx
sub ebx, ebx
mov r14d, r8d
movsxd r12, ecx
shl edi, cl
cmc
mov rdi, rdx
stc
test r8d, r8d
jmp 0x1404db624
je 0x1404dbb1b
test rdx, rdx
jmp 0x1404db632
jne 0x1404db661
call fcn.1404b5e0c
mov dword [rax], ebx
jmp 0x1404db644
call fcn.1404b5dd6
mov dword [rax], 0x16
call fcn.1404b6a2e
or eax, 0xffffffff
jmp 0x1404db65c
jmp 0x1404dbb28
mov rax, r12
stc
ror rsi, cl
shr r13d, cl
lea rcx, [0x1400ba940]
sar r13b, 0x6e
setp r15b
and eax, 0x3f
rcr sil, cl
inc si
mov r13, r12
movzx r15w, al
test ecx, 0x1c070c2c
cmovl rsi, r9
sar r13, 6
not sil
bt r15w, dx
shl r15b, cl
lea r15, [rax + rax*8]
xadd sil, al
bsf eax, ebp
mov rcx, qword [rcx + r13*8]
setge sil
mov sil, r13b
and si, 0x4d7
movsx esi, byte [rcx + r15*8 + 0x39]
lea eax, [rsi - 1]
cmp al, 1
jmp 0x1404db6cf
ja 0x1404db6f0
mov eax, r14d
not eax
cmp bl, 0x22
test r8w, 0x5a40
test al, 1
jmp 0x1404db6ea
je 0x1404db638
test byte [rcx + r15*8 + 0x38], 0x20
jmp 0x1404db6fb
je 0x1404db721
xor edx, edx
bswap r8w
mov ecx, r12d
movsx r8w, spl
mov r8w, si
lea r8d, [rdx + 2]
jmp 0x1404db71c
call fcn.1401d4617
mov ecx, r12d
jmp 0x1404db729
mov qword [rbp - 0x20], rbx
call fcn.1404e15d2
test eax, eax
je 0x1404db901
lea rax, [0x1400ba940]
test cx, 0xde8
mov rax, qword [rax + r13*8]
stc
cmc
cmp byte [rax + r15*8 + 0x38], bl
jge 0x1404db901
call fcn.1404c9dd7
mov rcx, qword [rax + 0x90]
test r15w, cx
cmp qword [rcx + 0x138], rbx
jmp 0x1404db773
jne 0x1404db79b
lea rax, [0x1400ba940]
test bpl, 0xca
cmc
mov rax, qword [rax + r13*8]
cmp ah, 0x36
test r14b, 0xf0
cmp byte [rax + r15*8 + 0x39], bl
je 0x1404db901
lea rax, [0x1400ba940]
mov rcx, qword [rax + r13*8]
cmovno edx, r13d
lea rdx, [rbp - 0x10]
mov rcx, qword [rcx + r15*8 + 0x28]
jmp 0x1404db7b8
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jmp 0x1404db7c5
je 0x1404db901
test sil, sil
jmp 0x1404db7d3
je 0x1404db8c7
dec sil
cmp sil, 1
jmp 0x1404db7e5
ja 0x1404dba4e
lea r12, [rdi + r14]
rcl r14b, 0x6d
mov qword [rbp - 0x30], rbx
setnp r14b
and r14b, 0x65
movzx r14, r9w
mov r14, rdi
cmp rdi, r12
jmp 0x1404db80e
jae 0x1404dba41
mov esi, dword [rbp - 0x2c]
mov ax, si
movzx eax, word [r14]
movzx ecx, ax
jmp 0x1404db826
mov word [rbp - 0x10], ax
call fcn.1404e5ed6
movzx ecx, word [rbp - 0x10]
test r13w, 0x4f1
cmp ax, cx
jmp 0x1404db841
jne 0x1404db8b9
add esi, 2
stc
cmp cl, 0x8b
test r13w, 0x5eed
mov dword [rbp - 0x2c], esi
clc
cmp spl, 0xaf
cmp cx, 0xa
jmp 0x1404db865
jne 0x1404db8a1
mov ecx, 0xd
jmp 0x1404db875
call fcn.1404e5ed6
mov ecx, 0xd
cmp ax, cx
jmp 0x1404db887
jne 0x1404db8b9
inc esi
jmp 0x1404db894
mov dword [rbp - 0x2c], esi
jmp 0x1404db89c
inc ebx
cmp bl, 0x61
add r14, 2
clc
cmp r14, r12
jmp 0x1404db8ae
jae 0x1404dba41
jmp 0x1404db81a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
jmp 0x1404dba41
mov r9d, r14d
movsx r8, r9w
lea rcx, [rbp - 0x30]
mov r8, rdi
movzx dx, r12b
movsx dx, r11b
mov edx, r12d
jmp 0x1404db8e7
call fcn.1404dbb67
movsd xmm0, qword [rax]
bswap ebx
xchg ebx, ebx
mov ebx, dword [rax + 8]
jmp 0x1404db8fc
jmp 0x1404dba46
lea rax, [0x1400ba940]
cmovl cx, r15w
mov rcx, qword [rax + r13*8]
cmp r12, 0x567a184e
cmp byte [rcx + r15*8 + 0x38], bl
jmp 0x1404db922
jge 0x1404db9de
mov ecx, esi
test sil, sil
je 0x1404db9b2
sub ecx, 1
jmp 0x1404db93b
je 0x1404db981
cmp ecx, 1
jmp 0x1404db949
jne 0x1404dba4e
mov r9d, r14d
lea rcx, [rbp - 0x30]
movsx r8d, si
movzx r8, r15w
jmp 0x1404db963
mov r8, rdi
mov dx, 0x4a04
movzx dx, r15b
mov edx, r12d
jmp 0x1404db977
call fcn.1404dc855
jmp 0x1404db8ec
mov r9d, r14d
lea rcx, [rbp - 0x30]
movzx dx, dil
movsx edx, r8w
mov r8, 0x52ca748f
mov r8, rdi
mov rdx, 0x380445d1
setp dh
mov edx, r12d
call fcn.1404dcaa5
jmp 0x1404db8ec
mov r9d, r14d
cqo
mov ecx, 0x5fbf0c1d
mov r8b, r12b
lea rcx, [rbp - 0x30]
mov r8, rdi
movzx dx, dl
cqo
mov edx, r12d
jmp 0x1404db9d4
call fcn.1404dc5ee
jmp 0x1404db8ec
mov rcx, qword [rcx + r15*8 + 0x28]
test r12b, 0x80
lea r9, [rbp - 0x2c]
sub eax, eax
mov r8d, r14d
ror dl, cl
rcr rdx, cl
and qword [rsp + 0x20], rax
movsx edx, ax
mov rdx, rdi
jmp 0x1404dba05
mov qword [rbp - 0x30], rax
jmp 0x1404dba0e
mov dword [rbp - 0x28], eax
jmp 0x1404dba16
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jmp 0x1404dba23
jne 0x1404dba39
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
sar bl, 0x84
test r13b, 0xbd
mov ebx, dword [rbp - 0x28]
bswap rax
dec al
movsd xmm0, qword [rbp - 0x30]
movsd qword [rbp - 0x20], xmm0
dec ax
mov rax, qword [rbp - 0x20]
shr rax, 0x20
test eax, eax
jmp 0x1404dba5d
jne 0x1404dbb0c
mov eax, dword [rbp - 0x20]
test r14, 0x3d1075c3
cmc
cmp al, r15b
test eax, eax
jmp 0x1404dba78
je 0x1404dbabe
cmp eax, 5
jmp 0x1404dba86
jne 0x1404dbaac
call fcn.1404b5dd6
mov dword [rax], 9
call fcn.1404b5e0c
mov dword [rax], 5
jmp 0x1404dbaa7
jmp 0x1404db654
mov ecx, dword [rbp - 0x20]
jmp 0x1404dbab4
call fcn.1404b5e4b
jmp 0x1404db654
lea rax, [0x1400ba940]
jmp 0x1404dbaca
mov rax, qword [rax + r13*8]
clc
cmc
test byte [rax + r15*8 + 0x38], 0x40
jmp 0x1404dbadb
je 0x1404dbaef
cmp byte [rdi], 0x1a
jmp 0x1404dbae9
je 0x1404dbb1b
call fcn.1404b5dd6
mov dword [rax], 0x1c
call fcn.1404b5e0c
and dword [rax], 0
jmp 0x1404dbb07
jmp 0x1404db654
mov eax, dword [rbp - 0x1c]
sub eax, ebx
jmp 0x1404dbb16
jmp 0x1404dbb28
sub eax, eax
sub dil, al
xadd r15b, sil
cmovbe ebp, r13d
mov rbx, qword [rsp + 0xb8]
add rsp, 0x60
movsxd rsi, r11d
movzx rbp, bx
pop r15
movzx si, r13b
pop r14
pop r13
movsxd rsi, ebp
jmp 0x1404dbb4e
pop r12
movsxd rsi, r13d
pop rdi
cmove rsi, rbp
mov bp, bx
movsx rsi, r15w
pop rsi
pop rbp
jmp 0x1404dbb66
ret