Function at 0x180008050
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
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 [0x1800e92b0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x1800082be
cmp byte [rcx + 0x71], 0
je 0x1800082be
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
jne 0x1800080ae
xor al, al
jmp 0x1800082c0
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
lea r15, vtable.std::codecvt_char__char__struct__Mbstatet_.0
xor r14d, r14d
mov r8, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x30]
nop word [rax + rax]
lea rcx, [rbp - 0x30]
cmp r8, 0x10
cmovae rcx, rdx
lea rbx, [rbp - 0x30]
cmovae rbx, rdx
mov r10, qword [rdi + 0x68]
mov r9, qword [rbp - 0x20]
add r9, rcx
mov rax, qword [r10]
mov r11, qword [rax + 0x40]
cmp rax, r15
jne 0x180008124
mov qword [rbp - 0x40], rbx
mov eax, r14d
jmp 0x180008146
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r8, rbx
lea rdx, [rdi + 0x74]
mov rcx, r10
call r11
mov r8, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x30]
mov rbx, qword [rbp - 0x40]
test eax, eax
je 0x180008155
sub eax, 1
jne 0x180008241
jmp 0x180008159
mov byte [rdi + 0x71], r14b
lea rax, [rbp - 0x30]
cmp r8, 0x10
cmovae rax, rdx
sub rbx, rax
je 0x18000819b
lea rcx, [rbp - 0x30]
cmp r8, 0x10
cmovae rcx, rdx
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
call fcn.18008e7a0
mov r8, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x30]
cmp rbx, rax
jne 0x180008246
cmp byte [rdi + 0x71], r14b
je 0x180008264
test rbx, rbx
jne 0x1800080f0
or rax, 0xffffffffffffffff
mov rcx, qword [rbp - 0x20]
sub rax, rcx
cmp rax, 8
jbe 0x180008257
lea rbx, [rcx + 8]
cmp rbx, 0xfffffffffffffffe
ja 0x18000824a
cmp r8, rbx
jae 0x1800081eb
mov r8, rcx
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.180006800
mov r8, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x30]
jmp 0x180008208
test rbx, rbx
jne 0x180008211
mov qword [rbp - 0x20], r14
lea rax, [rbp - 0x30]
cmp r8, 0x10
cmovae rax, rdx
mov byte [rax], r14b
jmp 0x1800080e2
test rbx, rbx
je 0x1800080f0
lea rcx, [rbp - 0x30]
cmp r8, 0x10
cmovae rcx, rdx
mov rax, qword [rbp - 0x20]
xor edx, edx
mov qword [rax + rcx], rdx
mov qword [rbp - 0x20], rbx
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rax, qword [rbp - 0x30]
mov byte [rbx + rax], dl
jmp 0x1800080e2
sub eax, 2
je 0x180008264
xor bl, bl
jmp 0x180008266
lea rcx, str.string_too_long
call fcn.180025308
int3
lea rcx, str.string_too_long
call fcn.180025308
int3
mov bl, 1
cmp r8, 0x10
jb 0x1800082b9
lea rax, [r8 + 1]
cmp rax, 0x1000
jb 0x1800082b1
test byte [rbp - 0x30], 0x1f
je 0x180008284
call fcn.180083e00
int3
mov rax, qword [rdx - 8]
cmp rax, rdx
jb 0x180008293
call fcn.180083e00
int3
sub rdx, rax
cmp rdx, 8
jae 0x1800082a2
call fcn.180083e00
int3
cmp rdx, 0x27
jbe 0x1800082ae
call fcn.180083e00
int3
mov rdx, rax
mov rcx, rdx
call fcn.180060d7c
movzx eax, bl
jmp 0x1800082c0
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1800612f0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret