Function at 0x180082170
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1803435b8]
xor rax, rsp
mov qword [rbp - 8], rax
mov r15, rdx
mov r13, rcx
mov qword [rbp - 0x30], rdx
lea rsi, [rdx + 0x10]
mov qword [rbp - 0x60], rsi
cmp qword [rdx + 0x18], 0x10
jb 0x1800821bc
mov r14, qword [rdx]
mov rdi, r14
add r14, qword [rsi]
jmp 0x1800821c9
mov qword [rbp - 0x60], rsi
mov rdi, r15
mov r14, qword [rsi]
add r14, r15
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
xor r12d, r12d
mov ebx, 7
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], rbx
cmp rdi, r14
jne 0x1800821ef
mov word [rbp - 0x28], r12w
jmp 0x180082294
mov rax, r14
sub rax, rdi
mov rsi, r12
movabs rcx, 0x7ffffffffffffffe
cmp rax, rcx
ja 0x1800823d3
cmp rax, 8
jb 0x180082250
mov rbx, rax
or rbx, 7
cmp rbx, rcx
jbe 0x180082222
mov rbx, rcx
jmp 0x18008222e
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rbp - 0x28]
call fcn.18000b060
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x10], rbx
nop dword [rax]
nop word [rax + rax]
lea rcx, [rbp - 0x28]
cmp rbx, 8
cmovae rcx, qword [rbp - 0x28]
movsx eax, byte [rdi]
mov word [rcx + rsi*2], ax
mov rsi, qword [rbp - 0x18]
inc rsi
mov qword [rbp - 0x18], rsi
inc rdi
cmp rdi, r14
je 0x18008227d
mov rbx, qword [rbp - 0x10]
jmp 0x180082250
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rax, qword [rbp - 0x28]
mov word [rax + rsi*2], r12w
mov rsi, qword [rbp - 0x60]
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rbp - 0x58], xmm0
movups xmm1, xmmword [rbp - 0x18]
movups xmmword [rbp - 0x48], xmm1
mov byte [rbp - 0x38], 1
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rbx, qword [rcx + 0x20]
mov r10, qword [rcx + 0x28]
cmp rbx, r10
je 0x180082350
mov r11, qword [rbp - 0x10]
mov r9, qword [rbp - 0x18]
mov rdi, qword [rbp - 0x28]
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x180082348
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x1800822e2
lea r8, [rbp - 0x58]
cmp r11, 8
cmovae r8, rdi
cmp r9, rax
jne 0x180082348
mov rdx, r9
test r9, r9
je 0x180082324
sub r8, rcx
nop dword [rax + rax]
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x180082348
add rcx, 2
sub rdx, 1
jne 0x180082310
mov rbx, qword [rbx + 0x20]
lea rcx, [rbp - 0x58]
call fcn.1800097f0
mov qword [r13], rbx
test rbx, rbx
je 0x18008235d
movsxd rax, dword [rbx + 0x3c]
mov eax, dword [rax + rbx + 0x50]
mov qword [r13 + 8], rax
jmp 0x18008235d
mov rbx, qword [rbx]
cmp rbx, r10
jne 0x1800822d2
lea rcx, [rbp - 0x58]
call fcn.1800097f0
mov qword [r13], r12
mov rdx, qword [r15 + 0x18]
cmp rdx, 0x10
jb 0x180082393
inc rdx
mov rcx, qword [r15]
cmp rdx, 0x1000
jb 0x18008238e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800823cc
mov rcx, r8
call fcn.1800ef5a0
mov qword [rsi], r12
mov qword [r15 + 0x18], reloc.WS2_32.dll_ntohs
mov byte [r15], 0
mov rax, r13
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1800ef6c0
mov rbx, qword [rsp + 0xd0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1800025d0
nop
int3