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

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push r12
push r13
push r15
sub rsp, 0x58
mov r13, qword [rcx]
xor r11d, r11d
mov r10, qword [rcx + 8]
mov r12, rcx
mov qword [rsp + 0x98], r13
mov r8d, r11d
mov qword [rsp + 0x90], r10
mov r9, qword [r13]
mov rbx, qword [r13 + 0x10]
mov qword [rsp + 0x88], r9
cmp byte [r13 + 0x25], r11b
jbe 0x1400b84e0
lea rdx, [r13 + 0xd0]
nop dword [rax]
cmp byte [rdx - 6], r11b
je 0x1400b84cf
movzx eax, byte [r13 + 0x1f]
cmp al, 8
jae 0x1400b84cf
mov ecx, eax
mov eax, dword [rdx]
mov dword [r13 + rcx*4 + 0x18c], eax
inc byte [r13 + 0x1f]
movzx eax, byte [r13 + 0x25]
inc r8d
add rdx, 0x14
cmp r8d, eax
jl 0x1400b84b0
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x48], rsi
mov byte [r13 + 0x25], r11b
movzx r15d, byte [r12 + 0x3a]
sub r15, 1
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], r14
js 0x1400b8a8e
mov r14, qword [rsp + 0x80]
imul r12, r15, 0x78
imul rax, r15, 0x58
add r12, 0x50
add r14, 0x3a4
add r12, r10
add r14, rax
nop dword [rax]
mov rax, qword [rbx + 0x18]
mov rbp, qword [r14 + 0x34]
mov rdx, qword [rax + 0x58]
test rdx, rdx
je 0x1400b8557
mov eax, dword [r14 + 4]
not eax
movsxd rcx, eax
mov eax, dword [rbx + 0xb8]
mov dword [rdx + rcx*4], eax
mov rax, qword [rbx + 0x18]
movzx edx, byte [r14 + 0x19]
cmp dl, 0xa1
je 0x1400b85da
movsxd rcx, dword [rbx + 0xb8]
movzx r10d, byte [r14 + 0x1a]
mov r9d, dword [r14 + 0x20]
mov r8d, dword [r14 + 0x1c]
cmp dword [rax + 0x3c], ecx
jg 0x1400b858c
mov rcx, rbx
mov dword [rsp + 0x20], r10d
call fcn.140042d70
xor r11d, r11d
jmp 0x1400b85be
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov byte [rax + rcx*8], dl
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], r9d
mov dword [rax + rcx*8 + 0xc], r10d
mov qword [rax + rcx*8 + 0x10], r11
mov byte [rax + rcx*8 + 1], 0
movsxd rax, dword [rbx + 0xb8]
test eax, eax
jle 0x1400b85da
mov rcx, qword [rbx + 0x68]
lea rdx, [rax + rax*2]
movzx eax, byte [r14 + 0x1b]
mov byte [rcx + rdx*8 - 0x15], al
test dword [rbp + 0x28], 0x800
je 0x1400b8717
cmp dword [r14 + 0x24], 0
jle 0x1400b8717
mov rax, qword [rbx + 0x18]
mov rdx, qword [rax + 0x58]
test rdx, rdx
je 0x1400b8611
mov eax, dword [r14 - 4]
not eax
movsxd rcx, eax
mov eax, dword [rbx + 0xb8]
mov dword [rdx + rcx*4], eax
mov esi, dword [r14 + 0x24]
lea eax, [rsi - 1]
movsxd rcx, eax
mov rax, qword [r14 + 0x2c]
lea rdx, [rcx + rcx*2]
lea rdi, [rax + rdx*4]
test esi, esi
jle 0x1400b8717
nop
mov rax, qword [rbx]
mov ecx, dword [rdi + 4]
mov edx, dword [rbx + 0xb8]
inc ecx
cmp byte [rax + 0x55], 0
je 0x1400b864d
lea rax, [0x1401bac90]
jmp 0x1400b8663
test ecx, ecx
lea eax, [rdx - 1]
cmovns eax, ecx
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
movzx edx, byte [rdi + 8]
cmp dl, 0xa1
je 0x1400b86c7
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
mov r9d, dword [rdi + 4]
mov r8d, dword [rdi]
cmp dword [rax + 0x3c], ecx
jg 0x1400b8695
mov rcx, rbx
mov dword [rsp + 0x20], r11d
call fcn.140042d70
jmp 0x1400b86c7
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov byte [rax + rcx*8], dl
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], r9d
mov dword [rax + rcx*8 + 0xc], r11d
mov qword [rax + rcx*8 + 0x10], r11
mov byte [rax + rcx*8 + 1], 0
mov ecx, dword [rdi + 4]
mov r8d, dword [rbx + 0xb8]
mov edx, r8d
lea eax, [rcx - 1]
test eax, eax
mov rax, qword [rbx]
cmovns edx, ecx
dec edx
cmp byte [rax + 0x55], 0
je 0x1400b86f0
lea rax, [0x1401bac90]
jmp 0x1400b86ff
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
lea rax, [rax + rcx*8]
dec esi
mov dword [rax + 8], r8d
sub rdi, 0xc
mov r11d, 0
test esi, esi
jg 0x1400b8630
mov rax, qword [rbx + 0x18]
mov rdx, qword [rax + 0x58]
test rdx, rdx
je 0x1400b8736
mov eax, dword [r14 - 8]
not eax
movsxd rcx, eax
mov eax, dword [rbx + 0xb8]
mov dword [rdx + rcx*4], eax
mov edx, dword [r14]
xor esi, esi
test edx, edx
je 0x1400b8801
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x1400b876a
mov r9d, edx
mov dword [rsp + 0x20], esi
lea edx, [rsi + 0xd]
xor r8d, r8d
mov rcx, rbx
call fcn.140042d70
jmp 0x1400b8797
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov word [rax + rcx*8], reloc.WS2_32.dll_listen
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], esi
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], esi
mov qword [rax + rcx*8 + 0x10], rsi
mov rax, qword [rbx]
mov edx, dword [rbx + 0xb8]
mov ecx, dword [r14]
cmp byte [rax + 0x55], 0
je 0x1400b87b2
lea rax, [0x1401bac90]
jmp 0x1400b87c8
test ecx, ecx
lea eax, [rdx - 1]
cmovns eax, ecx
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
mov eax, dword [r14]
mov edx, dword [rbx + 0xb8]
add eax, 0xfffffffe
lea ecx, [rdx - 1]
cmovns ecx, eax
mov rax, qword [rbx]
cmp byte [rax + 0x55], 0
je 0x1400b87ef
lea rax, [0x1401bac90]
jmp 0x1400b87fe
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
mov r8d, dword [r14 + 0x14]
test r8d, r8d
je 0x1400b8867
mov rax, qword [rbx + 0x18]
mov edx, dword [r14 + 0x10]
movsxd rcx, dword [rbx + 0xb8]
shr edx, 1
cmp dword [rax + 0x3c], ecx
jg 0x1400b8839
mov r9d, r8d
mov dword [rsp + 0x20], esi
mov r8d, edx
mov rcx, rbx
mov edx, 0x44
call fcn.140042d70
jmp 0x1400b8867
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov word [rax + rcx*8], 0x44
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], esi
mov qword [rax + rcx*8 + 0x10], rsi
mov edx, dword [r14 - 0x14]
test edx, edx
je 0x1400b8a66
mov rax, qword [rbx + 0x18]
mov edi, dword [rbp + 0x28]
xor ebp, ebp
movsxd rsi, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], esi
jg 0x1400b88a1
mov r8d, edx
mov dword [rsp + 0x20], ebp
lea edx, [rbp + 0x42]
xor r9d, r9d
mov rcx, rbx
call fcn.140042d70
mov esi, eax
jmp 0x1400b88cb
lea rcx, [rsi + rsi*2]
lea eax, [rsi + 1]
mov dword [rbx + 0xb8], eax
mov rax, qword [rbx + 0x68]
mov word [rax + rcx*8], 0x42
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], rbp
mov qword [rax + rcx*8 + 0x10], rbp
test dil, 0x40
jne 0x1400b892b
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
mov edx, dword [r12]
cmp dword [rax + 0x3c], ecx
jg 0x1400b88fd
xor r9d, r9d
mov dword [rsp + 0x20], ebp
mov r8d, edx
mov rcx, rbx
lea edx, [r9 + 0x7c]
call fcn.140042d70
jmp 0x1400b892b
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov word [rax + rcx*8], 0x7c
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], rbp
bt edi, 9
jb 0x1400b893e
bt edi, 0xd
jae 0x1400b8998
cmp qword [r14 + 0x24], 0
je 0x1400b8998
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
mov edx, dword [r14 - 0xc]
cmp dword [rax + 0x3c], ecx
jg 0x1400b896a
xor r9d, r9d
mov dword [rsp + 0x20], ebp
mov r8d, edx
mov rcx, rbx
lea edx, [r9 + 0x7c]
call fcn.140042d70
jmp 0x1400b8998
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov word [rax + rcx*8], 0x7c
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], rbp
cmp byte [r14 + 0x19], 0x48
mov edx, dword [r14 + 8]
movsxd rcx, dword [rbx + 0xb8]
mov rax, qword [rbx + 0x18]
jne 0x1400b89eb
mov r8d, dword [r14 + 0x1c]
cmp dword [rax + 0x3c], ecx
jg 0x1400b89cd
mov r9d, edx
mov dword [rsp + 0x20], ebp
mov edx, recv
mov rcx, rbx
call fcn.140042d70
jmp 0x1400b8a35
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov word [rax + rcx*8], send
mov dword [rax + rcx*8 + 4], r8d
jmp 0x1400b8a23
cmp dword [rax + 0x3c], ecx
jg 0x1400b8a08
xor r8d, r8d
mov dword [rsp + 0x20], ebp
mov r9d, edx
mov rcx, rbx
lea edx, [r8 + 0xd]
call fcn.140042d70
jmp 0x1400b8a35
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov word [rax + rcx*8], reloc.WS2_32.dll_listen
mov dword [rax + rcx*8 + 4], ebp
mov qword [rax + rcx*8 + 0x10], rbp
mov dword [rax + rcx*8 + 0xc], ebp
mov dword [rax + rcx*8 + 8], edx
mov byte [rax + rcx*8 + 3], 0
mov edx, dword [rbx + 0xb8]
test esi, esi
jns 0x1400b8a42
lea esi, [rdx - 1]
mov rax, qword [rbx]
cmp byte [rax + 0x55], 0
je 0x1400b8a54
lea rax, [0x1401bac90]
jmp 0x1400b8a63
movsxd rax, esi
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
sub r14, 0x58
sub r12, 0x78
sub r15, 1
mov r11d, 0
jns 0x1400b8530
mov r12, qword [rsp + 0x80]
mov r9, qword [rsp + 0x88]
mov rax, qword [rbx + 0x18]
mov rdx, qword [rax + 0x58]
test rdx, rdx
je 0x1400b8aae
mov eax, dword [r12 + 0x30]
not eax
movsxd rcx, eax
mov eax, dword [rbx + 0xb8]
mov dword [rdx + rcx*4], eax
cmp byte [r12 + 0x3a], 0
mov r15d, r11d
jbe 0x1400b8dde
mov r13, qword [rsp + 0x90]
lea r14, [r12 + 0x3d8]
nop dword [rax]
movzx eax, byte [r14 - 0x1c]
mov rsi, qword [r14]
imul rax, rax, 0x78
add rax, r13
test byte [rax + 0x48], 0x10
mov rbp, qword [rax + 0x28]
je 0x1400b8b97
cmp byte [r9 + 0x55], 0
jne 0x1400b8b97
mov r8d, dword [r14 - 0x28]
mov ecx, r8d
mov r10d, dword [rax + 0x40]
mov r9d, dword [r14 - 0x44]
test r8d, r8d
jns 0x1400b8b14
mov ecx, dword [rbx + 0xb8]
dec ecx
mov rax, qword [rbx]
cmp byte [rax + 0x55], 0
je 0x1400b8b26
lea rdx, [0x1401bac90]
jmp 0x1400b8b35
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
lea rdx, [rax + rcx*8]
mov eax, dword [rbx + 0xb8]
cmp r8d, eax
jge 0x1400b8b8a
add rdx, 4
sub eax, r8d
mov r8d, eax
nop word [rax + rax]
cmp dword [rdx], r9d
jne 0x1400b8b80
movzx eax, byte [rdx - 4]
cmp al, 0x60
jne 0x1400b8b71
mov ecx, dword [rdx + 4]
mov eax, dword [rdx + 8]
add ecx, r10d
mov dword [rdx], ecx
mov byte [rdx - 4], 0x54
mov dword [rdx + 4], eax
jmp 0x1400b8b7c
cmp al, 0x7b
jne 0x1400b8b80
mov byte [rdx - 4], 0x4f
mov dword [rdx], r11d
mov dword [rdx + 8], r11d
add rdx, 0x18
sub r8, 1
jne 0x1400b8b50
mov r9, qword [rsp + 0x88]
jmp 0x1400b8dc0
test byte [rbp + 0x46], 2
jne 0x1400b8c96
cmp qword [rbp + 0x18], 0
jne 0x1400b8c96
test byte [r12 + 0x38], 0x20
jne 0x1400b8c96
cmp byte [r12 + 0x3d], 0
mov edi, dword [rsi + 0x28]
jne 0x1400b8c26
test dil, 0x40
jne 0x1400b8c26
mov edx, dword [rax + 0x50]
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x1400b8bf8
xor r9d, r9d
mov dword [rsp + 0x20], r11d
mov r8d, edx
mov rcx, rbx
lea edx, [r9 + 0x6f]
call fcn.140042d70
xor r11d, r11d
jmp 0x1400b8c26
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov word [rax + rcx*8], reloc.WS2_32.dll_WSAGetLastError
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r11
and edi, 0x4300
cmp edi, 0x200
jne 0x1400b8c96
mov edx, dword [r14 - 0x40]
cmp edx, dword [r12 + 0x28]
je 0x1400b8c96
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x1400b8c68
xor r9d, r9d
mov dword [rsp + 0x20], r11d
mov r8d, edx
mov rcx, rbx
lea edx, [r9 + 0x6f]
call fcn.140042d70
jmp 0x1400b8c96
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov word [rax + rcx*8], reloc.WS2_32.dll_WSAGetLastError
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r11
mov eax, dword [rsi + 0x28]
test eax, 0x240
je 0x1400b8ca6
mov r11, qword [rsi + 0x20]
jmp 0x1400b8cb4
bt eax, 0xd
jae 0x1400b8db5
mov r11, qword [r14 - 0x10]
test r11, r11
je 0x1400b8db5
cmp byte [r12 + 0x3d], 0
je 0x1400b8cd3
mov rax, qword [r11 + 0x18]
test byte [rax + 0x46], 0x20
je 0x1400b8db5
mov r9, qword [rsp + 0x88]
cmp byte [r9 + 0x55], 0
jne 0x1400b8dbd
mov rax, qword [rbx]
mov r8d, dword [rbx + 0xb8]
mov r9d, dword [r14 - 0x28]
cmp byte [rax + 0x55], 0
je 0x1400b8d03
lea rdx, [0x1401bac90]
jmp 0x1400b8d1c
lea eax, [r8 - 1]
test r9d, r9d
cmovns eax, r9d
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
lea rdx, [rax + rcx*8]
cmp r9d, r8d
jge 0x1400b8db5
sub r8d, r9d
add rdx, 4
xor esi, esi
mov edi, r8d
lea r13d, [rsi - 1]
mov eax, dword [r14 - 0x44]
cmp dword [rdx], eax
jne 0x1400b8da3
movzx eax, byte [rdx - 4]
cmp al, 0x60
jne 0x1400b8d95
test byte [rbp + 0x46], 0x20
movsxd r8, dword [rdx + 4]
je 0x1400b8d60
mov rcx, rbp
call fcn.14006c570
mov rax, qword [rax + 8]
movsx r8d, word [rax + r8*2]
movzx r9d, word [r11 + 0x60]
mov eax, esi
test r9d, r9d
je 0x1400b8d81
mov r10, qword [r11 + 8]
movsxd rcx, eax
cmp r8w, word [r10 + rcx*2]
je 0x1400b8d85
inc eax
cmp eax, r9d
jl 0x1400b8d70
movzx eax, r13w
movsx ecx, ax
test ecx, ecx
js 0x1400b8da3
mov dword [rdx + 4], ecx
mov eax, dword [r14 - 0x40]
jmp 0x1400b8da1
cmp al, 0x7b
jne 0x1400b8da3
mov eax, dword [r14 - 0x40]
mov byte [rdx - 4], 0x81
mov dword [rdx], eax
add rdx, 0x18
sub rdi, 1
jne 0x1400b8d35
mov r13, qword [rsp + 0x90]
mov r9, qword [rsp + 0x88]
xor r11d, r11d
movzx eax, byte [r12 + 0x3a]
inc r15d
add r14, 0x58
cmp r15d, eax
jl 0x1400b8ad0
mov r13, qword [rsp + 0x98]
mov eax, dword [r12 + 0x34]
mov rdx, r12
mov rcx, r9
mov dword [r13 + 0xb4], eax
mov r14, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
pop r15
pop r13
pop r12
pop rbx
jmp fcn.1400b3060