Function at 0x180007910
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rsp + 0xd0], rbx
mov rax, qword [0x1800e92b0]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov esi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x180007958
xor eax, eax
cmp edx, edx
cmovne eax, edx
jmp 0x180007bba
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x180007992
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x180007992
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
mov eax, esi
jmp 0x180007bba
cmp qword [rbx + 0x80], 0
jne 0x1800079a4
or eax, 0xffffffff
jmp 0x180007bba
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1800079d1
mov rdx, qword [rbx + 0x90]
mov rcx, qword [rbx + 0x88]
mov qword [r8], rcx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp qword [rbx + 0x68], 0
jne 0x1800079f5
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call fcn.1800898a0
or ebx, 0xffffffff
cmp eax, ebx
cmovne ebx, esi
jmp 0x180007bb8
mov byte [rbp - 0x19], sil
mov edx, reloc.WS2_32.dll_ntohs
mov qword [rbp + 0x1f], rdx
mov byte [rbp + 7], 0
xor ecx, ecx
mov qword [rbp + 7], rcx
mov qword [rbp + 0x17], 8
lea rax, [rbp + 7]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
lea r15, vtable.std::codecvt_char__char__struct__Mbstatet_.0
mov rdx, qword [rbp + 7]
mov r8, qword [rbp + 0x1f]
nop dword [rax]
nop word [rax + rax]
lea rcx, [rbp + 7]
cmp r8, 0x10
cmovae rcx, rdx
lea r9, [rbp + 7]
cmovae r9, rdx
mov r10, qword [rbx + 0x68]
mov rdx, qword [rbp + 0x17]
add rdx, rcx
mov rax, qword [r10]
cmp rax, r15
je 0x180007b39
lea rcx, [rbp - 9]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], r9
lea rcx, [rbp - 0x11]
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x18]
lea r8, [rbp - 0x19]
lea rdx, [rbx + 0x74]
mov rcx, r10
call qword [rax + gethostname]
test eax, eax
js 0x180007b34
cmp eax, 1
jg 0x180007b2f
lea rax, [rbp + 7]
mov rdx, qword [rbp + 7]
mov r8, qword [rbp + 0x1f]
cmp r8, 0x10
cmovae rax, rdx
mov rdi, qword [rbp - 9]
sub rdi, rax
je 0x180007af4
lea rcx, [rbp + 7]
cmp r8, 0x10
cmovae rcx, rdx
mov r9, qword [rbx + 0x80]
mov r8, rdi
mov edx, 1
call fcn.18008e7a0
mov r8, qword [rbp + 0x1f]
mov rdx, qword [rbp + 7]
cmp rdi, rax
jne 0x180007b26
mov byte [rbx + 0x71], 1
lea rax, [rbp - 0x19]
cmp qword [rbp - 0x11], rax
jne 0x180007b2b
test rdi, rdi
jne 0x180007a40
cmp qword [rbp + 0x17], 0x20
jae 0x180007b26
xor r8d, r8d
lea edx, [rdi + 8]
lea rcx, [rbp + 7]
call fcn.180005c40
jmp 0x180007a2a
or ebx, 0xffffffff
jmp 0x180007b65
mov ebx, esi
jmp 0x180007b65
cmp eax, 3
je 0x180007b45
or ebx, 0xffffffff
jmp 0x180007b5d
lea rax, [rbp - 0x19]
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], r9
movsx ecx, byte [rbp - 0x19]
mov rdx, qword [rbx + 0x80]
call fcn.1800898a0
or ebx, 0xffffffff
cmp eax, ebx
cmovne ebx, esi
mov rdx, qword [rbp + 7]
mov r8, qword [rbp + 0x1f]
cmp r8, 0x10
jb 0x180007bb8
lea rax, [r8 + 1]
cmp rax, 0x1000
jb 0x180007bb0
test byte [rbp + 7], 0x1f
je 0x180007b83
call fcn.180083e00
int3
mov rax, qword [rdx - 8]
cmp rax, rdx
jb 0x180007b92
call fcn.180083e00
int3
sub rdx, rax
cmp rdx, 8
jae 0x180007ba1
call fcn.180083e00
int3
cmp rdx, 0x27
jbe 0x180007bad
call fcn.180083e00
int3
mov rdx, rax
mov rcx, rdx
call fcn.180060d7c
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1800612f0
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret