Function at 0x140438120
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x1405f98c0]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rdi, rcx
mov rax, qword [rcx]
movsxd rcx, dword [rax + 4]
mov rax, qword [rcx + rdi + 0x40]
mov rbx, qword [rax + 8]
mov qword [rbp + 7], rbx
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
lea rcx, [rbp - 1]
call fcn.1400c6cc0
mov r8, qword [rax]
mov dl, 0xa
mov rcx, rax
call qword [r8 + 0x40]
movzx esi, al
test rbx, rbx
je 0x1404381a3
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + reloc.WS2_32.dll_recv]
test rax, rax
je 0x1404381a3
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
movzx edx, sil
mov rcx, rdi
call fcn.140438be0
mov rcx, rdi
call fcn.1400c6640
xor esi, esi
mov qword [rbp + 0x1f], rsi
mov qword [rbp + 0x27], recv
mov byte [rbp + 0xf], sil
mov ecx, dword [rdi + 0x78]
test cl, 2
jne 0x1404381f6
mov rax, qword [rdi + 0x48]
mov r8, qword [rax]
test r8, r8
je 0x1404381f6
mov rax, qword [rdi + 0x28]
mov rdx, qword [rax]
mov qword [rbp - 9], r8
cmp r8, qword [rdi + 0x70]
cmovb r8, qword [rdi + 0x70]
sub r8, rdx
jmp 0x14043821b
test cl, 4
jne 0x140438224
mov rax, qword [rdi + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140438224
mov rax, qword [rdi + 0x20]
mov rdx, qword [rax]
mov rax, qword [rdi + 0x58]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
lea rcx, [rbp + 0xf]
call fcn.1400c8a70
mov rax, qword [0x14088f0c0]
test rax, rax
je 0x1404382c7
lea rcx, [rbp + 0xf]
mov qword [rsp + 0x20], rcx
mov r9, qword [rdi + 0xf0]
mov r8d, dword [rdi + 0xf8]
mov rdx, qword [rdi + 0xe8]
mov ecx, dword [rdi + 0xfc]
call rax
test al, al
je 0x1404382c7
mov rdx, qword [rbp + 0x27]
cmp rdx, 0x10
jb 0x140438299
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140438294
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1404383da
call fcn.1403e3650
mov rcx, rdi
call fcn.1400d3d80
nop
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1403e3630
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
lea rbx, [rbp + 0xf]
cmp qword [rbp + 0x27], 0x10
cmovae rbx, qword [rbp + 0xf]
mov ecx, 2
call fcn.1403fdae4
mov rcx, rax
mov r8, rbx
lea rdx, [0x1404ac6f8]
call fcn.1400d0cd0
mov ecx, 2
call fcn.1403fdae4
mov rcx, rax
call fcn.1404031c0
lea rax, [rbp + 0xf]
cmp qword [rbp + 0x27], 0x10
cmovae rax, qword [rbp + 0xf]
mov qword [rbp - 0x19], rax
mov rax, qword [rbp + 0x1f]
mov qword [rbp - 0x11], rax
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 0x2f]
call fcn.140438dd0
cmp qword [rax + 0x18], 8
jb 0x140438334
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdx, qword [rbp + 0x47]
cmp rdx, 8
jb 0x140438379
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x2f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140438374
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1404383d4
call fcn.1403e3650
mov qword [rbp + 0x3f], rsi
mov qword [rbp + 0x47], 7
mov word [rbp + 0x2f], si
cmp dword [rdi + 0xfc], 4
jne 0x140438395
int3
mov rdx, qword [rbp + 0x27]
cmp rdx, 0x10
jb 0x140438299
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140438294
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1404383da
jmp 0x140438294
call fcn.1403fd768
int3
call fcn.1403fd768
int3