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

Disassembly:
push rsi
push rdi
push r13
push r14
sub rsp, 0x38
mov rsi, qword [rcx + 0xa8]
mov r14, rcx
mov r13, qword [rcx]
mov rdi, qword [rcx + 0x10]
test rsi, rsi
je 0x18008b16b
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], r12
xor r12d, r12d
mov qword [rsp + 0x30], r15
nop dword [rax]
movsxd r8, dword [rsi + 0x10]
xor edx, edx
mov rax, qword [r13 + 0x20]
mov r9, r8
mov ebx, dword [rsi + 0x14]
mov rcx, r14
shl r9, 5
mov dword [rsp + 0x20], WSAStartup
mov r9, qword [r9 + rax + 0x18]
mov r9, qword [r9 + 0x68]
call fcn.18008a440
mov rax, qword [rsi + 8]
lea r8d, [rbx - 1]
movsxd rdx, dword [rdi + 0x90]
mov rbp, qword [rax]
cmp dword [rdi + 0x94], edx
jg 0x18008aef2
mov r9d, r8d
mov dword [rsp + 0x20], r12d
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 0x75]
call fcn.1800419d0
mov edx, eax
jmp 0x18008af1d
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rdi + 0x90], eax
mov rax, qword [rdi + 0x88]
mov qword [rax + rcx*8], 0x75
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r12
xor r9d, r9d
mov r8, rbp
mov rcx, rdi
call fcn.1800429d0
mov eax, dword [rdi + 0x90]
add eax, 0xc
cmp eax, dword [rdi + 0x94]
jle 0x18008af4c
mov rcx, rdi
call fcn.180041890
test eax, eax
jne 0x18008b157
movsxd rax, dword [rdi + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
mov qword [rax + rcx*8], 0x4b
mov qword [rax + rcx*8 + 8], r12
mov qword [rax + rcx*8 + 0x10], r12
lea rax, [rax + rcx*8]
mov byte [rax + 0x18], 0x24
mov dword [rax + 0x1c], r12d
mov dword [rax + 0x20], 0xa
mov ecx, dword [rdi + 0x90]
add ecx, 0xa
mov dword [rax + 0x20], ecx
mov dword [rax + 0x24], r12d
mov byte [rax + 0x19], r12b
mov qword [rax + 0x28], r12
mov word [rax + 0x1a], r12w
mov qword [rax + 0x30], 0x5e
mov qword [rax + 0x38], r12
mov qword [rax + 0x40], r12
mov byte [rax + 0x48], 0x34
mov dword [rax + 0x4c], r12d
mov dword [rax + 0x50], 9
mov ecx, dword [rdi + 0x90]
add ecx, 9
mov dword [rax + 0x50], ecx
mov dword [rax + 0x54], r12d
mov byte [rax + 0x49], r12b
mov qword [rax + 0x58], r12
mov word [rax + 0x4a], r12w
mov qword [rax + 0x60], 0x87
mov qword [rax + 0x68], r12
mov qword [rax + 0x70], r12
mov qword [rax + 0x78], 0x5e
mov qword [rax + 0x80], 1
mov qword [rax + 0x88], r12
mov qword [rax + 0x90], 0x56
mov qword [rax + 0x98], r12
mov qword [rax + 0xa0], r12
mov qword [rax + 0xa8], 0x50
mov qword [rax + 0xb0], r12
mov qword [rax + 0xb8], r12
mov byte [rax + 0xc0], 9
mov dword [rax + 0xc4], r12d
mov dword [rax + 0xc8], 0xb
mov ecx, dword [rdi + 0x90]
add ecx, 0xb
mov dword [rax + 0xc8], ecx
mov dword [rax + 0xcc], r12d
mov byte [rax + 0xc1], r12b
mov qword [rax + 0xd0], r12
mov word [rax + 0xc2], r12w
mov byte [rax + 0xd8], 0x27
mov dword [rax + 0xdc], r12d
mov dword [rax + 0xe0], 2
mov ecx, dword [rdi + 0x90]
add ecx, 2
mov dword [rax + 0xe0], ecx
mov dword [rax + 0xe4], r12d
mov byte [rax + 0xd9], r12b
mov qword [rax + 0xe8], r12
mov word [rax + 0xda], r12w
mov qword [rax + 0xf0], 0x47
mov qword [rax + 0xf8], r12
mov qword [rax + 0x100], r12
mov qword [rax + 0x108], 0x7a
mov qword [rax + 0x110], r12
mov qword [rax + 0x118], r12
add dword [rdi + 0x90], 0xc
test rax, rax
je 0x18008b157
lea ecx, [rbx - 1]
mov dword [rax + 8], ebx
mov dword [rax + 0x4c], ecx
lea edx, [rbx + 2]
lea ecx, [rbx + 1]
mov dword [rax + 0xc], edx
mov dword [rax + 0x68], ecx
mov dword [rax + 0x3c], ebx
mov dword [rax + 0x54], ebx
mov word [rax + 0x4a], 0x10
mov dword [rax + 0x84], ebx
mov dword [rax + 0x94], ebx
mov dword [rax + 0xb0], edx
mov dword [rax + 0xac], ebx
mov dword [rax + 0xf8], ebx
cmp dword [r14 + 0x34], r12d
jne 0x18008b14b
mov dword [r14 + 0x34], 1
mov rsi, qword [rsi]
test rsi, rsi
jne 0x18008ae90
mov r12, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov r15, qword [rsp + 0x30]
add rsp, 0x38
pop r14
pop r13
pop rdi
pop rsi
ret