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

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
mov rdx, qword [rcx]
xor esi, esi
movzx r13d, byte [rcx + 0x40]
mov rbp, rcx
mov rdi, qword [rcx + 8]
sub r13d, 1
mov qword [rsp + 0x90], rdx
mov r15, qword [rdx]
mov rbx, qword [rdx + 0x10]
mov qword [rsp + 0x98], r15
mov qword [rsp + 0x88], rdi
movsxd r12, r13d
js 0x1401d4f92
nop dword [rax]
nop word [rax + rax]
lea rax, [r12 + r12*2]
shl rax, 5
lea r14, [rbp + 0x398]
add r14, rax
cmp byte [r14 + 0x35], 0xad
mov r15, qword [r14 + 0x50]
je 0x1401d49d2
cmp byte [rbp + 0x43], 2
mov edi, esi
jne 0x1401d4849
movzx eax, byte [rbp + 0x40]
dec eax
cmp r13d, eax
jne 0x1401d4849
test dword [r15 + 0x28], 0x200
je 0x1401d4849
mov rax, qword [r15 + 0x20]
test byte [rax + 0x64], 0x80
je 0x1401d4849
movzx esi, word [r15 + 0x1e]
test esi, esi
je 0x1401d4847
mov rax, qword [rax + 0x10]
cmp word [rax + rsi*2], 0x24
jl 0x1401d4847
mov ebp, dword [rdx + 0x38]
xor edi, edi
inc ebp
test esi, esi
je 0x1401d47f9
nop
mov r8d, dword [r14 + 8]
lea eax, [rdi + rbp]
mov r9d, edi
mov dword [rsp + 0x20], eax
mov edx, 0x59
mov rcx, rbx
call fcn.1401c1c90
inc edi
cmp edi, esi
jl 0x1401d47d0
mov rdx, qword [rsp + 0x90]
lea eax, [rsi + 1]
mov dword [rsp + 0x28], esi
add dword [rdx + 0x38], eax
mov rcx, rbx
cmp byte [r14 + 0x35], 4
mov edx, 0x19
mov r8d, dword [r14 + 8]
mov eax, reloc.WS2_32.dll_shutdown
cmove edx, eax
mov dword [rsp + 0x20], ebp
xor r9d, r9d
call fcn.1401c1e30
mov r9d, dword [r14 + 0x3c]
mov edx, listen
mov rcx, rbx
mov edi, eax
lea r8d, [rdx - 0xa]
call fcn.1401c1c20
mov rbp, qword [rsp + 0x80]
xor esi, esi
mov rcx, qword [rbx + 0x18]
mov r8d, dword [r14 + 0x18]
not r8d
mov edx, dword [rcx + 0x48]
add edx, dword [rcx + 0x44]
jns 0x1401d4866
mov rdx, rbx
call fcn.140188080
jmp 0x1401d4876
mov rcx, qword [rcx + 0x50]
mov eax, dword [rbx + 0x90]
movsxd rdx, r8d
mov dword [rcx + rdx*4], eax
movsxd rcx, dword [rbx + 0x90]
movzx r10d, byte [r14 + 0x36]
mov r9d, dword [r14 + 0x3c]
mov r8d, dword [r14 + 0x38]
movzx edx, byte [r14 + 0x35]
cmp dword [rbx + 0x94], ecx
jg 0x1401d48a6
mov rcx, rbx
mov dword [rsp + 0x20], r10d
call fcn.140178b80
jmp 0x1401d48db
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov byte [rax + rcx*8], dl
mov word [rax + rcx*8 + 2], si
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], rsi
mov byte [rax + rcx*8 + 1], 0
mov eax, dword [rbx + 0x90]
test eax, eax
jle 0x1401d4900
movzx r8d, byte [r14 + 0x37]
dec eax
movsxd rcx, eax
mov rax, qword [rbx + 0x88]
lea rdx, [rcx + rcx*2]
mov word [rax + rdx*8 + 2], r8w
cmp dword [r14 + 0x24], 0
je 0x1401d4996
mov rcx, qword [rbx + 0x18]
mov edx, dword [r14 + 0x28]
not edx
mov eax, dword [rcx + 0x48]
add eax, dword [rcx + 0x44]
jns 0x1401d492a
mov r8d, edx
mov rdx, rbx
call fcn.140188080
jmp 0x1401d493a
mov rcx, qword [rcx + 0x50]
mov eax, dword [rbx + 0x90]
movsxd rdx, edx
mov dword [rcx + rdx*4], eax
mov edx, dword [r14 + 0x3c]
movsxd rcx, dword [rbx + 0x90]
dec edx
mov r8d, dword [r14 + 0x24]
cmp dword [rbx + 0x94], ecx
jg 0x1401d4969
mov r9d, edx
mov dword [rsp + 0x20], esi
mov edx, 0x3b
mov rcx, rbx
call fcn.140178b80
jmp 0x1401d4996
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x3b
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], esi
mov qword [rax + rcx*8 + 0x10], rsi
test edi, edi
je 0x1401d4a01
mov edx, dword [rbx + 0x90]
jns 0x1401d49a5
lea edi, [rdx - 1]
mov rax, qword [rbx]
cmp byte [rax + 0x61], 0
je 0x1401d49ba
lea rax, [0x1403f00c8]
mov dword [rax + 8], edx
jmp 0x1401d4a01
movsxd rax, edi
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8 + 8], edx
lea rax, [rax + rcx*8]
jmp 0x1401d4a01
mov rcx, qword [rbx + 0x18]
mov edx, dword [r14 + 0x18]
not edx
mov eax, dword [rcx + 0x48]
add eax, dword [rcx + 0x44]
jns 0x1401d49f1
mov r8d, edx
mov rdx, rbx
call fcn.140188080
jmp 0x1401d4a01
mov rcx, qword [rcx + 0x50]
mov eax, dword [rbx + 0x90]
movsxd rdx, edx
mov dword [rcx + rdx*4], eax
test dword [r15 + 0x28], 0x800
je 0x1401d4bff
cmp dword [r14 + 0x40], 0
jle 0x1401d4bff
mov rcx, qword [rbx + 0x18]
mov edx, dword [r14 + 0x10]
not edx
mov eax, dword [rcx + 0x48]
add eax, dword [rcx + 0x44]
jns 0x1401d4a39
mov r8d, edx
mov rdx, rbx
call fcn.140188080
jmp 0x1401d4a49
mov rcx, qword [rcx + 0x50]
mov eax, dword [rbx + 0x90]
movsxd rdx, edx
mov dword [rcx + rdx*4], eax
mov esi, dword [r14 + 0x40]
lea eax, [rsi - 1]
movsxd rcx, eax
mov rax, qword [r14 + 0x48]
lea rdx, [rcx + rcx*4]
lea rdi, [rax + rdx*4]
test esi, esi
jle 0x1401d4bff
xor ebp, ebp
nop dword [rax]
mov ecx, dword [rdi + 4]
add ecx, 1
mov edx, dword [rbx + 0x90]
jns 0x1401d4a81
lea ecx, [rdx - 1]
mov rax, qword [rbx]
cmp byte [rax + 0x61], bpl
je 0x1401d4a93
lea rax, [0x1403f00c8]
jmp 0x1401d4aa5
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
cmp byte [rdi + 0x10], 0xad
je 0x1401d4bb1
mov eax, dword [rdi + 0xc]
test eax, eax
je 0x1401d4b55
test dword [r15 + 0x28], 0x400
jne 0x1401d4af8
cmp dword [r14], ebp
mov r9d, ebp
mov r8d, dword [r14 + 8]
mov edx, 0x1b
setne r9b
mov dword [rsp + 0x28], eax
mov eax, dword [rdi + 8]
add r9d, 2
add r9d, dword [rbx + 0x90]
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.1401c1e30
cmp dword [r14], ebp
je 0x1401d4b55
movsxd rcx, dword [rbx + 0x90]
mov r8d, dword [rdi]
lea edx, [rcx + 2]
cmp dword [rbx + 0x94], ecx
jg 0x1401d4b28
mov r9d, edx
mov dword [rsp + 0x20], ebp
mov edx, 0x1a
mov rcx, rbx
call fcn.140178b80
jmp 0x1401d4b55
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x1a
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], rbp
movsxd rcx, dword [rbx + 0x90]
mov r9d, dword [rdi + 4]
mov r8d, dword [rdi]
movzx edx, byte [rdi + 0x10]
cmp dword [rbx + 0x94], ecx
jg 0x1401d4b7d
mov rcx, rbx
mov dword [rsp + 0x20], ebp
call fcn.140178b80
jmp 0x1401d4bb1
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov byte [rax + rcx*8], dl
mov word [rax + rcx*8 + 2], bp
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], r9d
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], rbp
mov byte [rax + rcx*8 + 1], bpl
mov ecx, dword [rdi + 4]
sub ecx, 1
mov edx, dword [rbx + 0x90]
jns 0x1401d4bc2
lea ecx, [rdx - 1]
mov rax, qword [rbx]
cmp byte [rax + 0x61], bpl
je 0x1401d4bd4
lea rax, [0x1403f00c8]
jmp 0x1401d4be6
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rax, [rax + rcx*8]
dec esi
mov dword [rax + 8], edx
sub rdi, 0x14
test esi, esi
jg 0x1401d4a70
mov rbp, qword [rsp + 0x80]
mov rcx, qword [rbx + 0x18]
mov edx, dword [r14 + 0xc]
not edx
mov eax, dword [rcx + 0x48]
add eax, dword [rcx + 0x44]
jns 0x1401d4c1e
mov r8d, edx
mov rdx, rbx
call fcn.140188080
jmp 0x1401d4c2e
mov rcx, qword [rcx + 0x50]
mov eax, dword [rbx + 0x90]
movsxd rdx, edx
mov dword [rcx + rdx*4], eax
mov edx, dword [r14 + 0x14]
xor edi, edi
test edx, edx
je 0x1401d4cfc
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1401d4c62
mov r9d, edx
mov dword [rsp + 0x20], edi
lea edx, [rdi + 0xb]
xor r8d, r8d
mov rcx, rbx
call fcn.140178b80
jmp 0x1401d4c8b
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov qword [rax + rcx*8], recv
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], edi
mov qword [rax + rcx*8 + 0x10], rdi
mov ecx, dword [r14 + 0x14]
mov edx, dword [rbx + 0x90]
test ecx, ecx
jns 0x1401d4c9c
lea ecx, [rdx - 1]
mov rax, qword [rbx]
cmp byte [rax + 0x61], 0
je 0x1401d4cae
lea rax, [0x1403f00c8]
jmp 0x1401d4cc0
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
mov ecx, dword [r14 + 0x14]
sub ecx, 2
mov edx, dword [rbx + 0x90]
jns 0x1401d4cd5
lea ecx, [rdx - 1]
mov rax, qword [rbx]
cmp byte [rax + 0x61], 0
je 0x1401d4ce7
lea rax, [0x1403f00c8]
jmp 0x1401d4cf9
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
mov r8d, dword [r14 + 0x30]
test r8d, r8d
je 0x1401d4d60
mov edx, dword [r14 + 0x2c]
movsxd rcx, dword [rbx + 0x90]
shr edx, 1
cmp dword [rbx + 0x94], ecx
jg 0x1401d4d33
mov r9d, r8d
mov dword [rsp + 0x20], edi
mov r8d, edx
mov rcx, rbx
mov edx, 0x3b
call fcn.140178b80
jmp 0x1401d4d60
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x3b
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], edi
mov qword [rax + rcx*8 + 0x10], rdi
mov edx, dword [r14]
test edx, edx
je 0x1401d4f68
mov edi, dword [r15 + 0x28]
xor r15d, r15d
movsxd rsi, dword [rbx + 0x90]
cmp dword [rbx + 0x94], esi
jg 0x1401d4d9c
mov r8d, edx
mov dword [rsp + 0x20], r15d
lea edx, [r15 + 0x30]
xor r9d, r9d
mov rcx, rbx
call fcn.140178b80
mov esi, eax
jmp 0x1401d4dc5
lea rcx, [rsi + rsi*2]
lea eax, [rsi + 1]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], getprotobyname
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], r15
mov qword [rax + rcx*8 + 0x10], r15
test dil, 0x40
jne 0x1401d4e25
movsxd rcx, dword [rbx + 0x90]
mov edx, dword [r14 + 4]
cmp dword [rbx + 0x94], ecx
jg 0x1401d4df8
mov r8d, edx
mov dword [rsp + 0x20], r15d
mov edx, 0x80
xor r9d, r9d
mov rcx, rbx
call fcn.140178b80
jmp 0x1401d4e25
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x80
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r15
bt edi, 9
jb 0x1401d4e38
bt edi, 0xd
jae 0x1401d4e92
cmp qword [r14 + 0x40], 0
je 0x1401d4e92
movsxd rcx, dword [rbx + 0x90]
mov edx, dword [r14 + 8]
cmp dword [rbx + 0x94], ecx
jg 0x1401d4e65
mov r8d, edx
mov dword [rsp + 0x20], r15d
mov edx, 0x80
xor r9d, r9d
mov rcx, rbx
call fcn.140178b80
jmp 0x1401d4e92
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x80
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r15
cmp byte [r14 + 0x35], 0x41
mov edx, dword [r14 + 0x1c]
movsxd rcx, dword [rbx + 0x90]
jne 0x1401d4ee9
mov r8d, dword [r14 + 0x38]
cmp dword [rbx + 0x94], ecx
jg 0x1401d4ec7
mov r9d, edx
mov dword [rsp + 0x20], r15d
mov edx, recv
mov rcx, rbx
call fcn.140178b80
jmp 0x1401d4f34
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], recv
mov dword [rax + rcx*8 + 4], r8d
jmp 0x1401d4f26
cmp dword [rbx + 0x94], ecx
jg 0x1401d4f0a
xor r8d, r8d
mov dword [rsp + 0x20], r15d
mov r9d, edx
mov rcx, rbx
lea edx, [r8 + 0xb]
call fcn.140178b80
jmp 0x1401d4f34
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov qword [rax + rcx*8], recv
mov qword [rax + rcx*8 + 0x10], r15
mov dword [rax + rcx*8 + 0xc], r15d
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rbx + 0x90]
test esi, esi
jns 0x1401d4f41
lea esi, [rdx - 1]
mov rax, qword [rbx]
cmp byte [rax + 0x61], 0
je 0x1401d4f53
lea rax, [0x1403f00c8]
jmp 0x1401d4f65
movsxd rax, esi
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
mov rdx, qword [rsp + 0x90]
dec r13d
sub r12, 1
mov esi, 0
jns 0x1401d4750
mov r15, qword [rsp + 0x98]
mov rdi, qword [rsp + 0x88]
mov rcx, qword [rbx + 0x18]
mov edx, dword [rbp + 0x34]
not edx
mov eax, dword [rcx + 0x48]
add eax, dword [rcx + 0x44]
jns 0x1401d4fb0
mov r8d, edx
mov rdx, rbx
call fcn.140188080
jmp 0x1401d4fc0
mov rcx, qword [rcx + 0x50]
mov eax, dword [rbx + 0x90]
movsxd rdx, edx
mov dword [rcx + rdx*4], eax
mov r12, qword [rsp + 0x90]
xor r13d, r13d
mov r14d, r13d
cmp byte [rbp + 0x40], r13b
jbe 0x1401d5237
lea r11, [rbp + 0x3e8]
nop
movzx eax, byte [r11 - 0x1c]
mov rdx, qword [r11]
imul rcx, rax, 0x70
test byte [rcx + rdi + 0x48], 0x10
mov rsi, qword [rcx + rdi + 0x28]
je 0x1401d50a6
mov r8d, dword [r11 - 0x30]
mov edi, dword [rcx + rdi + 0x40]
mov ecx, r8d
mov r9d, dword [r11 - 0x4c]
mov rdx, qword [r12 + 0x10]
test r8d, r8d
jns 0x1401d501d
mov ecx, dword [rdx + 0x90]
dec ecx
mov rax, qword [rdx]
cmp byte [rax + 0x61], r13b
je 0x1401d502f
lea r10, [0x1403f00c8]
jmp 0x1401d5041
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rdx + 0x88]
lea r10, [rax + rcx*8]
mov rax, qword [r12]
mov ecx, dword [rdx + 0x90]
cmp byte [rax + 0x61], r13b
jne 0x1401d521b
cmp r8d, ecx
jge 0x1401d521b
sub ecx, r8d
lea rdx, [r10 + 4]
mov r8d, ecx
cmp dword [rdx], r9d
jne 0x1401d5097
movzx eax, byte [rdx - 4]
cmp al, 0x59
jne 0x1401d5088
mov ecx, dword [rdx + 4]
mov eax, dword [rdx + 8]
add ecx, edi
mov dword [rdx], ecx
mov byte [rdx - 4], 0x4d
mov dword [rdx + 4], eax
jmp 0x1401d5093
cmp al, 0x7f
jne 0x1401d5097
mov byte [rdx - 4], 0x48
mov dword [rdx], r13d
mov dword [rdx + 8], r13d
add rdx, 0x18
sub r8, 1
jne 0x1401d5068
jmp 0x1401d521b
mov eax, dword [rdx + 0x28]
test eax, 0x240
je 0x1401d50b6
mov rdi, qword [rdx + 0x20]
jmp 0x1401d50c4
bt eax, 0xd
jae 0x1401d5223
mov rdi, qword [r11 - 0x10]
test rdi, rdi
je 0x1401d521b
cmp byte [rbp + 0x42], r13b
je 0x1401d50e1
mov rax, qword [rdi + 0x18]
test byte [rax + 0x40], 0x80
je 0x1401d521b
cmp byte [r15 + 0x61], r13b
jne 0x1401d521b
mov r8d, dword [r11 - 0x30]
mov ecx, r8d
mov edx, dword [rbx + 0x90]
test r8d, r8d
jns 0x1401d5100
lea ecx, [rdx - 1]
mov rax, qword [rbx]
cmp byte [rax + 0x61], r13b
je 0x1401d5112
lea r10, [0x1403f00c8]
jmp 0x1401d5124
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea r10, [rax + rcx*8]
cmp r8d, edx
jge 0x1401d521b
sub edx, r8d
add r10, 4
mov ebp, edx
or r12d, 0xffffffff
nop word [rax + rax]
mov eax, dword [r11 - 0x4c]
cmp dword [r10], eax
jne 0x1401d51fd
movzx eax, byte [r10 - 4]
cmp al, 0x59
jne 0x1401d51e3
mov eax, dword [rsi + 0x40]
movsxd rdx, dword [r10 + 4]
test al, al
jns 0x1401d5178
mov rcx, rsi
call fcn.1401b51d0
mov rax, qword [rax + 8]
movsx r8d, word [rax + rdx*2]
jmp 0x1401d51b3
test al, 0x20
je 0x1401d51af
mov r9d, r13d
cmp r13w, dx
jg 0x1401d51af
mov r8, qword [rsi + 8]
add r8, 0x1c
nop dword [rax]
movzx eax, byte [r8]
lea ecx, [rdx + 1]
and al, 0x20
lea r8, [r8 + 0x20]
cmove cx, dx
inc r9d
movsx eax, cx
movzx edx, cx
cmp r9d, eax
jle 0x1401d5190
movsx r8d, dx
movzx edx, word [rdi + 0x60]
mov eax, r13d
test edx, edx
jle 0x1401d51d2
mov r9, qword [rdi + 8]
movsxd rcx, eax
cmp r8w, word [r9 + rcx*2]
je 0x1401d51d6
inc eax
cmp eax, edx
jl 0x1401d51c2
movzx eax, r12w
movsx ecx, ax
test ecx, ecx
js 0x1401d51fd
mov dword [r10 + 4], ecx
jmp 0x1401d51f6
cmp al, 0x7f
jne 0x1401d51f2
mov eax, dword [r11 - 0x48]
mov byte [r10 - 4], 0x86
jmp 0x1401d51fa
cmp al, 0x15
jne 0x1401d51fd
mov eax, dword [r11 - 0x48]
mov dword [r10], eax
add r10, 0x18
sub rbp, 1
jne 0x1401d5140
mov rbp, qword [rsp + 0x80]
mov r12, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
movzx eax, byte [rbp + 0x40]
inc r14d
add r11, 0x60
cmp r14d, eax
jl 0x1401d4fe0
cmp qword [rbp + 0x58], r13
je 0x1401d5340
mov rbx, qword [rbp + 0x58]
mov rax, qword [rbx]
mov qword [rbp + 0x58], rax
mov rax, qword [rbx + 8]
movups xmm0, xmmword [rbx + 0x10]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rbx + 0x20]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rbx + 0x30]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rbx + 0x40]
movups xmmword [rax + 0x30], xmm1
movsd xmm0, qword [rbx + 0x50]
movsd qword [rax + 0x40], xmm0
test r15, r15
je 0x1401d52db
cmp qword [r15 + 0x2d8], r13
je 0x1401d5297
mov rdx, rbx
mov rcx, r15
call fcn.14017c3b0
jmp 0x1401d5336
cmp rbx, qword [r15 + 0x1c8]
jae 0x1401d52db
cmp rbx, qword [r15 + 0x1b8]
jb 0x1401d52bf
mov rax, qword [r15 + 0x1b0]
mov qword [rbx], rax
mov qword [r15 + 0x1b0], rbx
jmp 0x1401d5336
cmp rbx, qword [r15 + 0x1c0]
jb 0x1401d52db
mov rax, qword [r15 + 0x1a0]
mov qword [rbx], rax
mov qword [r15 + 0x1a0], rbx
jmp 0x1401d5336
cmp dword [reloc.WS2_32.dll_accept], r13d
je 0x1401d532d
mov rcx, qword [0x1403efcd8]
test rcx, rcx
je 0x1401d52f6
call qword [0x1403dd1a0]
mov rcx, rbx
call qword [0x1403dd158]
dec qword [0x1403efe48]
movsxd rcx, eax
sub qword [0x1403efe00], rcx
mov rcx, rbx
call qword [0x1403dd148]
mov rcx, qword [0x1403efcd8]
test rcx, rcx
je 0x1401d5336
call qword [0x1403dd1b0]
jmp 0x1401d5336
mov rcx, rbx
call qword [0x1403dd148]
cmp qword [rbp + 0x58], r13
jne 0x1401d5241
mov eax, dword [rbp + 0x38]
mov rdx, rbp
mov rcx, r15
mov dword [r12 + 0xbc], eax
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
jmp fcn.1401e4f80