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

Disassembly:
test rdx, rdx
je 0x1400b75b4
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 0x1400b70a4
nop
cmp byte [rax], 0xd
jne 0x1400b709b
cmp rdx, qword [rax + 0x50]
je 0x1400b70f5
mov rax, qword [rax + 0x58]
test rax, rax
jne 0x1400b7090
mov rsi, qword [rcx + 0x320]
xor r8d, r8d
mov qword [rsp + 0x40], r12
test rsi, rsi
jne 0x1400b714c
mov rcx, qword [0x1402e80e0]
call fcn.1401e6440
mov rsi, rax
test rax, rax
je 0x1400b75a2
mov r12d, 1
mov ecx, r12d
lock xadd dword [0x1402e81e0], ecx
xor r8d, r8d
mov qword [rax + 0x50], r8
mov byte [rax + 0x78], r8b
jmp 0x1400b71a2
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 0x1400b7116
mov ecx, eax
sub ecx, edi
cmp ecx, 0x80000000
ja 0x1400b7126
cmp edi, eax
jbe 0x1400b7130
mov ecx, edi
sub ecx, eax
cmp ecx, 0x80000000
jae 0x1400b7130
mov ecx, edi
call sub.WS2_32.dll_htonl
mov dword [rbx + 4], eax
test sil, 1
je 0x1400b75a7
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 0x1400b715f
mov rax, qword [rsi + 0x60]
mov qword [rcx + 0x60], rax
jmp 0x1400b716a
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 [0x1402e81f8], eax
mov r12d, 1
mov byte [rsi + 0x78], r8b
mov eax, r12d
lock xadd dword [0x1402e8570], 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 0x1400b7297
mov rcx, qword [0x1402e8788]
call fcn.1401e6440
mov rdi, rax
test rax, rax
je 0x1400b723f
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 0x1400b7241
xor edx, edx
mov rcx, qword [0x1402e8790]
mov qword [rdi + 0x50], rdx
call fcn.1401e6440
mov rcx, qword [0x1402e8798]
mov rbx, rax
call fcn.1401e6440
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 0x1400b7352
test bl, 2
je 0x1400b730f
mov rcx, qword [0x1402e8788]
call fcn.1401e6440
mov rdi, rax
test rax, rax
je 0x1400b7300
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 0x1400b7352
mov eax, 0xb0
xor r8d, r8d
cmp ebp, eax
cmovl eax, ebp
jmp 0x1400b7352
mov rcx, qword [0x1402e8788]
call fcn.1401e6440
mov rdi, rax
test rax, rax
je 0x1400b7345
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 0x1400b7348
xor r8d, r8d
mov eax, 0xd8
cmp ebp, eax
cmovl eax, ebp
test rdi, rdi
je 0x1400b739a
cmp eax, 8
jl 0x1400b738d
sub ebp, eax
test r14, r14
je 0x1400b7368
mov qword [r14], rdi
jmp 0x1400b736b
mov r15, rdi
and ebx, 0xfffffffd
mov r14, rdi
mov dword [rsp + 0x20], ebx
test ebp, ebp
jg 0x1400b71e0
test bl, 4
je 0x1400b7386
or dword [rdi + 0x1c], 4
test r15, r15
je 0x1400b73aa
jmp 0x1400b73ad
mov rcx, rdi
call fcn.1400795b0
xor r8d, r8d
jmp 0x1400b73aa
test r15, r15
je 0x1400b73aa
mov rcx, r15
call fcn.1400795b0
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 0x1400b7514
cmp byte [rsi + 0x78], r15b
je 0x1400b73e0
movzx edx, word [rsi + 0x76]
xor r8d, r8d
mov rcx, r13
call fcn.1400bef50
mov byte [rsi + 0x78], r15b
xor r8d, r8d
mov rcx, qword [rsi + 0x50]
test rcx, rcx
je 0x1400b74a4
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rcx + 0x1e8], eax
cmp eax, 1
jne 0x1400b749e
mov rax, qword [rsi + 0x50]
mov rcx, qword [rax + 0xd0]
test rcx, rcx
je 0x1400b7445
cmp dword [rcx + 0x14], 1
jg 0x1400b742c
dec dword [rcx + 0x14]
cmp dword [rcx + 0x14], 0
jg 0x1400b742f
call fcn.1401e64f8
xor r8d, r8d
jmp 0x1400b742f
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 0x1400b746b
mov rcx, qword [rcx + 0xf8]
call fcn.14007a5b0
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.1401e64f8
mov r11d, ebx
lock xadd dword [0x1402e81dc], r11d
xor r8d, r8d
mov qword [rsi + 0x50], r8
jmp 0x1400b74a7
or ebx, 0xffffffff
movzx eax, word [r13 + 0x6fe]
cmp eax, dword [0x1402e8664]
ja 0x1400b74ff
mov eax, dword [0x1402e8660]
cmp dword [0x1402e81f8], eax
ja 0x1400b74ff
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 [0x1402e81f8], r12d
jmp 0x1400b759d
mov rcx, rsi
call fcn.1401e64f8
lock xadd dword [0x1402e81e0], ebx
jmp 0x1400b759d
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