Function at 0x1800d2240
Capabilities:
Connect socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1d8
movdqa xmmword [rsp + 0x1c0], xmm7
movaps xmmword [rsp + 0x1b0], xmm6
mov rbx, r8
mov rdi, rdx
mov r14, rcx
movzx eax, byte [rdx + 0x78]
test eax, eax
je 0x1800d22e2
cmp eax, 3
jne 0x1800d3453
lea rax, [rdi + 0x30]
mov qword [rsp + 0xc8], rax
lea rsi, [rdi + 0x70]
movzx eax, byte [rdi + 0x70]
test eax, eax
je 0x1800d23b9
cmp eax, 3
jne 0x1800d3453
mov rcx, qword [rdi + 0x68]
mov rdx, qword [rcx + 0x10]
mov r8, qword [rbx]
lea rbx, [rsp + 0xe0]
mov rcx, rbx
mov r9b, 1
call fcn.180104af0
movzx eax, byte [rsp + 0xe9]
cmp al, 3
jne 0x1800d2a0f
mov byte [rsi], 3
mov qword [r14], 3
mov al, 3
jmp 0x1800d2d0a
mov rcx, qword [rdi + 0x20]
mov qword [rdi + 0x28], rcx
cmp word [rdi], 0
movzx eax, word [rdi + 0x12]
mov word [rsp + 0x90], ax
movdqu xmm0, xmmword [rdi + 2]
movdqa xmmword [rsp + 0x80], xmm0
je 0x1800d23c6
mov edx, dword [rdi + 0x14]
mov r8d, dword [rdi + 0x18]
movzx eax, word [rdi + 0x1c]
mov r9, qword [rsp + 0x82]
mov r10d, dword [rsp + 0x8a]
movzx r11d, word [rsp + 0x8e]
rol ax, 8
movzx esi, word [rsp + 0x90]
pxor xmm0, xmm0
movdqu xmmword [rsp + 0xfc], xmm0
movdqu xmmword [rsp + 0x10c], xmm0
movdqu xmmword [rsp + 0x11c], xmm0
movdqu xmmword [rsp + 0x12c], xmm0
movdqu xmmword [rsp + 0x13c], xmm0
movdqu xmmword [rsp + 0x14c], xmm0
mov dword [rsp + 0x15c], 0
mov qword [rsp + 0xe8], r9
mov dword [rsp + 0xf0], r10d
mov word [rsp + 0xf4], r11w
mov word [rsp + 0xf6], si
mov dword [rsp + 0xf8], r8d
mov r8d, 0x1c
mov r9w, 0x17
jmp 0x1800d2421
mov qword [rsp + 0xb0], rbx
jmp 0x1800d2496
lea r8, [rsp + 0xe8]
movzx eax, word [rsp + 0x84]
rol ax, 8
mov edx, dword [rsp + 0x80]
pxor xmm0, xmm0
movdqu xmmword [r8 + 0x60], xmm0
movdqu xmmword [r8 + 0x50], xmm0
movdqu xmmword [r8 + 0x40], xmm0
movdqu xmmword [r8 + 0x30], xmm0
movdqu xmmword [r8 + 0x20], xmm0
movdqu xmmword [r8 + 0x10], xmm0
movdqu xmmword [r8], xmm0
mov qword [r8 + 0x70], 0
mov r8d, 0x10
mov r9w, 2
mov word [rsp + 0xe0], r9w
mov word [rsp + 0xe2], ax
mov dword [rsp + 0xe4], edx
mov dword [rsp + 0x160], r8d
lea rdx, [rsp + 0xe0]
call qword [sym.imp.ws2_32.dll_connect]
test eax, eax
je 0x1800d246a
call sub.kernel32.dll_GetLastError
mov r12d, eax
mov ecx, eax
call fcn.1800f28e0
cmp al, 0xd
jne 0x1800d28e5
mov qword [rsp + 0xb0], rbx
mov rax, qword [rdi + 0x28]
lea rcx, [rdi + 0x30]
mov qword [rsp + 0xc8], rcx
mov qword [rdi + 0x30], rax
mov qword [rdi + 0x38], 0
lea rsi, [rdi + 0x70]
mov byte [rdi + 0x70], 0
mov rax, qword [rdi + 0x30]
mov qword [rsp + 0xc0], rax
mov rbx, qword [rdi + 0x38]
mov eax, dword [0x1801fd9dc]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0xc0], 0
je 0x1800d24cc
lea rax, [rax + 0xc8]
jmp 0x1800d24da
call fcn.180101ca0
test rax, rax
je 0x1800d3453
movabs rdx, 0x7fffffffffffffff
mov rcx, qword [rax + 0x38]
dec rdx
cmp rcx, rdx
ja 0x1800d3453
lea rdx, [rcx + 1]
mov qword [rax + 0x38], rdx
mov r8, qword [rax + 0x40]
cmp r8, 2
je 0x1800d344f
mov rdx, qword [rax + 0x48]
mov r9d, 1
mov ecx, 1
lock xadd qword [rdx], rcx
test r8, r8
mov qword [rsp + 0x48], rbx
je 0x1800d2532
test rcx, rcx
jns 0x1800d253e
jmp 0x1800d3453
test rcx, rcx
js 0x1800d3453
xor r9d, r9d
mov qword [rsp + 0x168], r9
dec qword [rax + 0x38]
lea rbx, [rdx + 0x158]
lea rax, [rdx + 0xe0]
mov qword [rsp + 0xb8], r8
test r8, r8
mov ecx, 0xe0
mov r8d, 0x158
cmove r8, rcx
cmove rbx, rax
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x70], r8
cmp qword [rdx + r8], 0
je 0x1800d3453
lea rcx, [rbx + 0x18]
mov qword [rsp + 0xa8], rcx
call qword [sym.imp.kernel32.dll_AcquireSRWLockShared]
movzx eax, byte [rbx + 0x20]
test al, al
jne 0x1800d3453
cmp byte [rbx + 0xc0], 0
je 0x1800d25d3
movzx eax, byte [0x1801fd9d8]
mov rcx, qword [0x1801fd960]
test rcx, rcx
je 0x1800d2931
mov rbx, qword [rsp + 0x48]
jmp 0x1800d294f
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], rdi
mov r14d, 5
xorps xmm6, xmm6
pcmpeqd xmm7, xmm7
jmp 0x1800d261f
mov rcx, r12
call qword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
test bpl, bpl
je 0x1800d2a20
inc r14
cmp r14, 0x18
je 0x1800d2901
mov rsi, qword [rbx + r14*8]
mov rax, qword [rsi + 0x48]
cmp rax, qword [rsi + 0x50]
je 0x1800d2612
lea r12, [rsi + 0x10]
mov rcx, r12
call qword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov rax, qword [0x1801fd998]
movabs rcx, 0x7fffffffffffffff
test rax, rcx
jne 0x1800d2748
xor r13d, r13d
movzx eax, byte [rsi + 0x18]
mov rdi, qword [rsi + 0x30]
mov rax, qword [rsi + 0x38]
cmp rax, rdi
jae 0x1800d26e0
imul rcx, rax, 0x58
mov rdx, qword [rsi + 0x20]
mov r8, qword [rsi + 0x40]
mov r9d, dword [rdx + rcx + 0x50]
mov qword [rsi + 0x38], r9
inc r8
mov qword [rsi + 0x40], r8
mov qword [rsi + 0x48], r8
mov r8, qword [rdx + rcx + 0x40]
add r8d, 0x1000000
and r8d, 0x7f000000
mov qword [rdx + rcx + 0x40], r8
cmp qword [rsi + 0x30], rax
jbe 0x1800d3453
mov rdx, qword [rsi + 0x20]
add rax, qword [rsi + 0x58]
lock inc qword [rsi]
jle 0x1800d3453
add rdx, rcx
mov qword [rsp + 0xd0], rdx
xor ebp, ebp
mov qword [rsp + 0xd8], rax
jmp 0x1800d28ac
mov r15, qword [rsi + 0x50]
mov bpl, 1
cmp r15, rdi
je 0x1800d28ac
lea rbp, [rsi + 0x20]
test rdi, rdi
jne 0x1800d27a7
mov rax, qword [rsi + 0x28]
cmp rax, r15
jae 0x1800d27a7
xor edx, edx
movabs rcx, 0x1745d1745d1745e
cmp r15, rcx
setb dl
imul r8, r15, 0x58
shl rdx, 3
test rax, rax
je 0x1800d2759
mov rcx, qword [rbp]
imul rax, rax, 0x58
mov qword [rsp + 0xe0], rcx
mov qword [rsp + 0xf0], rax
mov eax, 8
jmp 0x1800d275b
call fcn.18016f320
mov r13d, eax
xor r13b, 1
jmp 0x1800d2657
xor eax, eax
mov qword [rsp + 0xe8], rax
lea rcx, [rsp + 0x80]
lea r9, [rsp + 0xe0]
call fcn.180034cf0
cmp qword [rsp + 0x80], 0
mov rcx, qword [rsp + 0x88]
je 0x1800d279f
movabs rax, 0x8000000000000001
cmp rcx, rax
je 0x1800d27a7
jmp 0x1800d3479
mov qword [rsi + 0x20], rcx
mov qword [rsi + 0x28], r15
movups xmmword [rsp + 0xe7], xmm6
mov qword [rsp + 0xf7], 0
movups xmm0, xmmword [rsp + 0xe0]
movaps xmmword [rsp + 0x80], xmm0
mov rax, qword [rsp + 0xef]
mov qword [rsp + 0x8f], rax
mov rax, qword [rsp + 0xf7]
mov qword [rsp + 0x97], rax
mov rdx, qword [rsi + 0x30]
cmp rdx, qword [rsi + 0x28]
jne 0x1800d2801
mov rcx, rbp
call fcn.1800d7580
mov rdx, qword [rsi + 0x30]
mov rax, qword [rsi + 0x20]
imul rcx, rdx, 0x58
mov qword [rax + rcx], 0
mov byte [rax + rcx + 8], 0
movaps xmm0, xmmword [rsp + 0x80]
movups xmmword [rax + rcx + 9], xmm0
movups xmm0, xmmword [rsp + 0x8f]
movups xmmword [rax + rcx + 0x18], xmm0
mov qword [rax + rcx + 0x30], 0
mov qword [rax + rcx + 0x40], 0
mov qword [rax + rcx + 0x48], r12
mov dword [rax + rcx + 0x50], 0
movdqu xmm0, xmmword [rsi + 0x30]
psubq xmm0, xmm7
movdqu xmmword [rsi + 0x30], xmm0
mov rax, qword [rsi + 0x40]
inc rax
mov qword [rsi + 0x40], rax
mov qword [rsi + 0x48], rax
mov byte [rsi + 0x60], 1
movq rax, xmm0
cmp rax, rdi
jbe 0x1800d3453
mov rax, qword [rsi + 0x58]
add rax, rdi
mov qword [rsp + 0xd8], rax
mov rcx, qword [rsi + 0x20]
lock inc qword [rsi]
jle 0x1800d3453
imul rax, rdi, 0x58
add rcx, rax
mov qword [rsp + 0xd0], rcx
xor ebp, ebp
test r13b, r13b
jne 0x1800d2600
mov rax, qword [0x1801fd998]
movabs rcx, 0x7fffffffffffffff
test rax, rcx
je 0x1800d2600
call fcn.18016f320
test al, al
jne 0x1800d2600
mov byte [rsi + 0x18], 1
jmp 0x1800d2600
shl r12, 0x20
or r12, 2
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.ws2_32.dll_closesocket]
mov esi, 2
jmp 0x1800d2ce6
movzx eax, byte [0x1801fd9d8]
mov rcx, qword [0x1801fd960]
test rcx, rcx
je 0x1800d2b05
mov rdi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x48]
jmp 0x1800d2b32
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
mov rbx, qword [rsp + 0x48]
je 0x1800d3457
mov rcx, rax
mov qword [0x1801fd960], rax
mov r8d, 0x38
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1800d3457
mov r12, rax
movups xmm0, xmmword [0x1801c4148]
movups xmmword [rax + 0x20], xmm0
movups xmm0, xmmword [0x1801c4138]
movups xmmword [rax + 0x10], xmm0
movdqu xmm0, xmmword [str.A_Tokio_1.x_context_was_found__but_it_is_being_shutdown.reactor_at_max_registered_I_O_resources__]
movdqu xmmword [rax], xmm0
movabs rax, 0x2e6e776f64747568
mov qword [r12 + 0x30], rax
movzx eax, byte [0x1801fd9d8]
mov rcx, qword [0x1801fd960]
test rcx, rcx
jne 0x1800d29c6
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1800d343e
mov rcx, rax
mov qword [0x1801fd960], rax
mov r8d, 0x18
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1800d343e
mov r13, rax
mov qword [rax], r12
mov qword [rax + 8], 0x38
mov qword [rax + 0x10], 0x38
movzx eax, byte [0x1801fd9d8]
mov rcx, qword [0x1801fd960]
test rcx, rcx
jne 0x1800d2bf7
jmp 0x1800d2bde
cmp al, 2
jne 0x1800d2a74
mov r12, qword [rsp + 0xe0]
jmp 0x1800d2ec5
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.kernel32.dll_ReleaseSRWLockShared]
mov r15, qword [rsp + 0xd0]
mov r12, qword [r15 + 0x40]
mov rbp, qword [rsp + 0xd8]
cmp rbp, 0x1000000
jae 0x1800d3453
cmp qword [rsp + 0x48], 0
mov rsi, qword [rsp + 0x58]
mov rax, qword [rsp + 0x78]
je 0x1800d2d31
movabs r12, 0xc00000003
jmp 0x1800d2ddf
mov rcx, qword [rdi + 0x58]
cmp rcx, 0xffffffffffffffff
je 0x1800d3453
mov dword [rsp + 0x80], 0
mov dword [rsp + 0xe0], 4
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x80]
mov edx, 0xffff
mov r8d, 0x1007
call qword [sym.imp.ws2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x1800d2eb4
mov r12d, dword [rsp + 0x80]
test r12, r12
jne 0x1800d2ebd
mov rsi, qword [rdi + 0x40]
mov r12, qword [rdi + 0x48]
mov rax, qword [rdi + 0x60]
mov qword [rsp + 0x180], rax
movdqu xmm0, xmmword [rdi + 0x50]
movdqa xmmword [rsp + 0x170], xmm0
mov byte [rdi + 0x70], 1
cmp rsi, 3
je 0x1800d22d4
jmp 0x1800d2cb7
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
mov rdi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x48]
je 0x1800d3468
mov rcx, rax
mov qword [0x1801fd960], rax
mov r8d, 0x27
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1800d3468
mov r12, rax
movups xmm0, xmmword [0x1801c4170]
movups xmmword [rax + 0x10], xmm0
movdqu xmm0, xmmword [0x1801c4160]
movdqu xmmword [rax], xmm0
movabs rax, 0x73656372756f7365
mov qword [r12 + 0x1f], rax
movzx eax, byte [0x1801fd9d8]
mov rcx, qword [0x1801fd960]
test rcx, rcx
jne 0x1800d2b9e
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1800d343e
mov rcx, rax
mov qword [0x1801fd960], rax
mov r8d, 0x18
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1800d343e
mov r13, rax
mov qword [rax], r12
mov qword [rax + 8], 0x27
mov qword [rax + 0x10], 0x27
movzx eax, byte [0x1801fd9d8]
mov rcx, qword [0x1801fd960]
test rcx, rcx
jne 0x1800d2bf7
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1800d343e
mov rcx, rax
mov qword [0x1801fd960], rax
mov r8d, 0x18
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1800d343e
mov r12, rax
mov qword [rax], r13
lea rax, fcn.18001ee10
mov qword [r12 + 8], rax
mov byte [r12 + 0x10], 0x27
inc r12
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.kernel32.dll_ReleaseSRWLockShared]
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rsp + 0xb8]
lock dec qword [rcx]
sete al
test rdx, rdx
je 0x1800d2c5b
test al, al
je 0x1800d2c64
call fcn.180101f90
jmp 0x1800d2c64
test al, al
je 0x1800d2c64
call fcn.180101ef0
test rbx, rbx
je 0x1800d2ca1
mov rcx, qword [rbx + 8]
call fcn.180067ad0
mov rcx, qword [rbx]
lock dec qword [rcx]
jne 0x1800d2c80
call fcn.18004fac0
mov rcx, qword [rbx + 8]
lock dec qword [rcx]
jne 0x1800d2c8f
call fcn.18000ae70
mov rcx, qword [0x1801fd960]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.ws2_32.dll_closesocket]
mov byte [rsi], 1
mov esi, 2
mov rax, qword [rsp + 0x180]
mov qword [rsp + 0x1a0], rax
movdqa xmm0, xmmword [rsp + 0x170]
movdqa xmmword [rsp + 0x190], xmm0
mov rcx, qword [rsp + 0xc8]
call fcn.1800d2130
mov qword [r14], rsi
mov qword [r14 + 8], r12
movdqa xmm0, xmmword [rsp + 0x190]
movdqu xmmword [r14 + 0x10], xmm0
mov rax, qword [rsp + 0x1a0]
mov qword [r14 + 0x20], rax
mov al, 1
mov byte [rdi + 0x78], al
movaps xmm6, xmmword [rsp + 0x1b0]
movaps xmm7, xmmword [rsp + 0x1c0]
add rsp, 0x1d8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x70]
mov rdi, qword [rax + rcx]
lea rbx, [rdi + 0x20]
mov rcx, rbx
call qword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov rax, qword [0x1801fd998]
movabs rcx, 0x7fffffffffffffff
test rax, rcx
jne 0x1800d3300
xor r14d, r14d
movzx eax, byte [rdi + 0x28]
test al, al
jne 0x1800d3453
mov qword [rsp + 0xa8], r12
lea r13, [rdi + 0x30]
mov rax, qword [rdi + 0x40]
test rax, rax
je 0x1800d2d9b
mov rcx, qword [r13]
mov rax, qword [rcx + rax*8 - 8]
mov rax, qword [rax]
cmp rax, 0x21
jb 0x1800d2ed3
mov rax, qword [rdi + 0x18]
mov rcx, qword [rax + 0x10]
mov rdx, r13
call fcn.180067bd0
mov r12, rax
test rax, rax
je 0x1800d2ed3
test r14b, r14b
jne 0x1800d2dd6
mov rax, qword [0x1801fd998]
movabs rcx, 0x7fffffffffffffff
test rax, rcx
jne 0x1800d3428
mov rcx, rbx
call qword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov rbx, qword [rsp + 0x48]
mov r14, qword [r15 + 0x48]
mov rcx, r14
call qword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov rax, qword [0x1801fd998]
movabs rcx, 0x7fffffffffffffff
test rax, rcx
jne 0x1800d31c8
xor ecx, ecx
movzx eax, byte [r14 + 8]
cmp qword [r14 + 0x18], 0
je 0x1800d3453
mov r8, qword [r14 + 0x10]
cmp r8, r15
ja 0x1800d3453
sub r15, r8
movabs rdx, 0x2e8ba2e8ba2e8ba3
mov rax, r15
mul rdx
shr rdx, 4
cmp rdx, qword [r14 + 0x20]
jae 0x1800d3453
mov eax, dword [r14 + 0x28]
imul r9, rdx, 0x58
mov dword [r8 + r9 + 0x50], eax
mov qword [r14 + 0x28], rdx
mov rax, qword [r14 + 0x30]
dec rax
mov qword [r14 + 0x30], rax
mov qword [r14 + 0x38], rax
test cl, cl
jne 0x1800d2e89
mov rax, qword [0x1801fd998]
movabs rcx, 0x7fffffffffffffff
test rax, rcx
jne 0x1800d3387
mov rcx, r14
call qword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
lock dec qword [r14 - 0x10]
jne 0x1800d2ea5
add r14, 0xfffffffffffffff0
mov rcx, r14
call fcn.18000ab10
mov rdi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x60]
jmp 0x1800d2c37
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r12d, eax
shl r12, 0x20
or r12, 2
lea rcx, [rdi + 0x40]
call fcn.1800c50b0
jmp 0x1800d2caf
mov qword [rsp + 0x70], rdi
mov rax, qword [rdi + 0x40]
test rax, rax
je 0x1800d3453
mov rcx, qword [r13]
mov rdx, qword [rcx + rax*8 - 8]
lock inc qword [rdx]
lea rdi, [rsp + 0xe0]
jle 0x1800d3453
mov r13, qword [rcx + rax*8 - 8]
test r14b, r14b
jne 0x1800d2f24
mov rax, qword [0x1801fd998]
movabs rcx, 0x7fffffffffffffff
test rax, rcx
jne 0x1800d340d
mov rcx, rbx
call qword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov qword [rsp + 0xe0], 0
mov dword [rsp + 0x54], 0
xorps xmm6, xmm6
movups xmmword [rsp + 0x38], xmm6
lea rsi, [rsp + 0x54]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 8
mov r14, qword [rsp + 0xc0]
mov rcx, r14
mov edx, 0x48000022
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
je 0x1800d2fa9
mov rdi, qword [rsp + 0xe0]
mov r12, r13
movzx eax, byte [0x1801fd9d8]
mov rcx, qword [0x1801fd960]
test rcx, rcx
je 0x1800d300c
mov rsi, qword [rsp + 0x58]
jmp 0x1800d302a
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r12d, eax
mov qword [rsp + 0xe0], 0
mov dword [rsp + 0x54], 0
movups xmmword [rsp + 0x38], xmm6
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 8
mov rcx, r14
mov edx, 0x4800001c
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
je 0x1800d3296
mov rdi, qword [rsp + 0xe0]
cmp rdi, r14
jne 0x1800d2f89
jmp 0x1800d329c
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
mov rsi, qword [rsp + 0x58]
je 0x1800d348d
mov rcx, rax
mov qword [0x1801fd960], rax
mov r8d, 0x80
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1800d348d
mov r13, rax
mov rax, qword [rsp + 0xa8]
and eax, 0x7f000000
and rbp, 0xffffffff80ffffff
or rbp, rax
mov qword [r13], 1
mov qword [r13 + 8], 1
mov r14, r13
add r14, 0x10
mov qword [r13 + 0x10], 0
mov byte [r13 + 0x18], 0
mov dword [r13 + 0x20], 0
mov qword [r13 + 0x28], r12
pxor xmm0, xmm0
movdqu xmmword [r13 + 0x30], xmm0
movdqu xmmword [r13 + 0x40], xmm0
movdqu xmmword [r13 + 0x50], xmm0
mov qword [r13 + 0x60], rdi
movdqu xmmword [r13 + 0x68], xmm0
mov word [r13 + 0x78], 0
mov rcx, r14
call qword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov rax, qword [0x1801fd998]
movabs rcx, 0x7fffffffffffffff
test rax, rcx
jne 0x1800d33c5
movzx eax, byte [r13 + 0x18]
test al, al
mov rbx, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x70]
jne 0x1800d3453
mov dword [r13 + 0x70], 0x19d
mov qword [r13 + 0x68], rbp
mov rax, qword [0x1801fd998]
movabs rcx, 0x7fffffffffffffff
test rax, rcx
jne 0x1800d33f6
mov rcx, r14
call qword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
lock inc qword [rdi]
jle 0x1800d3453
lock inc qword [r13]
jle 0x1800d3453
lea r14, [rdi + 0x10]
mov rcx, r14
mov rdx, r13
call fcn.1800679f0
movzx eax, byte [rdi + 0x78]
test al, al
je 0x1800d3185
mov rcx, r14
call fcn.180066cd0
test rax, rax
je 0x1800d3185
mov r12, rax
mov rcx, r13
call fcn.180067ad0
lock dec qword [rdi]
jne 0x1800d316d
mov rcx, rdi
call fcn.180068150
lock dec qword [r13]
jne 0x1800d2de4
mov rcx, r13
call fcn.1800675b0
jmp 0x1800d2de4
mov eax, dword [rsp + 0xe0]
mov ecx, dword [rsp + 0xe3]
mov dword [rsp + 0x83], ecx
mov dword [rsp + 0x80], eax
movzx eax, byte [0x1801fd9d8]
mov rcx, qword [0x1801fd960]
test rcx, rcx
je 0x1800d31e7
mov rdi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x60]
mov rbx, qword [rsp + 0xb0]
jmp 0x1800d3212
call fcn.18016f320
mov ecx, eax
xor cl, 1
movzx eax, byte [r14 + 8]
cmp qword [r14 + 0x18], 0
jne 0x1800d2e1d
jmp 0x1800d3453
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
mov rdi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x60]
mov rbx, qword [rsp + 0xb0]
je 0x1800d349e
mov rcx, rax
mov qword [0x1801fd960], rax
mov r8d, 0x20
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1800d349e
mov rcx, qword [rsp + 0x70]
mov qword [rax], rcx
mov qword [rax + 8], r13
mov qword [rax + 0x10], rbp
mov byte [rax + 0x18], 3
mov ecx, dword [rsp + 0x80]
mov edx, dword [rsp + 0x83]
mov dword [rax + 0x19], ecx
mov dword [rax + 0x1c], edx
mov rdx, qword [rsp + 0x168]
cmp edx, 2
jne 0x1800d3268
mov r12, qword [rsp + 0x78]
jmp 0x1800d2caf
lea rcx, [rdi + 0x40]
mov qword [rdi + 0x40], rdx
mov rdx, qword [rsp + 0x78]
mov qword [rdi + 0x48], rdx
mov qword [rdi + 0x50], r15
mov rdx, qword [rsp + 0xc0]
mov qword [rdi + 0x58], rdx
mov qword [rdi + 0x60], rax
mov qword [rdi + 0x68], rcx
jmp 0x1800d22a7
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov qword [rsp + 0xe0], 0
mov dword [rsp + 0x54], 0
pxor xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 8
mov rcx, r14
mov edx, 0x4800001d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
je 0x1800d331d
mov rdi, qword [rsp + 0xe0]
cmp rdi, r14
jne 0x1800d2f89
jmp 0x1800d3323
call fcn.18016f320
mov r14d, eax
xor r14b, 1
movzx eax, byte [rdi + 0x28]
test al, al
je 0x1800d2d70
jmp 0x1800d3453
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov qword [rsp + 0xe0], 0
mov dword [rsp + 0x54], 0
pxor xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 8
mov rcx, r14
mov edx, 0x4800001b
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
je 0x1800d339e
mov rdi, qword [rsp + 0xe0]
cmp rdi, r14
jne 0x1800d2f89
jmp 0x1800d33a4
call fcn.18016f320
test al, al
jne 0x1800d2e89
mov byte [r14 + 8], 1
jmp 0x1800d2e89
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl r12, 0x20
or r12, 2
lock dec qword [r13]
jne 0x1800d33bb
mov rcx, r13
call fcn.18000aa60
mov rsi, qword [rsp + 0x58]
jmp 0x1800d2ddf
call fcn.18016f320
movzx ecx, byte [r13 + 0x18]
test cl, cl
mov rbx, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x70]
jne 0x1800d3453
mov dword [r13 + 0x70], 0x19d
mov qword [r13 + 0x68], rbp
test al, al
jne 0x1800d30f8
jmp 0x1800d3112
call fcn.18016f320
test al, al
jne 0x1800d3112
mov byte [r13 + 0x18], 1
jmp 0x1800d3112
call fcn.18016f320
test al, al
jne 0x1800d2f24
mov rax, qword [rsp + 0x70]
mov byte [rax + 0x28], 1
jmp 0x1800d2f24
call fcn.18016f320
test al, al
jne 0x1800d2dd6
mov byte [rdi + 0x28], 1
jmp 0x1800d2dd6
mov ecx, 8
mov edx, 0x18
call fcn.180168710
ud2
mov qword [rax + 0x38], rcx
ud2
mov ecx, 1
mov edx, 0x38
call fcn.180168710
ud2
mov ecx, 1
mov edx, 0x27
call fcn.180168710
ud2
test rcx, rcx
je 0x1800d3453
mov rdx, qword [rsp + 0x90]
call fcn.180168710
ud2
mov ecx, 8
mov edx, 0x80
call fcn.180168710
ud2
mov ecx, 8
mov edx, 0x20
call fcn.180168710
ud2