Function at 0x1404d793d
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
shr bpl, cl
push rsi
inc bpl
push rdi
push r12
push r13
shld bp, bx, 0x5e
push r14
rcl bp, cl
add bp, 0x692e
push r15
mov rbp, rsp
ror r14, 0x19
inc r12
sub rsp, 0x60
xor ebx, ebx
setb r14b
mov r14d, r8d
dec r12b
setp r12b
movsxd r12, ecx
add dil, cl
sar dil, cl
mov rdi, rdx
stc
test r8d, r8d
jmp 0x1404d7993
je 0x1404d7e95
test rdx, rdx
jne 0x1404d79d0
call fcn.1404b1ce2
mov dword [rax], ebx
jmp 0x1404d79ae
call fcn.1404b1cac
mov dword [rax], 0x16
jmp 0x1404d79be
call fcn.1404b290a
or eax, 0xffffffff
jmp 0x1404d79cb
jmp 0x1404d7e9b
mov rax, r12
bt r15w, 0xc
shld rcx, r15, 0xa0
lea rcx, [0x1400ba940]
shr r13, cl
and eax, 0x3f
movsxd rsi, r14d
mov r13, r12
not si
sar r13, 6
xor sil, r11b
lea r15, [rax + rax*8]
xadd esi, esi
bt ax, 0x31
mov rcx, qword [rcx + r13*8]
inc si
or al, r15b
movsx esi, byte [rcx + r15*8 + 0x39]
sub ax, 0x15b1
movsx ax, r11b
lea eax, [rsi - 1]
cmp al, 1
jmp 0x1404d7a2a
ja 0x1404d7a52
mov eax, r14d
clc
jmp 0x1404d7a3a
not eax
cmp r10b, r12b
stc
jmp 0x1404d7a45
test al, 1
jmp 0x1404d7a4c
je 0x1404d79a2
test byte [rcx + r15*8 + 0x38], 0x20
jmp 0x1404d7a5d
je 0x1404d7a75
sub edx, edx
movsx r8d, r14w
mov ecx, r12d
lea r8d, [rdx + 2]
call fcn.1401114d8
mov ecx, r12d
mov qword [rbp - 0x20], rbx
jmp 0x1404d7a81
call fcn.1404dd994
test eax, eax
jmp 0x1404d7a8d
je 0x1404d7c89
lea rax, [0x1400ba940]
cmp r15, rcx
mov rax, qword [rax + r13*8]
stc
cmp r8b, cl
cmp byte [rax + r15*8 + 0x38], bl
jge 0x1404d7c89
call fcn.1404c5ee2
mov rcx, qword [rax + 0x90]
cmp r12, 0x3564695
cmc
clc
cmp qword [rcx + 0x138], rbx
jmp 0x1404d7ad1
jne 0x1404d7b05
lea rax, [0x1400ba940]
cmp r8b, 0xd4
test dil, 0x2f
mov rax, qword [rax + r13*8]
cmp r14b, bl
cmc
cmp rax, 0x2edf4920
cmp byte [rax + r15*8 + 0x39], bl
jmp 0x1404d7aff
je 0x1404d7c89
lea rax, [0x1400ba940]
movzx dx, r9b
movsx ecx, si
mov rcx, qword [rax + r13*8]
cwd
cqo
lea rdx, [rbp - 0x10]
jmp 0x1404d7b25
mov rcx, qword [rcx + r15*8 + 0x28]
jmp 0x1404d7b2f
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jmp 0x1404d7b3c
je 0x1404d7c89
test sil, sil
jmp 0x1404d7b4a
je 0x1404d7c47
dec sil
cmp r12w, 0x4835
cmp al, spl
cmc
cmp sil, 1
jmp 0x1404d7b66
ja 0x1404d7db9
lea r12, [rdi + r14]
sar r14w, 0xc9
movsxd r14, ecx
mov qword [rbp - 0x30], rbx
sub r14b, 0x6b
xadd r14w, r14w
mov r14, rdi
clc
cmp rdi, r12
jmp 0x1404d7b91
jae 0x1404d7da4
mov esi, dword [rbp - 0x2c]
bswap eax
setge ah
movzx eax, word [r14]
not ch
movzx ecx, ax
jmp 0x1404d7bad
mov word [rbp - 0x10], ax
jmp 0x1404d7bb6
call fcn.1404e2117
movzx ecx, word [rbp - 0x10]
cmp ax, cx
jmp 0x1404d7bc7
jne 0x1404d7c34
add esi, 2
cmp sil, dil
test r15b, r14b
mov dword [rbp - 0x2c], esi
cmc
cmp cx, 0xa
jmp 0x1404d7be3
jne 0x1404d7c18
mov ecx, 0xd
jmp 0x1404d7bf3
call fcn.1404e2117
mov ecx, 0xd
clc
cmp ax, cx
jmp 0x1404d7c06
jne 0x1404d7c34
inc esi
mov dword [rbp - 0x2c], esi
jmp 0x1404d7c16
inc ebx
add r14, 2
jmp 0x1404d7c21
cmp r14, r12
jmp 0x1404d7c29
jae 0x1404d7da4
jmp 0x1404d7b9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
jmp 0x1404d7c42
jmp 0x1404d7da4
mov r9d, r14d
cmovb rcx, rdi
lea rcx, [rbp - 0x30]
xchg dl, r8b
mov r8, rdi
mov rdx, 0x17230191
jmp 0x1404d7c64
mov edx, r12d
jmp 0x1404d7c6c
call fcn.1404d7eef
movsd xmm0, qword [rax]
mov bl, 0x34
jmp 0x1404d7c7c
mov ebx, dword [rax + 8]
jmp 0x1404d7c84
jmp 0x1404d7db1
lea rax, [0x1400ba940]
or ch, 0x98
movsxd rcx, ebp
mov rcx, qword [rax + r13*8]
cmp byte [rcx + r15*8 + 0x38], bl
jmp 0x1404d7ca4
jge 0x1404d7d36
mov ecx, esi
clc
test sil, sil
jmp 0x1404d7cb5
je 0x1404d7d12
sub ecx, 1
jmp 0x1404d7cc3
je 0x1404d7cf6
cmp ecx, 1
jmp 0x1404d7cd1
jne 0x1404d7db9
mov r9d, r14d
movsxd rcx, r15d
lea rcx, [rbp - 0x30]
mov r8, rdi
cmovbe dx, r15w
mov edx, r12d
call fcn.1404d8b43
jmp 0x1404d7c71
mov r9d, r14d
not r8b
cqo
lea rcx, [rbp - 0x30]
mov r8, rdi
mov edx, r12d
call fcn.1404d8dc0
jmp 0x1404d7c71
mov r9d, r14d
not r8b
lea rcx, [rbp - 0x30]
cmovno dx, r12w
mov r8, rdi
mov edx, r12d
jmp 0x1404d7d2c
call fcn.1404d88d5
jmp 0x1404d7c71
mov rcx, qword [rcx + r15*8 + 0x28]
bsf r9d, ebp
sar r9w, cl
lea r9, [rbp - 0x2c]
add dl, 0x7f
rol edx, cl
xchg dh, dl
xor eax, eax
sal r8d, cl
cwd
mov r8d, r14d
cmc
bt dx, r15w
add edx, ecx
and qword [rsp + 0x20], rax
not dl
movsx dx, al
mov rdx, rdi
jmp 0x1404d7d73
mov qword [rbp - 0x30], rax
jmp 0x1404d7d7c
mov dword [rbp - 0x28], eax
jmp 0x1404d7d84
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1404d7da1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
or al, 0xb4
sub bx, r11w
mov ebx, dword [rbp - 0x28]
movsd xmm0, qword [rbp - 0x30]
and eax, edx
sub ah, 0xf
bswap ax
movsd qword [rbp - 0x20], xmm0
btc eax, edx
mov rax, qword [rbp - 0x20]
test bp, cx
shr rax, 0x20
test eax, eax
jmp 0x1404d7dcb
jne 0x1404d7e82
mov eax, dword [rbp - 0x20]
stc
test eax, eax
jmp 0x1404d7ddc
je 0x1404d7e27
cmp eax, 5
jmp 0x1404d7dea
jne 0x1404d7e15
call fcn.1404b1cac
mov dword [rax], 9
jmp 0x1404d7e00
call fcn.1404b1ce2
mov dword [rax], 5
jmp 0x1404d7e10
jmp 0x1404d79c3
mov ecx, dword [rbp - 0x20]
jmp 0x1404d7e1d
call fcn.1404b1d18
jmp 0x1404d79c3
lea rax, [0x1400ba940]
test rcx, r9
cmp dl, r10b
mov rax, qword [rax + r13*8]
test r11d, ebx
stc
jmp 0x1404d7e41
test byte [rax + r15*8 + 0x38], 0x40
jmp 0x1404d7e4c
je 0x1404d7e60
cmp byte [rdi], 0x1a
jmp 0x1404d7e5a
je 0x1404d7e95
call fcn.1404b1cac
mov dword [rax], 0x1c
jmp 0x1404d7e70
call fcn.1404b1ce2
and dword [rax], 0
jmp 0x1404d7e7d
jmp 0x1404d79c3
mov eax, dword [rbp - 0x1c]
test r10w, 0x585
cmp bl, r9b
sub eax, ebx
jmp 0x1404d7e9b
xor eax, eax
sar r13d, 0xf
mov rbx, qword [rsp + 0xb8]
add rsp, 0x60
jmp 0x1404d7eac
pop r15
cmovl r13w, r14w
movsx r13d, r14w
xchg sil, sil
pop r14
mov dil, 0xca
mov si, r12w
xchg r12b, sil
pop r13
cmovnp si, dx
mov di, 0x725
pop r12
cmovne bp, r13w
movsxd rbp, r13d
movsx edi, si
pop rdi
jmp 0x1404d7ee6
pop rsi
bswap rbp
mov bpl, 0x2b
pop rbp
ret