Function at 0x1404d74c9
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
cmc
push rbp
push rsi
clc
jmp 0x1404d74e4
push rdi
bts ebp, r9d
sar rbp, cl
rol dil, cl
push r12
shrd di, si, 0xde
movzx r12, sp
or bp, 0x4c69
push r13
adc r12w, r10w
push r14
push r15
movsx r14d, cx
mov rbp, rsp
sub rsp, 0x60
xor ebx, ebx
btr r14, 0xee
bts rdi, r13
mov r14d, r8d
cmc
btc r12w, 0x2a
movsxd r12, ecx
rol edi, 0x62
mov rdi, rdx
test r8d, r8d
jmp 0x1404d753a
je 0x1404d7a0a
test rdx, rdx
jmp 0x1404d7548
jne 0x1404d7577
call fcn.1404b18b0
mov dword [rax], ebx
call fcn.1404b187f
mov dword [rax], 0x16
jmp 0x1404d7565
call fcn.1404b2539
or eax, 0xffffffff
jmp 0x1404d7572
jmp 0x1404d7a10
mov rax, r12
lea rcx, [0x1400ba940]
and eax, 0x3f
sbb r13b, 0xb0
mov r13, r12
rcr sil, 0xd1
sar r13, 6
xchg si, si
sal si, 0xf8
and sil, spl
lea r15, [rax + rax*8]
mov rcx, qword [rcx + r13*8]
add ah, 0xe3
movsx si, r10b
movsx esi, byte [rcx + r15*8 + 0x39]
rcl eax, cl
adc rax, rbx
rcr ax, cl
lea eax, [rsi - 1]
stc
jmp 0x1404d75c5
cmp al, 1
jmp 0x1404d75cc
ja 0x1404d75e7
mov eax, r14d
cmp ah, 0x4d
test r12b, 0x25
not eax
stc
test al, 1
je 0x1404d754e
test byte [rcx + r15*8 + 0x38], 0x20
jmp 0x1404d75f2
je 0x1404d761b
xor edx, edx
jmp 0x1404d7602
mov ecx, r12d
movzx r8w, r15b
not r8d
lea r8d, [rdx + 2]
jmp 0x1404d7616
call fcn.1400f696f
mov ecx, r12d
jmp 0x1404d7623
mov qword [rbp - 0x20], rbx
jmp 0x1404d762c
call fcn.1404dd4b2
test eax, eax
jmp 0x1404d7638
je 0x1404d780d
lea rax, [0x1400ba940]
cmp cx, 0x4326
jmp 0x1404d7652
mov rax, qword [rax + r13*8]
cmc
clc
cmp byte [rax + r15*8 + 0x38], bl
jmp 0x1404d7662
jge 0x1404d780d
call fcn.1404c5cb7
mov rcx, qword [rax + 0x90]
cmc
cmp qword [rcx + 0x138], rbx
jne 0x1404d76a1
lea rax, [0x1400ba940]
cmp r12w, r13w
mov rax, qword [rax + r13*8]
cmp byte [rax + r15*8 + 0x39], bl
jmp 0x1404d769b
je 0x1404d780d
lea rax, [0x1400ba940]
mov rcx, qword [rax + r13*8]
lea rdx, [rbp - 0x10]
jmp 0x1404d76b5
mov rcx, qword [rcx + r15*8 + 0x28]
jmp 0x1404d76bf
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jmp 0x1404d76cc
je 0x1404d780d
test sil, sil
jmp 0x1404d76da
je 0x1404d77c5
dec sil
cmp sil, 1
jmp 0x1404d76ec
ja 0x1404d7945
lea r12, [rdi + r14]
xor r14d, esp
mov qword [rbp - 0x30], rbx
inc r14
sub r14b, r14b
and r14b, sil
mov r14, rdi
cmp rdi, r12
jmp 0x1404d7711
jae 0x1404d7934
mov esi, dword [rbp - 0x2c]
movzx cx, dh
movzx eax, word [r14]
bswap rcx
movzx ecx, ax
mov word [rbp - 0x10], ax
jmp 0x1404d7731
call fcn.1404e1d51
movzx ecx, word [rbp - 0x10]
test dil, r11b
cmp ax, cx
jmp 0x1404d7745
jne 0x1404d77b2
add esi, 2
cmc
mov dword [rbp - 0x2c], esi
cmp bl, r13b
cmp cx, 0xa
jne 0x1404d7799
mov ecx, 0xd
call fcn.1404e1d51
mov ecx, 0xd
test si, dx
test ax, 0x2a4f
jmp 0x1404d777a
cmp ax, cx
jmp 0x1404d7782
jne 0x1404d77b2
inc esi
jmp 0x1404d778f
mov dword [rbp - 0x2c], esi
jmp 0x1404d7797
inc ebx
add r14, 2
cmc
clc
cmp r14, r12
jmp 0x1404d77a7
jae 0x1404d7934
jmp 0x1404d771e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
jmp 0x1404d77c0
jmp 0x1404d7934
mov r9d, r14d
not dl
setp cl
lea rcx, [rbp - 0x30]
movsxd r8, r13d
cdq
mov r8, rdi
movsx rdx, si
movzx rdx, bx
movzx dx, r11b
mov edx, r12d
jmp 0x1404d77ed
call fcn.1404d7a4f
movsd xmm0, qword [rax]
cmova bx, r10w
jmp 0x1404d7800
mov ebx, dword [rax + 8]
jmp 0x1404d7808
jmp 0x1404d793c
lea rax, [0x1400ba940]
or cx, 0x2755
and ch, 0xec
mov rcx, qword [rax + r13*8]
cmp byte [rcx + r15*8 + 0x38], bl
jge 0x1404d78cf
mov ecx, esi
cmc
clc
test sil, sil
jmp 0x1404d7837
je 0x1404d78a8
sub ecx, 1
jmp 0x1404d7845
je 0x1404d7886
cmp ecx, 1
jmp 0x1404d7853
jne 0x1404d7945
mov r9d, r14d
xchg rcx, rdx
lea rcx, [rbp - 0x30]
xchg edx, r8d
movsxd rdx, r11d
mov r8, rdi
movsx dx, dh
movsx edx, bx
cdq
mov edx, r12d
jmp 0x1404d787c
call fcn.1404d8674
jmp 0x1404d77f2
mov r9d, r14d
lea rcx, [rbp - 0x30]
jmp 0x1404d7898
mov r8, rdi
mov edx, r12d
call fcn.1404d88d0
jmp 0x1404d77f2
mov r9d, r14d
lea rcx, [rbp - 0x30]
cqo
mov r8, rdi
cdq
movsx dx, bpl
bswap dx
mov edx, r12d
jmp 0x1404d78c5
call fcn.1404d8459
jmp 0x1404d77f2
mov rcx, qword [rcx + r15*8 + 0x28]
or r8w, 0x4f35
cmc
lea r9, [rbp - 0x2c]
xor eax, eax
shl r8w, 0xf3
mov r8d, r14d
sbb edx, 0x45757dee
movzx rdx, r12w
and qword [rsp + 0x20], rax
mov rdx, rdi
mov qword [rbp - 0x30], rax
jmp 0x1404d7904
mov dword [rbp - 0x28], eax
jmp 0x1404d790c
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jmp 0x1404d7919
jne 0x1404d7931
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
shl ebx, 0xe4
add ax, r8w
cbw
mov ebx, dword [rbp - 0x28]
movsd xmm0, qword [rbp - 0x30]
setle ah
movsd qword [rbp - 0x20], xmm0
bt ax, bx
mov rax, qword [rbp - 0x20]
cmp r8d, 0x33e25866
shr rax, 0x20
test eax, eax
jmp 0x1404d795b
jne 0x1404d79fb
mov eax, dword [rbp - 0x20]
stc
test eax, eax
jmp 0x1404d796c
je 0x1404d79b2
cmp eax, 5
jmp 0x1404d797a
jne 0x1404d79a0
call fcn.1404b187f
mov dword [rax], 9
jmp 0x1404d7990
call fcn.1404b18b0
mov dword [rax], 5
jmp 0x1404d756a
mov ecx, dword [rbp - 0x20]
jmp 0x1404d79a8
call fcn.1404b18ec
jmp 0x1404d756a
lea rax, [0x1400ba940]
mov rax, qword [rax + r13*8]
test edi, edi
test byte [rax + r15*8 + 0x38], 0x40
jmp 0x1404d79ca
je 0x1404d79de
cmp byte [rdi], 0x1a
jmp 0x1404d79d8
je 0x1404d7a0a
call fcn.1404b187f
mov dword [rax], 0x1c
call fcn.1404b18b0
and dword [rax], 0
jmp 0x1404d79f6
jmp 0x1404d756a
mov eax, dword [rbp - 0x1c]
sub eax, ebx
jmp 0x1404d7a05
jmp 0x1404d7a10
xor eax, eax
rcl r14b, 0x4f
mov rbx, qword [rsp + 0xb8]
btc r14w, 0x68
add rsp, 0x60
mov sil, r9b
pop r15
mov di, 0xcb6
movsxd r14, r15d
pop r14
jmp 0x1404d7a35
pop r13
setnp dil
pop r12
movsx edi, di
pop rdi
pop rsi
xchg bpl, bpl
not bp
pop rbp
jmp 0x1404d7a4e
ret