Function at 0x1400b4bc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test rdx, rdx
je 0x1400b5124
mov byte [rsp + 0x20], r9b
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r13
sub rsp, 0x50
mov qword [rsp + 0x70], rbx
lea rbx, [rcx + 0x58]
movzx esi, r9b
mov rax, qword [rbx + 0x2d8]
mov edi, r8d
mov r13, rcx
test rax, rax
je 0x1400b4c14
nop
cmp byte [rax], 0xd
jne 0x1400b4c0b
cmp rdx, qword [rax + 0x50]
je 0x1400b4c65
mov rax, qword [rax + 0x58]
test rax, rax
jne 0x1400b4c00
mov rsi, qword [rcx + 0x320]
xor r8d, r8d
mov qword [rsp + 0x40], r12
test rsi, rsi
jne 0x1400b4cbc
mov rcx, qword [0x1402e64a0]
call fcn.1401e3610
mov rsi, rax
test rax, rax
je 0x1400b5112
mov r12d, 1
mov ecx, r12d
lock xadd dword [0x1402e65a0], ecx
xor r8d, r8d
mov qword [rax + 0x50], r8
mov byte [rax + 0x78], r8b
jmp 0x1400b4d12
mov rax, qword [rax + 0x40]
mov rbx, qword [rax + 0x10]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp edi, eax
jae 0x1400b4c86
mov ecx, eax
sub ecx, edi
cmp ecx, 0x80000000
ja 0x1400b4c96
cmp edi, eax
jbe 0x1400b4ca0
mov ecx, edi
sub ecx, eax
cmp ecx, 0x80000000
jae 0x1400b4ca0
mov ecx, edi
call sub.WS2_32.dll_htonl
mov dword [rbx + 4], eax
test sil, 1
je 0x1400b5117
or byte [rbx + 1], 1
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop r13
pop rdi
pop rsi
ret
mov rcx, qword [rsi + 0x58]
test rcx, rcx
je 0x1400b4ccf
mov rax, qword [rsi + 0x60]
mov qword [rcx + 0x60], rax
jmp 0x1400b4cda
mov rax, qword [rsi + 0x60]
mov qword [r13 + 0x328], rax
mov rax, qword [rsi + 0x58]
mov rcx, qword [rsi + 0x60]
mov qword [rcx], rax
or eax, 0xffffffff
lock xadd dword [0x1402e65b8], eax
mov r12d, 1
mov byte [rsi + 0x78], r8b
mov eax, r12d
lock xadd dword [0x1402e6930], eax
mov eax, 0xffff
add word [r13 + 0x6fe], ax
mov qword [rsp + 0x48], rbp
mov eax, 8
mov qword [rsp + 0x38], r14
mov qword [rsi + 0x30], rbx
mov ebx, r8d
mov qword [rsp + 0x30], r15
mov byte [rsi + 0x7d], 0
mov byte [rsi], reloc.WS2_32.dll_listen
mov byte [rsi + 1], 1
mov dword [rsp + 0x20], ebx
mov word [rsi + 0x6e], r8w
mov word [rsi + 0x70], ax
mov ebp, eax
mov r15, r8
mov r14, r8
nop dword [rax]
cmp ebp, 0xb0
jle 0x1400b4e07
mov rcx, qword [0x1402e6b48]
call fcn.1401e3610
mov rdi, rax
test rax, rax
je 0x1400b4daf
xor edx, edx
mov dword [rax + 0x1c], 2
mov word [rax + 0x20], r12w
mov qword [rax], rdx
mov qword [rax + 8], rdx
mov dword [rax + 0x18], edx
add rax, 0x50
mov qword [rdi + 0x28], rdx
mov dword [rdi + 0x38], edx
mov qword [rdi + 0x30], rdx
mov dword [rdi + 0x3c], edx
mov dword [rdi + 0x40], edx
mov qword [rdi + 0x10], rax
mov word [rdi + 0x44], dx
mov word [rdi + 0x46], dx
mov qword [rdi + 0x48], rdx
jmp 0x1400b4db1
xor edx, edx
mov rcx, qword [0x1402e6b50]
mov qword [rdi + 0x50], rdx
call fcn.1401e3610
mov rcx, qword [0x1402e6b58]
mov rbx, rax
call fcn.1401e3610
mov dword [rax], r12d
or dword [rdi + 0x1c], 1
xor r8d, r8d
mov qword [rdi + 0x50], rbx
mov qword [rdi + 0x10], rbx
mov ebx, dword [rsp + 0x20]
mov qword [rdi + 0x70], rax
mov qword [rdi + 0x58], r8
mov qword [rdi + 0x60], r8
mov dword [rdi + 0x68], 0x800
mov dword [rdi + 0x78], r12d
mov eax, 0x800
jmp 0x1400b4ec2
test bl, 2
je 0x1400b4e7f
mov rcx, qword [0x1402e6b48]
call fcn.1401e3610
mov rdi, rax
test rax, rax
je 0x1400b4e70
xor r8d, r8d
mov dword [rax + 0x1c], 2
mov word [rax + 0x20], r12w
mov qword [rax], r8
mov qword [rax + 8], r8
mov dword [rax + 0x18], r8d
add rax, 0x50
mov qword [rdi + 0x28], r8
mov dword [rdi + 0x38], r8d
mov qword [rdi + 0x10], rax
mov eax, 0xb0
mov qword [rdi + 0x30], r8
cmp ebp, eax
mov dword [rdi + 0x3c], r8d
mov dword [rdi + 0x40], r8d
mov word [rdi + 0x44], r8w
mov word [rdi + 0x46], r8w
mov qword [rdi + 0x48], r8
cmovl eax, ebp
jmp 0x1400b4ec2
mov eax, 0xb0
xor r8d, r8d
cmp ebp, eax
cmovl eax, ebp
jmp 0x1400b4ec2
mov rcx, qword [0x1402e6b48]
call fcn.1401e3610
mov rdi, rax
test rax, rax
je 0x1400b4eb5
xor r8d, r8d
mov word [rax + 0x20], r12w
add rax, 0x28
mov qword [rax - 0x28], r8
mov qword [rax - 0x20], r8
mov dword [rax - 0x10], r8d
mov dword [rax - 0xc], r8d
mov qword [rdi + 0x10], rax
jmp 0x1400b4eb8
xor r8d, r8d
mov eax, 0xd8
cmp ebp, eax
cmovl eax, ebp
test rdi, rdi
je 0x1400b4f0a
cmp eax, 8
jl 0x1400b4efd
sub ebp, eax
test r14, r14
je 0x1400b4ed8
mov qword [r14], rdi
jmp 0x1400b4edb
mov r15, rdi
and ebx, 0xfffffffd
mov r14, rdi
mov dword [rsp + 0x20], ebx
test ebp, ebp
jg 0x1400b4d50
test bl, 4
je 0x1400b4ef6
or dword [rdi + 0x1c], 4
test r15, r15
je 0x1400b4f1a
jmp 0x1400b4f1d
mov rcx, rdi
call fcn.140077120
xor r8d, r8d
jmp 0x1400b4f1a
test r15, r15
je 0x1400b4f1a
mov rcx, r15
call fcn.140077120
xor r8d, r8d
mov r15, r8
mov r14, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x48]
mov qword [rsi + 0x40], r15
test r15, r15
jne 0x1400b5084
cmp byte [rsi + 0x78], r15b
je 0x1400b4f50
movzx edx, word [rsi + 0x76]
xor r8d, r8d
mov rcx, r13
call fcn.1400bcac0
mov byte [rsi + 0x78], r15b
xor r8d, r8d
mov rcx, qword [rsi + 0x50]
test rcx, rcx
je 0x1400b5014
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rcx + 0x1e8], eax
cmp eax, 1
jne 0x1400b500e
mov rax, qword [rsi + 0x50]
mov rcx, qword [rax + 0xd0]
test rcx, rcx
je 0x1400b4fb5
cmp dword [rcx + 0x14], 1
jg 0x1400b4f9c
dec dword [rcx + 0x14]
cmp dword [rcx + 0x14], 0
jg 0x1400b4f9f
call fcn.1401e36c8
xor r8d, r8d
jmp 0x1400b4f9f
dec dword [rcx + 0x14]
mov rax, qword [rsi + 0x50]
mov qword [rax + 0xd0], r8
mov rax, qword [rsi + 0x50]
mov qword [rax + 0xd0], r8
mov rcx, qword [rsi + 0x50]
cmp byte [rcx + 0x24b], 0
je 0x1400b4fdb
mov rcx, qword [rcx + 0xf8]
call fcn.140078120
mov r11, qword [rsi + 0x50]
xor edx, edx
mov qword [r11 + 0xf8], rdx
mov rax, qword [rsi + 0x50]
mov ecx, 0xfffe
mov byte [rax + 0x24b], 0
mov rax, qword [rsi + 0x50]
and word [rax + 0x23c], cx
mov rcx, qword [rsi + 0x50]
call fcn.1401e36c8
mov r11d, ebx
lock xadd dword [0x1402e659c], r11d
xor r8d, r8d
mov qword [rsi + 0x50], r8
jmp 0x1400b5017
or ebx, 0xffffffff
movzx eax, word [r13 + 0x6fe]
cmp eax, dword [0x1402e6a24]
ja 0x1400b506f
mov eax, dword [0x1402e6a20]
cmp dword [0x1402e65b8], eax
ja 0x1400b506f
mov qword [rsi + 0x58], r8
mov rax, qword [r13 + 0x328]
lea rcx, [rsi + 0x58]
mov qword [rsi + 0x60], rax
mov rax, qword [r13 + 0x328]
mov qword [rax], rsi
inc word [r13 + 0x6fe]
mov qword [r13 + 0x328], rcx
lock xadd dword [0x1402e65b8], r12d
jmp 0x1400b510d
mov rcx, rsi
call fcn.1401e36c8
lock xadd dword [0x1402e65a0], ebx
jmp 0x1400b510d
add qword [r15 + 0x10], 0x20
mov rax, qword [rsi + 0x40]
movzx edx, word [rsi + 0x70]
mov dword [rax + 0x18], edx
mov rax, qword [rsp + 0x78]
mov dword [rsi + 0x68], r8d
mov qword [rsi + 0x50], rax
mov word [rsi + 0x6c], r8w
lock xadd dword [rax + 0x1e8], r12d
mov rax, qword [rsi + 0x40]
mov ecx, 8
mov rbx, qword [rax + 0x10]
mov al, byte [rsp + 0x88]
mov byte [rbx], reloc.WS2_32.dll_listen
mov byte [rbx + 1], al
call sub.WS2_32.dll_htons
mov ecx, dword [rsp + 0x80]
mov word [rbx + 2], ax
call sub.WS2_32.dll_htonl
lea rcx, [rsi + 0x58]
xor edx, edx
mov dword [rbx + 4], eax
mov qword [rcx], rdx
mov rax, qword [r13 + 0x338]
mov qword [rsi + 0x60], rax
mov rax, qword [r13 + 0x338]
mov qword [rax], rsi
inc dword [r13 + 0x5a8]
mov qword [r13 + 0x338], rcx
mov r15, qword [rsp + 0x30]
mov r12, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop r13
pop rdi
pop rsi
repz ret