Function at 0x140169663
Capabilities:
Write file on windows

Disassembly:
push rax
pushf
mov eax, 0x608f3054
pushf
not eax
add eax, 0xbb90accf
xor eax, 0xbff4c93c
rol eax, 1
popf
pushf
not eax
add eax, 0xbaed28f1
xor eax, 0x8fa0ca6c
rol eax, 0xbc
popf
pushf
not eax
add eax, 0xbea028dd
xor eax, 0xc6b6119c
rol eax, 0xd3
popf
cmp eax, 4
jne 0x1401696b2
popf
pop rax
jmp 0x140169980
cmp eax, 0
jne 0x1401696c1
popf
pop rax
jmp 0x1401696fd
cmp eax, 3
jne 0x1401696d0
popf
pop rax
jmp 0x14016988c
cmp eax, 1
jne 0x1401696df
popf
pop rax
jmp 0x1401697a4
cmp eax, 5
jne 0x1401696ee
popf
pop rax
jmp 0x1401699ce
cmp eax, 2
jne 0x1401696fd
popf
pop rax
jmp 0x140169867
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5bb8], 0
lea rbx, [rcx + 0x5bc0]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140169771
push rax
pushf
mov eax, 0xde46994
pushf
not eax
add eax, 0xb704ad89
xor eax, 0xcd0b56be
rol eax, 0xf1
popf
pushf
not eax
add eax, 0x8232dff2
xor eax, 0xecc659b6
rol eax, 0x4e
popf
pushf
not eax
add eax, 0x9c1912dd
xor eax, 0x888fa406
rol eax, 0xf
popf
jmp 0x1401696a3
push rax
pushf
mov eax, 0xa69b740b
pushf
not eax
add eax, 0xbbaca47a
xor eax, 0xb372f07d
rol eax, 0xbf
popf
pushf
not eax
add eax, 0xc0debd15
xor eax, 0xedacdd1b
rol eax, 0x3e
popf
jmp 0x1401696a3
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14016980e
push rax
pushf
mov eax, 0xe9d524c
pushf
not eax
add eax, 0xb9f6c5a8
xor eax, 0xe41d1da9
rol eax, 0x89
popf
pushf
not eax
add eax, 0xfd5e5259
xor eax, 0xe77de8bc
rol eax, 0xae
popf
pushf
not eax
add eax, 0x85704379
xor eax, 0xfbb48b80
rol eax, 0x99
popf
pushf
not eax
add eax, 0xd89f0b42
xor eax, 0xe4dfd712
rol eax, 0xff
popf
jmp 0x1401696a3
push rax
pushf
mov eax, 0xa4442216
pushf
not eax
add eax, 0xdebfd243
xor eax, 0xdcd21fa0
rol eax, 0x61
popf
pushf
not eax
add eax, 0xa4825ab7
xor eax, 0xe3113cc0
rol eax, 0x98
popf
pushf
not eax
add eax, 0xb3658fd3
xor eax, 0xaad497ed
rol eax, 0xb9
popf
pushf
not eax
add eax, 0xc6b00e56
xor eax, 0xf87642c6
rol eax, 0x6a
popf
jmp 0x1401696a3
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
push r9
not r9d
sub eax, r9d
pop r9
sub eax, 1
test eax, eax
cmovg edx, eax
call fcn.1402093ca
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.1400f7d1b
mov eax, dword [rbx]
mov edx, 0x10b2083d
pushf
not edx
add edx, 0xaf93dbf2
xor edx, 0xbe4ab2d1
rol edx, 0x4f
popf
pushf
not edx
add edx, 0xf17f1915
xor edx, 0xe1b6487d
rol edx, 0x5e
popf
pushf
not edx
add edx, 0xa6377de7
xor edx, 0xfdd8cda6
rol edx, 0xbc
popf
mov r9, qword [rdi + 0x5bb8]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5bc8]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1acd81317]
pushf
sub rcx, 0x6ccbf9b7
popf
cmovne rcx, rax
jmp 0x140169917
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x1401699ce
mov rcx, rbx
call fcn.1400f7d1b
push rax
pushf
mov eax, 0xfbb6fd98
pushf
not eax
add eax, 0xbec652a7
xor eax, 0xbcd8cb36
rol eax, 0x5e
popf
pushf
not eax
add eax, 0xeba3385d
xor eax, 0xa901fbe0
rol eax, 0x6e
popf
pushf
not eax
add eax, 0x8557b5ca
xor eax, 0xfa8c1d1e
rol eax, 0xc3
popf
jmp 0x1401696a3
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret