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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 8], rcx
push rbx
push rbp
push rdi
push r12
push r13
sub rsp, 0x40
mov rbx, qword [rcx + 0x10]
mov edi, r9d
mov r13d, r8d
mov rbp, rdx
mov r12, rcx
test rbx, rbx
jne 0x18009afc8
cmp qword [rcx + 0xa0], rbx
jne 0x18009afc0
mov rax, qword [rcx]
test byte [rax + 0x5c], 8
jne 0x18009afc0
mov byte [rcx + 0x23], 1
call fcn.180032670
mov rbx, rax
test rbp, rbp
je 0x18009b829
mov qword [rsp + 0x78], rsi
lea r9, [0x18014e6c8]
mov qword [rsp + 0x30], r15
xor r15d, r15d
mov qword [rsp + 0x38], r14
nop word [rax + rax]
mov rax, qword [rbp + 0x40]
mov esi, dword [rax + 4]
mov rax, qword [rbp + 0x60]
mov rcx, qword [rax + 0x20]
test rcx, rcx
je 0x18009b007
mov r15d, dword [rcx]
test r13d, r13d
js 0x18009b17b
xor r9d, r9d
mov edi, r9d
test r15d, r15d
jle 0x18009b0a4
mov r12d, dword [rsp + 0x90]
nop word [rax + rax]
mov rax, qword [rbx + 0x18]
mov r8d, dword [rbp + 0x6c]
movsxd rcx, dword [rbx + 0xb8]
add r8d, edi
cmp dword [rax + 0x3c], ecx
jg 0x18009b067
lea eax, [rdi + r12]
mov r9d, r8d
mov r8d, r13d
mov dword [rsp + 0x20], eax
mov edx, 0x5a
mov rcx, rbx
call fcn.180032ba0
xor r9d, r9d
jmp 0x18009b098
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x5a
mov dword [rax + rcx*8 + 4], r13d
mov dword [rax + rcx*8 + 8], r8d
lea rdx, [rax + rcx*8]
lea eax, [rdi + r12]
mov qword [rdx + 0x10], r9
mov dword [rdx + 0xc], eax
inc edi
cmp edi, r15d
jl 0x18009b030
mov r12, qword [rsp + 0x70]
mov eax, dword [rsp + 0x90]
mov r14d, eax
bt esi, 0x11
jae 0x18009b124
test r15d, r15d
jne 0x18009b0c3
mov r14d, dword [rsp + 0x98]
jmp 0x18009b121
movsxd rcx, dword [rbx + 0xb8]
lea edx, [r15 + rax]
mov rax, qword [rbx + 0x18]
mov r8d, dword [rsp + 0x98]
cmp dword [rax + 0x3c], ecx
jg 0x18009b0f6
mov dword [rsp + 0x20], r9d
mov rcx, rbx
mov r9d, edx
mov edx, reloc.WLDAP32.dll_Ordinal_79
call fcn.180032ba0
jmp 0x18009b121
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], reloc.WLDAP32.dll_Ordinal_79
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
inc r15d
mov edi, dword [rsp + 0x88]
lea r9, [0x18014e6c8]
mov rax, qword [rbp + 0x40]
test dword [rax + 4], 0x1000
je 0x18009b480
cmp byte [rbp + 0x19], 0x57
je 0x18009b480
mov rax, qword [rbx + 0x18]
xor r15d, r15d
movsxd rdi, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], edi
jg 0x18009b189
xor r9d, r9d
mov dword [rsp + 0x20], r15d
mov r8d, r14d
lea edx, [r15 + 0x32]
mov rcx, rbx
call fcn.180032ba0
mov edi, eax
jmp 0x18009b1b0
mov r14d, dword [rsp + 0x90]
add r14d, dword [rbp + 0x6c]
jmp 0x18009b132
lea rcx, [rdi + rdi*2]
lea eax, [rdi + 1]
mov dword [rbx + 0xb8], eax
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], reloc.WLDAP32.dll_Ordinal_50
mov dword [rax + rcx*8 + 4], r14d
mov qword [rax + rcx*8 + 8], r15
mov qword [rax + rcx*8 + 0x10], r15
cmp dword [rsp + 0x88], 0
mov rax, qword [rbx + 0x18]
jne 0x18009b336
mov edx, dword [rbp + 0x58]
movsxd rcx, dword [rbx + 0xb8]
inc edx
cmp dword [rax + 0x3c], ecx
jg 0x18009b1ef
mov r9d, 1
mov dword [rsp + 0x20], r15d
mov r8d, edx
mov rcx, rbx
lea edx, [r9 + 0x52]
call fcn.180032ba0
jmp 0x18009b219
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x53
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], 1
mov qword [rax + rcx*8 + 0x10], r15
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
mov edx, dword [rbp + 0x58]
cmp dword [rax + 0x3c], ecx
jg 0x18009b246
mov r9d, edx
mov dword [rsp + 0x20], r15d
mov edx, reloc.WLDAP32.dll_Ordinal_79
mov r8d, r14d
mov rcx, rbx
call fcn.180032ba0
jmp 0x18009b271
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], reloc.WLDAP32.dll_Ordinal_79
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r15
mov rax, qword [rbx + 0x18]
mov edx, dword [rbp + 0x58]
movsxd rcx, dword [rbx + 0xb8]
lea r8d, [rdx + 2]
cmp dword [rax + 0x3c], ecx
jg 0x18009b2a4
mov r9d, 2
mov dword [rsp + 0x20], r8d
mov r8d, edx
mov rcx, rbx
lea edx, [r9 + 0x64]
call fcn.180032ba0
jmp 0x18009b2d2
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x66
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], 2
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r15
mov rax, qword [rbx + 0x18]
mov edx, dword [rbp + 0x58]
movsxd rcx, dword [rbx + 0xb8]
add edx, 2
mov r8d, dword [rbp + 0x54]
cmp dword [rax + 0x3c], ecx
jg 0x18009b306
mov r9d, edx
mov dword [rsp + 0x20], r15d
mov edx, 0x85
mov rcx, rbx
call fcn.180032ba0
jmp 0x18009b435
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x85
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r15
jmp 0x18009b435
movsxd rdx, dword [rbx + 0xb8]
mov r8d, dword [rbp + 0x54]
cmp dword [rax + 0x3c], edx
jg 0x18009b35e
xor r9d, r9d
mov dword [rsp + 0x20], r14d
mov rcx, rbx
lea edx, [r9 + 0x18]
call fcn.180032ba0
mov edx, eax
jmp 0x18009b38a
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rbx + 0xb8], eax
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], Ordinal_30
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], r15d
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], r15
mov rax, qword [rbx]
cmp byte [rax + 0x61], 0
jne 0x18009b3ab
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
mov byte [rax + rcx*8 + 1], 0xfd
mov dword [rax + rcx*8 + 0x10], 1
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
mov edx, dword [rbp + 0x54]
cmp dword [rax + 0x3c], ecx
jg 0x18009b3d7
xor r9d, r9d
mov dword [rsp + 0x20], r15d
mov r8d, edx
mov rcx, rbx
lea edx, [r9 + 0x7c]
call fcn.180032ba0
jmp 0x18009b401
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x7c
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r15
mov edx, dword [rbx + 0xb8]
lea ecx, [rdx - 2]
test ecx, ecx
jns 0x18009b411
lea ecx, [rdx - 1]
mov rax, qword [rbx]
cmp byte [rax + 0x61], 0
je 0x18009b423
lea rax, [0x1803e55e8]
jmp 0x18009b432
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
mov edx, dword [rbx + 0xb8]
test edi, edi
jns 0x18009b442
lea edi, [rdx - 1]
mov rax, qword [rbx]
cmp byte [rax + 0x61], 0
je 0x18009b461
mov edi, dword [rsp + 0x88]
lea rax, [0x1803e55e8]
mov dword [rax + 8], edx
jmp 0x18009b806
movsxd rax, edi
mov edi, dword [rsp + 0x88]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8 + 8], edx
lea rax, [rax + rcx*8]
jmp 0x18009b806
mov edx, dword [rbp + 0x58]
test edx, edx
je 0x18009b4ea
mov rax, qword [rbx + 0x18]
sub edx, edi
movsxd rcx, dword [rbx + 0xb8]
inc edx
xor r15d, r15d
cmp dword [rax + 0x3c], ecx
jg 0x18009b4bb
mov r8d, edx
mov dword [rsp + 0x20], r15d
lea edx, [r15 + 0x53]
mov rcx, rbx
lea r9d, [r15 + 1]
call fcn.180032ba0
jmp 0x18009b806
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x53
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], 1
mov qword [rax + rcx*8 + 0x10], r15
jmp 0x18009b806
mov rax, qword [rax + 0x38]
lea rcx, str.lead
cmp rax, rcx
je 0x18009b803
cmp rax, r9
je 0x18009b803
xor r8d, r8d
mov esi, r8d
cmp qword [rbp + 0x38], rsi
je 0x18009b629
test r13d, r13d
jle 0x18009b5a6
movzx eax, byte [r12 + 0x1f]
test al, al
jne 0x18009b536
inc dword [r12 + 0x38]
mov edi, dword [r12 + 0x38]
jmp 0x18009b548
dec al
movzx eax, al
mov byte [r12 + 0x1f], al
mov edi, dword [r12 + rax*4 + 0xc4]
mov rax, qword [rbx + 0x18]
mov edx, dword [rbp + 0x6c]
movsxd rcx, dword [rbx + 0xb8]
add edx, r15d
cmp dword [rax + 0x3c], ecx
jg 0x18009b57a
mov r9d, edx
mov dword [rsp + 0x20], edi
mov edx, 0x5a
mov r8d, r13d
mov rcx, rbx
call fcn.180032ba0
xor r8d, r8d
jmp 0x18009b5aa
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x5a
mov dword [rax + rcx*8 + 4], r13d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], edi
mov qword [rax + rcx*8 + 0x10], r8
jmp 0x18009b5aa
lea edi, [r14 + r15]
mov rax, qword [rbx + 0x18]
movsxd rsi, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], esi
jg 0x18009b5d8
xor r9d, r9d
mov dword [rsp + 0x20], 1
mov r8d, edi
mov rcx, rbx
lea edx, [r9 + 0x14]
call fcn.180032ba0
mov esi, eax
jmp 0x18009b606
lea rcx, [rsi + rsi*2]
lea eax, [rsi + 1]
mov dword [rbx + 0xb8], eax
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], reloc.WS2_32.dll_sendto
mov dword [rax + rcx*8 + 4], edi
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], 1
mov qword [rax + rcx*8 + 0x10], r8
test r13d, r13d
jle 0x18009b629
test edi, edi
je 0x18009b629
movzx eax, byte [r12 + 0x1f]
cmp al, 8
jae 0x18009b629
movzx eax, al
mov dword [r12 + rax*4 + 0xc4], edi
inc byte [r12 + 0x1f]
mov rax, qword [rbp + 0x40]
test byte [rax + 4], 0x20
je 0x18009b709
mov rax, qword [rbp + 0x60]
mov rcx, qword [rax + 0x20]
mov rdx, qword [rcx + 8]
mov rcx, r12
call fcn.1800499a0
mov rdi, rax
test rax, rax
jne 0x18009b65b
mov rax, qword [r12]
mov rdi, qword [rax + 0x10]
mov rax, qword [rbx + 0x18]
movsxd rdx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], edx
jg 0x18009b689
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor r8d, r8d
mov rcx, rbx
lea edx, [r9 + 0x52]
call fcn.180032ba0
mov edx, eax
jmp 0x18009b6af
lea rcx, [rdx + rdx*2]
xor r8d, r8d
lea eax, [rdx + 1]
mov dword [rbx + 0xb8], eax
mov rax, qword [rbx + 0x68]
mov qword [rax + rcx*8], 0x52
mov qword [rax + rcx*8 + 8], r8
mov qword [rax + rcx*8 + 0x10], r8
mov rcx, qword [rbx]
cmp byte [rcx + 0x61], 0
je 0x18009b6c7
mov r8, rdi
mov edx, 0xfffffffe
call fcn.180033be0
jmp 0x18009b709
test edx, edx
jns 0x18009b6d3
mov edx, dword [rbx + 0xb8]
dec edx
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
cmp byte [rax + rcx*8 + 1], 0
lea rdx, [rax + rcx*8]
je 0x18009b6fc
mov r9d, 0xfffffffe
mov r8, rdi
mov rcx, rbx
call fcn.180033df0
jmp 0x18009b709
test rdi, rdi
je 0x18009b709
mov qword [rdx + 0x10], rdi
mov byte [rdx + 1], 0xfe
mov edi, dword [rsp + 0x88]
mov eax, edi
movsxd rcx, dword [rbx + 0xb8]
neg eax
mov rax, qword [rbx + 0x18]
mov r8d, dword [rbp + 0x4c]
sbb edx, edx
add edx, 0x9b
cmp dword [rax + 0x3c], ecx
jg 0x18009b745
mov dword [rsp + 0x20], r8d
mov r9d, r14d
mov r8d, edi
mov rcx, rbx
call fcn.180032ba0
jmp 0x18009b777
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
xor edx, edx
mov word [rax + rcx*8 + 2], dx
mov qword [rax + rcx*8 + 0x10], rdx
mov byte [rax + rcx*8 + 1], dl
mov dword [rax + rcx*8 + 4], edi
mov dword [rax + rcx*8 + 8], r14d
mov dword [rax + rcx*8 + 0xc], r8d
mov rcx, qword [rbx]
mov rdx, qword [rbp + 0x40]
cmp byte [rcx + 0x61], 0
je 0x18009b793
mov r8, rdx
mov edx, 0xfffffff8
call fcn.180033be0
jmp 0x18009b7af
mov eax, dword [rbx + 0xb8]
dec eax
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
mov byte [rax + rcx*8 + 1], 0xf8
mov qword [rax + rcx*8 + 0x10], rdx
mov eax, dword [rbx + 0xb8]
test eax, eax
jle 0x18009b7d0
dec eax
movzx r8d, r15b
movsxd rcx, eax
mov rax, qword [rbx + 0x68]
lea rdx, [rcx + rcx*2]
mov word [rax + rdx*8 + 2], r8w
test esi, esi
je 0x18009b803
mov edx, dword [rbx + 0xb8]
jns 0x18009b7df
lea esi, [rdx - 1]
mov rax, qword [rbx]
cmp byte [rax + 0x61], 0
je 0x18009b7f1
lea rax, [0x1803e55e8]
jmp 0x18009b800
movsxd rax, esi
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
xor r15d, r15d
mov rbp, qword [rbp + 0x30]
lea r9, [0x18014e6c8]
test rbp, rbp
jne 0x18009aff0
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret