Function at 0x14001a400
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140108708]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x14001a686
cmp byte [rcx + 0x71], 0
je 0x14001a686
or edx, 0xffffffff
call fcn.140017400
cmp eax, 0xffffffff
jne 0x14001a461
xor al, al
jmp 0x14001a688
mov edx, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x18], rdx
mov byte [rbp - 0x30], 0
xor ecx, ecx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x20], 8
lea rax, [rbp - 0x30]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
xor r13d, r13d
lea r9, vtable.std::codecvt_char__char__struct__Mbstatet_.0
mov r8, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
nop dword [rax]
lea rdx, [rbp - 0x30]
cmp r8, 0x10
cmovae rdx, rcx
lea rbx, [rbp - 0x30]
cmovae rbx, rcx
mov rsi, qword [rdi + 0x68]
mov r15, qword [rbp - 0x20]
add r15, rdx
mov rax, qword [rsi]
mov r14, qword [rax + 0x40]
cmp rax, r9
jne 0x14001a4d4
mov qword [rbp - 0x40], rbx
mov eax, r13d
jmp 0x14001a502
mov rcx, r14
call qword [fcn.1400017d0]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9, r15
mov r8, rbx
lea rdx, [rdi + 0x74]
mov rcx, rsi
call r14
mov r8, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
mov rbx, qword [rbp - 0x40]
test eax, eax
je 0x14001a511
sub eax, 1
jne 0x14001a612
jmp 0x14001a515
mov byte [rdi + 0x71], r13b
lea rax, [rbp - 0x30]
cmp r8, 0x10
cmovae rax, rcx
sub rbx, rax
je 0x14001a55a
lea rax, [rbp - 0x30]
cmp r8, 0x10
cmovae rax, rcx
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rax
call fcn.14009f4b0
mov r8, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
cmp rbx, rax
jne 0x14001a617
cmp byte [rdi + 0x71], r13b
je 0x14001a62f
test rbx, rbx
lea r9, vtable.std::codecvt_char__char__struct__Mbstatet_.0
jne 0x14001a4a0
or rax, 0xffffffffffffffff
mov rdx, qword [rbp - 0x20]
sub rax, rdx
cmp rax, 8
jbe 0x14001a625
lea rbx, [rdx + 8]
cmp rbx, 0xfffffffffffffffe
ja 0x14001a61b
cmp r8, rbx
jae 0x14001a5b5
mov r8, rdx
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.14001cbf0
mov r8, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
jmp 0x14001a5d2
test rbx, rbx
jne 0x14001a5d5
mov qword [rbp - 0x20], r13
lea rax, [rbp - 0x30]
cmp r8, 0x10
cmovae rax, rcx
mov byte [rax], r13b
jmp 0x14001a48e
test rbx, rbx
lea r9, vtable.std::codecvt_char__char__struct__Mbstatet_.0
je 0x14001a4a0
lea rdx, [rbp - 0x30]
cmp r8, 0x10
cmovae rdx, rcx
mov rax, qword [rbp - 0x20]
xor ecx, ecx
mov qword [rax + rdx], rcx
mov qword [rbp - 0x20], rbx
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rax, qword [rbp - 0x30]
mov byte [rbx + rax], cl
jmp 0x14001a48e
sub eax, 2
je 0x14001a62f
xor bl, bl
jmp 0x14001a631
lea rcx, [rbp - 0x30]
call fcn.14001b6c0
int3
lea rcx, [rbp - 0x30]
call fcn.14001b6c0
int3
mov bl, 1
cmp r8, 0x10
jb 0x14001a681
lea rax, [r8 + 1]
cmp rax, 0x1000
jb 0x14001a67c
test byte [rbp - 0x30], 0x1f
je 0x14001a64f
call fcn.14009eefc
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14001a65e
call fcn.14009eefc
int3
sub rcx, rax
cmp rcx, 8
jae 0x14001a66d
call fcn.14009eefc
int3
cmp rcx, 0x27
jbe 0x14001a679
call fcn.14009eefc
int3
mov rcx, rax
call fcn.140077f98
movzx eax, bl
jmp 0x14001a688
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140077880
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret