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

Disassembly:
mov r11, rsp
push rbx
push r12
push r13
push r15
sub rsp, 0x58
movsx rax, byte [rcx + 0x435]
mov rbx, rcx
mov r15, qword [rcx]
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
imul r13, rax, 0x138
mov qword [r11 + 0x20], rdi
xor r12d, r12d
mov qword [r11 - 0x28], r14
mov rcx, rbx
call fcn.180023f70
test eax, eax
jne 0x18002f2b6
mov rax, qword [rbx + 0x60]
cmp qword [rbx + 0x58], rax
je 0x18002f220
mov rsi, qword [r13 + r15 + 0x2c0]
mov rcx, rbx
mov edi, dword [r15 + 0x7ec]
add rsi, 9
mov rbp, rsi
call fcn.180023ef0
mov rcx, qword [rax + 0xb8]
test rcx, rcx
je 0x18002f047
mov eax, dword [rcx + 0x38]
cmp rdi, rax
cmova edi, eax
sub rdi, 9
cmp qword [rbx + 0x90], r12
je 0x18002f062
mov rax, qword [rbx + 0x98]
cmp rdi, rax
cmova rdi, rax
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + 0x30]
test rcx, rcx
je 0x18002f076
cmp rdi, rcx
cmova rdi, rcx
mov rax, qword [rbx + 0x360]
movzx r9d, byte [rax + 0x1c]
test r9b, 0xf
je 0x18002f0af
mov rax, qword [rax + 0x10]
and r9d, 0xf
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [rax + r9*8 - 8]
mov eax, eax
test rax, rax
je 0x18002f2cf
cmp rax, rdi
cmovb rdi, rax
mov eax, dword [rbx + 0x41c]
and eax, 0x100000
je 0x18002f0c0
lea rbp, [rsi + 0xa]
mov rcx, qword [rbx + 0x68]
lea r14, [rdi - 0x8a]
test eax, eax
mov qword [rsp + 0x80], r12
mov r8, rbp
lea rdx, [rsp + 0x80]
cmove r14, rdi
mov rax, qword [rcx + 8]
mov r9, r14
call qword [rax + 0x18]
test eax, eax
js 0x18002f2d3
mov rax, qword [rsp + 0x80]
mov edi, ebp
sub edi, esi
add edi, eax
test dword [rbx + 0x41c], 0x100000
cmovne edi, eax
test edi, edi
je 0x18002f220
mov r8d, dword [r15 + 0x7e8]
mov edx, 0xa
mov rcx, rbx
call fcn.1800321b0
mov edx, dword [rbx + 0x41c]
bt edx, 0x15
jae 0x18002f1c0
mov r9, qword [rbx + 0x3d8]
lea eax, [r14 + 0x80]
mov dword [rsp + 0x3c], eax
mov ecx, r12d
mov qword [rsp + 0x30], rbp
mov r8d, reloc.WS2_32.dll_gethostbyname
mov dword [rsp + 0x38], edi
mov eax, edi
add rax, qword [rbx + 0x58]
cmp rax, qword [rbx + 0x60]
movsx rax, byte [rbx + 0x436]
sete cl
mov qword [rsp + 0x28], r12
imul r10, rax, 0x38
mov rax, qword [rbx + 8]
shr edx, 0x14
and edx, 1
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x44], edx
mov rdx, rbx
mov rcx, qword [rax + 0x248]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rcx, qword [r10 + rcx + 8]
call fcn.180024a20
test eax, eax
js 0x18002f2d3
mov edi, dword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov r8, qword [rsp + 0x80]
mov r9d, 3
add r8, qword [rbx + 0x58]
mov eax, 7
cmp r8, qword [rbx + 0x60]
mov rdx, rsi
mov r8d, edi
mov rcx, rbx
cmove r9d, eax
call fcn.180025d80
test eax, eax
js 0x18002f2d3
mov rcx, qword [rsp + 0x80]
add qword [rbx + 0x58], rcx
cmp eax, edi
je 0x18002f220
mov rcx, qword [rbx + 0x68]
sub eax, edi
movsxd rdx, eax
mov r8, qword [rcx + 8]
call qword [r8 + reloc.WS2_32.dll_recv]
cmp rax, 0xffffffffffffffff
je 0x18002f2d3
mov rcx, rbx
call fcn.180023f70
test eax, eax
jne 0x18002f236
mov rax, qword [rbx + 0x60]
cmp qword [rbx + 0x58], rax
jae 0x18002f255
mov rcx, rbx
call fcn.180025820
test eax, eax
je 0x18002eff6
mov rcx, rbx
call fcn.180033de0
xor eax, eax
jmp 0x18002f2f1
lea rcx, [rbx + 0x68]
mov word [rbx + 0x400], 0x119
mov rax, qword [rcx]
test rax, rax
je 0x18002f276
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x18002f276
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x18002f2af
mov r9, qword [rbx + 0x3d8]
mov r8d, reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x28], r12
mov rdx, rbx
mov qword [rsp + 0x20], r12
call fcn.180024a20
test eax, eax
jns 0x18002f2af
test byte [rbx + 0x41c], 2
je 0x18002f2ec
mov eax, 1
jmp 0x18002f2f1
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.180025870
test eax, eax
js 0x18002f2d3
mov rcx, rbx
call fcn.180033de0
xor eax, eax
jmp 0x18002f2f1
mov rax, qword [rbx + 0x68]
lea rcx, [rbx + 0x68]
test rax, rax
je 0x18002f2ec
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x18002f2ec
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
mov eax, 0xffffffff
mov r14, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x88]
add rsp, 0x58
pop r15
pop r13
pop r12
pop rbx
ret