Function at 0x1404d9fe7
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
test cx, cx
stc
push rbp
push rsi
push rdi
movsx rbp, dx
stc
movsxd rbp, eax
push r12
push r13
sal dil, 0x7d
btc edi, 0xf6
push r14
setl r12b
rcl bpl, cl
rcr edi, cl
push r15
dec r12b
neg bp
mov rbp, rsp
btc r14w, 0x5d
rol dil, cl
sub rsp, 0x60
or r12, rdx
xor ebx, ebx
and r12w, ax
shl r14b, cl
mov r14d, r8d
ror di, 0x23
shld di, dx, 0xda
movsxd r12, ecx
add rdi, 0xd3b5529
bt di, 0x91
sal rdi, cl
mov rdi, rdx
cmc
test r8d, r8d
je 0x1404da503
test rdx, rdx
jne 0x1404da093
call fcn.1404b4383
mov dword [rax], ebx
jmp 0x1404da076
call fcn.1404b434d
mov dword [rax], 0x16
call fcn.1404b5003
or eax, 0xffffffff
jmp 0x1404da08e
jmp 0x1404da50d
mov rax, r12
clc
and rsi, r13
lea rcx, [0x1400ba940]
sal sil, 0x2a
and eax, 0x3f
mov r13, r12
shld r15w, r8w, 0x5c
sar r13, 6
lea r15, [rax + rax*8]
mov rcx, qword [rcx + r13*8]
movsx esi, byte [rcx + r15*8 + 0x39]
rcr al, cl
lea eax, [rsi - 1]
clc
cmp al, 1
jmp 0x1404da0d0
ja 0x1404da0e8
mov eax, r14d
not eax
test al, 1
jmp 0x1404da0e2
je 0x1404da06a
test byte [rcx + r15*8 + 0x38], 0x20
jmp 0x1404da0f3
je 0x1404da11a
sub edx, edx
xchg ch, cl
sete cl
movzx r8, ax
mov ecx, r12d
mov r8w, 0x616d
lea r8d, [rdx + 2]
jmp 0x1404da115
call fcn.140245055
mov ecx, r12d
jmp 0x1404da122
mov qword [rbp - 0x20], rbx
call fcn.1404e0038
test eax, eax
je 0x1404da30b
lea rax, [0x1400ba940]
test r13d, 0x3a9234ae
mov rax, qword [rax + r13*8]
test r8w, si
cmp byte [rax + r15*8 + 0x38], bl
jmp 0x1404da153
jge 0x1404da30b
call fcn.1404c863e
mov rcx, qword [rax + 0x90]
cmp qword [rcx + 0x138], rbx
jne 0x1404da18e
lea rax, [0x1400ba940]
clc
mov rax, qword [rax + r13*8]
cmp byte [rax + r15*8 + 0x39], bl
jmp 0x1404da188
je 0x1404da30b
lea rax, [0x1400ba940]
mov rcx, qword [rax + r13*8]
lea rdx, [rbp - 0x10]
jmp 0x1404da1a2
mov rcx, qword [rcx + r15*8 + 0x28]
jmp 0x1404da1ac
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jmp 0x1404da1b9
je 0x1404da30b
test sil, sil
jmp 0x1404da1c7
je 0x1404da2ca
dec sil
stc
cmp sil, 1
jmp 0x1404da1da
ja 0x1404da442
lea r12, [rdi + r14]
bts r14, rbx
mov qword [rbp - 0x30], rbx
adc r14d, 0x12ca5fd9
btr r14w, bx
mov r14, rdi
cmp rdi, r12
jmp 0x1404da203
jae 0x1404da435
mov esi, dword [rbp - 0x2c]
movzx cx, bh
movzx eax, word [r14]
mov cx, 0x19d2
movzx ecx, ax
jmp 0x1404da220
mov word [rbp - 0x10], ax
jmp 0x1404da229
call fcn.1404e488b
movzx ecx, word [rbp - 0x10]
cmc
cmp ax, cx
jne 0x1404da2b7
add esi, 2
clc
cmp r10b, al
mov dword [rbp - 0x2c], esi
test cx, 0xfb0
cmp r14, 0x18017b36
cmc
cmp cx, 0xa
jmp 0x1404da25c
jne 0x1404da29a
mov ecx, 0xd
jmp 0x1404da26c
call fcn.1404e488b
mov ecx, 0xd
cmp ax, cx
jmp 0x1404da27e
jne 0x1404da2b7
inc esi
jmp 0x1404da28b
mov dword [rbp - 0x2c], esi
jmp 0x1404da293
inc ebx
jmp 0x1404da29a
add r14, 2
cmp esp, 0x5384ede
cmp r14, r12
jmp 0x1404da2ac
jae 0x1404da435
jmp 0x1404da210
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
jmp 0x1404da2c5
jmp 0x1404da435
mov r9d, r14d
mov rcx, r9
movzx r8w, r11b
movsxd rdx, edi
lea rcx, [rbp - 0x30]
movsx r8, r14w
mov r8, rdi
cqo
mov edx, r12d
jmp 0x1404da2ed
call fcn.1404da561
movsd xmm0, qword [rax]
bswap rbx
movzx bx, r10b
mov ebx, dword [rax + 8]
jmp 0x1404da306
jmp 0x1404da43a
lea rax, [0x1400ba940]
shr cx, cl
xadd ecx, ecx
mov rcx, qword [rax + r13*8]
cmp dl, 0x33
cmp eax, esi
cmp byte [rcx + r15*8 + 0x38], bl
jge 0x1404da3d2
mov ecx, esi
cmp r15b, 0x3c
stc
test sil, sil
jmp 0x1404da33b
je 0x1404da3a7
sub ecx, 1
je 0x1404da37c
cmp ecx, 1
jne 0x1404da442
mov r9d, r14d
cwd
jmp 0x1404da35e
lea rcx, [rbp - 0x30]
movsx edx, r15w
mov r8, rdi
cdq
xchg dh, dh
movsxd rdx, esp
mov edx, r12d
call fcn.1404db1c9
jmp 0x1404da2f2
mov r9d, r14d
cwd
movsx rcx, r12w
lea rcx, [rbp - 0x30]
mov r8d, 0x21432493
mov r8, rdi
movsxd rdx, ecx
mov edx, r12d
jmp 0x1404da39d
call fcn.1404db448
jmp 0x1404da2f2
mov r9d, r14d
setl dl
mov cl, r10b
lea rcx, [rbp - 0x30]
movsx r8d, r11w
movsxd rdx, r15d
xchg dh, dh
mov r8, rdi
mov edx, r12d
jmp 0x1404da3c8
call fcn.1404daf5f
jmp 0x1404da2f2
mov rcx, qword [rcx + r15*8 + 0x28]
cmp r9w, cx
lea r9, [rbp - 0x2c]
sub eax, eax
xor r8, 0x7b950b39
inc dx
mov r8d, r14d
xchg dh, dl
shl edx, 0x6e
and qword [rsp + 0x20], rax
cwd
cdq
cqo
mov rdx, rdi
mov qword [rbp - 0x30], rax
jmp 0x1404da409
mov dword [rbp - 0x28], eax
jmp 0x1404da411
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jmp 0x1404da41e
jne 0x1404da42d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
mov ebx, dword [rbp - 0x28]
shrd ax, cx, 0xad
movsd xmm0, qword [rbp - 0x30]
movsd qword [rbp - 0x20], xmm0
sbb ah, 0x1c
mov rax, qword [rbp - 0x20]
cmp r10b, 0x28
clc
shr rax, 0x20
test eax, eax
jmp 0x1404da456
jne 0x1404da4f3
mov eax, dword [rbp - 0x20]
test eax, eax
jmp 0x1404da466
je 0x1404da4ac
cmp eax, 5
jmp 0x1404da474
jne 0x1404da49a
call fcn.1404b434d
mov dword [rax], 9
jmp 0x1404da48a
call fcn.1404b4383
mov dword [rax], 5
jmp 0x1404da086
mov ecx, dword [rbp - 0x20]
jmp 0x1404da4a2
call fcn.1404b43af
jmp 0x1404da086
lea rax, [0x1400ba940]
stc
cmc
cmp bpl, spl
mov rax, qword [rax + r13*8]
test byte [rax + r15*8 + 0x38], 0x40
jmp 0x1404da4c7
je 0x1404da4db
cmp byte [rdi], 0x1a
jmp 0x1404da4d5
je 0x1404da503
call fcn.1404b434d
mov dword [rax], 0x1c
call fcn.1404b4383
and dword [rax], 0
jmp 0x1404da086
mov eax, dword [rbp - 0x1c]
cmc
sub eax, ebx
jmp 0x1404da4fe
jmp 0x1404da50d
xor eax, eax
stc
inc r13b
sbb bpl, 0xfc
mov rbx, qword [rsp + 0xb8]
bts r15w, r9w
ror r12, cl
rol r12b, cl
add rsp, 0x60
mov rbp, rsi
pop r15
movzx r14w, r12b
pop r14
xchg r13d, edi
pop r13
movsx esi, bp
not si
movsx di, sil
pop r12
pop rdi
movsx si, dil
cmovb si, cx
pop rsi
jmp 0x1404da55a
pop rbp
jmp 0x1404da560
ret