Function at 0x140076600
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1048
call fcn.140190c30
sub rsp, rax
mov rsi, rcx
mov rax, qword [0x140324948]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r12, [rcx + 8]
mov rax, qword [rcx + 8]
movsxd rax, dword [rax + 4]
test byte [rcx + rax + 0x28], 5
je 0x140076661
movaps xmm0, xmmword [0x1401ca7f0]
movaps xmmword [rsp + 0x80], xmm0
mov r13, 0xffffffffffffffff
cmp dword [rsi], 3
je 0x140076696
jmp 0x14007673b
mov rcx, qword [r12 + rax + 0x28]
mov rax, qword [rcx]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x80]
xor r8d, r8d
mov r9d, 1
call qword [rax + 0x18]
mov r13, qword [rsp + 0x88]
cmp dword [rsi], 3
jne 0x14007673b
call fcn.1400d0050
test al, al
jne 0x14007673b
lea r14, [rsp + 0x868]
mov rcx, r14
call fcn.1400d0090
mov rax, qword [r12]
movsxd rcx, dword [rax + 4]
add rcx, r12
lea rdi, [rsp + 0x80]
mov rdx, rdi
call fcn.140051800
lea rdx, [0x140346ad0]
mov rcx, rdi
call fcn.1400555a0
mov rbp, qword [rax]
mov rcx, rax
mov dl, 0xa
call qword [rbp + 0x38]
mov ebx, eax
mov rcx, rdi
call fcn.1400554e0
mov rcx, r12
mov edx, ebx
call fcn.140053000
mov rcx, r12
call fcn.140051ec0
mov rcx, r14
mov rdx, r12
call fcn.1400d0100
lea rdi, [rsp + 0x80]
mov rcx, rdi
call fcn.1400d0130
mov rcx, rdi
call fcn.1400d0210
test al, al
jne 0x14007673b
lea rcx, [rsp + 0x80]
mov rdx, r12
call fcn.1400d0220
mov rax, qword [rsi + 8]
movsxd rcx, dword [rax + 4]
add rcx, r12
lea rdi, [rsp + 0x80]
mov rdx, rdi
call fcn.140051800
lea rdx, [0x140346ad0]
mov rcx, rdi
call fcn.1400555a0
mov rbp, qword [rax]
mov rcx, rax
mov dl, 0xa
call qword [rbp + 0x38]
mov ebx, eax
mov rcx, rdi
call fcn.1400554e0
mov rcx, r12
mov edx, ebx
call fcn.140053000
mov rcx, r12
call fcn.140051ec0
lea r15, [rsi + 0x10]
lea rbx, [rsp + 0x60]
mov rcx, r15
mov rdx, rbx
call fcn.140008290
mov rax, qword [0x140347878]
test rax, rax
je 0x1400767de
mov r9, qword [rsi + 0x110]
mov r8d, dword [rsi + 0x120]
mov rdx, qword [rsi + 0x118]
mov ecx, dword [rsi]
mov qword [rsp + 0x20], rbx
call rax
test al, al
je 0x1400767de
cmp byte [rsp + 0x77], 0
jns 0x140076b16
jmp 0x140076b0c
test byte [reloc.WS2_32.dll_accept], 2
jne 0x140076816
cmp dword [rsi], 2
jl 0x14007686b
mov ecx, 2
call fcn.140194930
movzx edx, byte [rsp + 0x77]
test dl, dl
cmovs rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x60]
cmovs rcx, qword [rsp + 0x60]
mov r8d, 1
jmp 0x140076851
cmp byte [rsp + 0x77], 0
mov rcx, rbx
jns 0x140076825
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, 2
call fcn.140194930
movzx edx, byte [rsp + 0x77]
test dl, dl
jns 0x140076848
mov rdx, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov r8d, 1
mov rcx, rbx
mov r9, rax
call fcn.1401adae0
mov ecx, 2
call fcn.140194930
mov rcx, rax
call fcn.1401ac910
test byte [reloc.WS2_32.dll_accept], 1
je 0x1400768b5
call fcn.140076ba0
test al, al
je 0x1400768b5
movzx r8d, byte [rsp + 0x77]
test r8b, r8b
cmovs r8d, dword [rsp + 0x68]
lea rdx, [rsp + 0x60]
cmovs rdx, qword [rsp + 0x60]
mov rcx, qword [0x1403478b8]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsi], 3
jne 0x140076918
mov rcx, qword [0x140347830]
lea rbp, [rsp + 0x60]
test rcx, rcx
je 0x1400768f5
movzx eax, byte [rsp + 0x77]
test al, al
mov rdx, qword [rsp + 0x60]
cmovns rdx, rbp
mov qword [rsp + 0x50], rdx
cmovs rax, qword [rsp + 0x68]
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x50]
call fcn.140072d20
mov dword [rsp + 0x80], 0xbedead01
mov dword [rsp + 0x484], 0x5050dead
cmp byte [rbp + 0x17], 0
jns 0x140076922
mov rdx, qword [rsp + 0x60]
jmp 0x140076927
lea rbp, [rsp + 0x60]
jmp 0x140076b06
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x84]
mov r8d, 0x400
call fcn.140089500
lea rcx, [rsp + 0x80]
call sym.nacl64.exe__ovly_debug_event
mov rax, qword [0x140347890]
test rax, rax
je 0x1400769b0
mov rbx, qword [0x140347890]
cmp rbx, 1
ja 0x1400769a6
lea rcx, [0x140347890]
call fcn.140076120
test al, al
je 0x14007699f
xorps xmm0, xmm0
movups xmmword [0x1403478a8], xmm0
movups xmmword [0x140347898], xmm0
lea rbx, [0x140347898]
lea rcx, [0x140347890]
mov rdx, rbx
xor r8d, r8d
mov r9, rcx
call fcn.1400761d0
jmp 0x1400769a6
mov rbx, qword [0x140347890]
mov rax, qword [rbx + 0x10]
cmp rax, qword [rbx + 0x18]
jne 0x1400769ba
call fcn.1400d0070
jmp 0x140076b06
mov r14, qword [0x140347890]
cmp r14, 1
ja 0x140076a0d
lea rcx, [0x140347890]
call fcn.140076120
test al, al
je 0x140076a06
xorps xmm0, xmm0
movups xmmword [0x1403478a8], xmm0
movups xmmword [0x140347898], xmm0
lea r14, [0x140347898]
lea rcx, [0x140347890]
mov rdx, r14
xor r8d, r8d
mov r9, rcx
call fcn.1400761d0
jmp 0x140076a0d
mov r14, qword [0x140347890]
mov rax, qword [r14 + 8]
mov rcx, qword [r14 + 0x18]
test rcx, rcx
cmove rcx, rax
add rcx, 0xffffffffffffffff
mov qword [rsp + 0x78], rcx
cmp rcx, rax
jbe 0x140076a6c
lea rdx, [r14 + 8]
lea r8, str.i___capacity_
lea rcx, [rsp + 0x78]
call fcn.140007ce0
test rax, rax
je 0x140076a6c
lea rdx, str..._.._base_containers_vector_buffer.h
lea rdi, [rsp + 0x868]
mov rcx, rdi
mov r8d, 0x55
mov r9, rax
call fcn.140077380
mov rcx, rdi
call fcn.140076600
mov rdx, qword [rsp + 0x78]
shl rdx, 3
add rdx, qword [r14]
lea rcx, [rsp + 0x868]
call fcn.14006e840
mov rbx, qword [rsp + 0x868]
test rbx, rbx
je 0x140076af9
cmp byte [rbp + 0x17], 0
jns 0x140076a9f
mov rdi, qword [rsp + 0x60]
jmp 0x140076aa4
lea rdi, [rsp + 0x60]
mov rcx, rdi
add rcx, r13
mov qword [rsp + 0x40], rcx
je 0x140076ab8
call fcn.1401b33b0
jmp 0x140076aba
xor eax, eax
mov qword [rsp + 0x48], rax
mov rax, qword [rsi + 0x110]
sub r13, rax
add rdi, rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], r13
mov r8d, dword [rsi + 0x120]
mov rdx, qword [rsi + 0x118]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov rcx, rbx
call qword [rbx + reloc.WS2_32.dll_htonl]
lea rcx, [rsp + 0x868]
call fcn.14006e820
cmp byte [rbp + 0x17], 0
jns 0x140076b16
mov rcx, qword [rsp + 0x60]
call fcn.140190860
lea rcx, [rsi + 0x124]
call fcn.1400d0030
mov rax, qword [rsi + 8]
movsxd rax, dword [rax + 4]
lea rcx, [0x1401c86f8]
mov qword [rsi + rax + 8], rcx
lea rax, [0x1401c8700]
mov qword [rsi + 0x10], rax
cmp byte [rsi + 0x67], 0
lea rsi, [rsi + 0x78]
jns 0x140076b55
mov rcx, qword [r12 + 0x48]
call fcn.140190860
mov rcx, r15
call fcn.140051df0
mov rcx, r15
call sym.nacl64.exe__ovly_debug_event
mov rcx, rsi
call fcn.140051de0
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140190ca0
nop
add rsp, 0x1048
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret