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

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0xf8
mov rax, qword [0x1800a5008]
xor rax, rsp
mov qword [rsp + 0xe8], rax
mov dword [rsp + 0x20], 0
jmp 0x18006ace0
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xf
ja 0x18006ad1c
mov eax, dword [rsp + 0x20]
shl rax, 1
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0x20
jae 0x18006ad03
jmp 0x18006ad08
call fcn.1800353dc
xor eax, eax
mov rcx, qword [rsp + 0x98]
mov word [rsp + rcx + 0xa8], ax
jmp 0x18006acd6
mov dword [rsp + 0x24], 0
jmp 0x18006ad30
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x110]
cmp dword [rsp + 0x24], eax
jae 0x18006ad72
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x108]
movzx eax, word [rcx + rax*2]
movzx eax, word [rsp + rax*2 + 0xa8]
inc ax
mov ecx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x108]
movzx ecx, word [rdx + rcx*2]
mov word [rsp + rcx*2 + 0xa8], ax
jmp 0x18006ad26
mov rax, qword [rsp + 0x120]
mov eax, dword [rax]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], reloc.WS2_32.dll_ntohs
jmp 0x18006ad94
mov eax, dword [rsp + 0x30]
dec eax
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 1
jb 0x18006adaf
mov eax, dword [rsp + 0x30]
movzx eax, word [rsp + rax*2 + 0xa8]
test eax, eax
je 0x18006adad
jmp 0x18006adaf
jmp 0x18006ad8a
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x38], eax
jbe 0x18006adc1
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x30], 0
jne 0x18006ae44
mov byte [rsp + 0x28], 0x40
mov byte [rsp + 0x29], 1
xor eax, eax
mov word [rsp + 0x2a], ax
mov rax, qword [rsp + 0x118]
mov rax, qword [rax]
mov ecx, dword [rsp + 0x28]
mov dword [rax], ecx
mov rax, qword [rsp + 0x118]
mov rax, qword [rax]
add rax, 4
mov rcx, qword [rsp + 0x118]
mov qword [rcx], rax
mov rax, qword [rsp + 0x118]
mov rax, qword [rax]
mov ecx, dword [rsp + 0x28]
mov dword [rax], ecx
mov rax, qword [rsp + 0x118]
mov rax, qword [rax]
add rax, 4
mov rcx, qword [rsp + 0x118]
mov qword [rcx], rax
mov rax, qword [rsp + 0x120]
mov dword [rax], 1
xor eax, eax
jmp 0x18006b52b
mov dword [rsp + 0x3c], 1
jmp 0x18006ae58
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x3c], eax
jae 0x18006ae76
mov eax, dword [rsp + 0x3c]
movzx eax, word [rsp + rax*2 + 0xa8]
test eax, eax
je 0x18006ae74
jmp 0x18006ae76
jmp 0x18006ae4e
mov eax, dword [rsp + 0x3c]
cmp dword [rsp + 0x38], eax
jae 0x18006ae88
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x2c], 1
mov dword [rsp + 0x20], 1
jmp 0x18006aea4
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xf
ja 0x18006aee0
mov eax, dword [rsp + 0x2c]
shl eax, 1
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x20]
movzx eax, word [rsp + rax*2 + 0xa8]
mov ecx, dword [rsp + 0x2c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
jge 0x18006aede
mov eax, 0xffffffff
jmp 0x18006b52b
jmp 0x18006ae9a
cmp dword [rsp + 0x2c], 0
jle 0x18006af02
cmp dword [rsp + 0x100], 0
je 0x18006aef8
cmp dword [rsp + 0x30], 1
je 0x18006af02
mov eax, 0xffffffff
jmp 0x18006b52b
mov qword [rsp + 0xa0], 2
cmp qword [rsp + 0xa0], 0x20
jae 0x18006af1b
jmp 0x18006af20
call fcn.1800353dc
xor eax, eax
mov rcx, qword [rsp + 0xa0]
mov word [rsp + rcx + 0xc8], ax
mov dword [rsp + 0x20], 1
jmp 0x18006af46
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xf
jae 0x18006af79
mov eax, dword [rsp + 0x20]
movzx eax, word [rsp + rax*2 + 0xc8]
mov ecx, dword [rsp + 0x20]
movzx ecx, word [rsp + rcx*2 + 0xa8]
add eax, ecx
mov ecx, dword [rsp + 0x20]
inc ecx
mov ecx, ecx
mov word [rsp + rcx*2 + 0xc8], ax
jmp 0x18006af3c
mov dword [rsp + 0x24], 0
jmp 0x18006af8d
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x110]
cmp dword [rsp + 0x24], eax
jae 0x18006b00f
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x108]
movzx eax, word [rcx + rax*2]
test eax, eax
je 0x18006b00a
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x108]
movzx eax, word [rcx + rax*2]
movzx eax, word [rsp + rax*2 + 0xc8]
mov rcx, qword [rsp + 0x128]
movzx edx, word [rsp + 0x24]
mov word [rcx + rax*2], dx
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x108]
movzx eax, word [rcx + rax*2]
movzx eax, word [rsp + rax*2 + 0xc8]
inc ax
mov ecx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x108]
movzx ecx, word [rdx + rcx*2]
mov word [rsp + rcx*2 + 0xc8], ax
jmp 0x18006af83
mov eax, dword [rsp + 0x100]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x18006b02a
cmp dword [rsp + 0x60], 1
je 0x18006b04e
jmp 0x18006b073
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x50], socket
jmp 0x18006b096
lea rax, [0x18008cf68]
mov qword [rsp + 0x90], rax
lea rax, [0x18008d4e0]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x50], 0x101
jmp 0x18006b096
lea rax, [0x18008d460]
mov qword [rsp + 0x90], rax
lea rax, [0x18008d4a0]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x118]
mov rax, qword [rax]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x5c], 0xffffffff
mov eax, dword [rsp + 0x38]
mov ecx, 1
mov dword [rsp + 0x78], ecx
movzx ecx, al
mov eax, dword [rsp + 0x78]
shl eax, cl
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x4c]
dec eax
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x100], 1
jne 0x18006b10e
cmp dword [rsp + 0x4c], 0x354
ja 0x18006b122
cmp dword [rsp + 0x100], 2
jne 0x18006b12c
cmp dword [rsp + 0x4c], 0x250
jbe 0x18006b12c
mov eax, 1
jmp 0x18006b52b
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x20]
sub ecx, eax
mov eax, ecx
mov byte [rsp + 0x29], al
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x128]
movzx eax, word [rcx + rax*2]
inc eax
cmp eax, dword [rsp + 0x50]
jae 0x18006b170
mov byte [rsp + 0x28], 0
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x128]
movzx eax, word [rcx + rax*2]
mov word [rsp + 0x2a], ax
jmp 0x18006b1de
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x128]
movzx eax, word [rcx + rax*2]
cmp eax, dword [rsp + 0x50]
jb 0x18006b1d2
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x128]
movzx eax, word [rcx + rax*2]
sub eax, dword [rsp + 0x50]
mov eax, eax
mov rcx, qword [rsp + 0x70]
movzx eax, byte [rcx + rax*2]
mov byte [rsp + 0x28], al
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x128]
movzx eax, word [rcx + rax*2]
sub eax, dword [rsp + 0x50]
mov eax, eax
mov rcx, qword [rsp + 0x90]
movzx eax, word [rcx + rax*2]
mov word [rsp + 0x2a], ax
jmp 0x18006b1de
mov byte [rsp + 0x28], 0x60
xor eax, eax
mov word [rsp + 0x2a], ax
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x20]
sub ecx, eax
mov eax, ecx
mov ecx, 1
mov dword [rsp + 0x7c], ecx
movzx ecx, al
mov eax, dword [rsp + 0x7c]
shl eax, cl
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x40]
mov ecx, 1
mov dword [rsp + 0x80], ecx
movzx ecx, al
mov eax, dword [rsp + 0x80]
shl eax, cl
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x58]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x44]
movzx ecx, al
mov eax, dword [rsp + 0x34]
shr eax, cl
add eax, dword [rsp + 0x58]
mov eax, eax
mov rcx, qword [rsp + 0x68]
mov edx, dword [rsp + 0x28]
mov dword [rcx + rax*4], edx
cmp dword [rsp + 0x58], 0
jne 0x18006b228
mov eax, dword [rsp + 0x20]
dec eax
mov ecx, 1
mov dword [rsp + 0x84], ecx
movzx ecx, al
mov eax, dword [rsp + 0x84]
shl eax, cl
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x34]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x18006b29c
mov eax, dword [rsp + 0x48]
shr eax, 1
mov dword [rsp + 0x48], eax
jmp 0x18006b280
cmp dword [rsp + 0x48], 0
je 0x18006b2c7
mov eax, dword [rsp + 0x48]
dec eax
mov ecx, dword [rsp + 0x34]
and ecx, eax
mov eax, ecx
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x34]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x34], eax
jmp 0x18006b2cf
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x20]
movzx eax, word [rsp + rax*2 + 0xa8]
dec ax
mov word [rsp + 0x54], ax
mov eax, dword [rsp + 0x20]
movzx ecx, word [rsp + 0x54]
mov word [rsp + rax*2 + 0xa8], cx
movzx eax, word [rsp + 0x54]
test eax, eax
jne 0x18006b336
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x20], eax
jne 0x18006b316
jmp 0x18006b4ca
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x128]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x108]
movzx eax, word [rcx + rax*2]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x20], eax
jbe 0x18006b4c5
mov eax, dword [rsp + 0x64]
mov ecx, dword [rsp + 0x34]
and ecx, eax
mov eax, ecx
cmp eax, dword [rsp + 0x5c]
je 0x18006b4c5
cmp dword [rsp + 0x44], 0
jne 0x18006b369
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x68]
lea rax, [rcx + rax*4]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x20]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov ecx, 1
mov dword [rsp + 0x88], ecx
movzx ecx, al
mov eax, dword [rsp + 0x88]
shl eax, cl
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
add ecx, eax
mov eax, ecx
cmp eax, dword [rsp + 0x30]
jae 0x18006b3fe
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
add ecx, eax
mov eax, ecx
mov eax, eax
movzx eax, word [rsp + rax*2 + 0xa8]
mov ecx, dword [rsp + 0x2c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
jg 0x18006b3e8
jmp 0x18006b3fe
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x2c]
shl eax, 1
mov dword [rsp + 0x2c], eax
jmp 0x18006b3ab
mov eax, dword [rsp + 0x40]
mov ecx, 1
mov dword [rsp + 0x8c], ecx
movzx ecx, al
mov eax, dword [rsp + 0x8c]
shl eax, cl
mov ecx, dword [rsp + 0x4c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x100], 1
jne 0x18006b43a
cmp dword [rsp + 0x4c], 0x354
ja 0x18006b44e
cmp dword [rsp + 0x100], 2
jne 0x18006b458
cmp dword [rsp + 0x4c], 0x250
jbe 0x18006b458
mov eax, 1
jmp 0x18006b52b
mov eax, dword [rsp + 0x64]
mov ecx, dword [rsp + 0x34]
and ecx, eax
mov eax, ecx
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x118]
mov rcx, qword [rcx]
movzx edx, byte [rsp + 0x40]
mov byte [rcx + rax*4], dl
mov eax, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x118]
mov rcx, qword [rcx]
movzx edx, byte [rsp + 0x38]
mov byte [rcx + rax*4 + 1], dl
mov rax, qword [rsp + 0x118]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
sar rax, 2
mov ecx, dword [rsp + 0x5c]
mov rdx, qword [rsp + 0x118]
mov rdx, qword [rdx]
mov word [rdx + rcx*4 + 2], ax
jmp 0x18006b12c
cmp dword [rsp + 0x34], 0
je 0x18006b4fd
mov byte [rsp + 0x28], 0x40
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x20]
sub ecx, eax
mov eax, ecx
mov byte [rsp + 0x29], al
xor eax, eax
mov word [rsp + 0x2a], ax
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x68]
mov edx, dword [rsp + 0x28]
mov dword [rcx + rax*4], edx
mov eax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x118]
mov rcx, qword [rcx]
lea rax, [rcx + rax*4]
mov rcx, qword [rsp + 0x118]
mov qword [rcx], rax
mov rax, qword [rsp + 0x120]
mov ecx, dword [rsp + 0x38]
mov dword [rax], ecx
xor eax, eax
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.1800352b0
add rsp, 0xf8
ret