Function at 0x140a6d350
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.140a58800
test eax, eax
jne 0x140a6d646
mov rax, qword [rbx + 0x60]
cmp qword [rbx + 0x58], rax
je 0x140a6d5b0
mov rsi, qword [r13 + r15 + 0x2c0]
mov rcx, rbx
mov edi, dword [r15 + 0x7ec]
add rsi, 9
mov rbp, rsi
call fcn.140a58780
mov rcx, qword [rax + 0xb8]
test rcx, rcx
je 0x140a6d3d7
mov eax, dword [rcx + 0x38]
cmp rdi, rax
cmova edi, eax
sub rdi, 9
cmp qword [rbx + 0x90], r12
je 0x140a6d3f2
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 0x140a6d406
cmp rdi, rcx
cmova rdi, rcx
mov rax, qword [rbx + 0x360]
movzx r9d, byte [rax + 0x1c]
test r9b, 0xf
je 0x140a6d43f
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 0x140a6d65f
cmp rax, rdi
cmovb rdi, rax
mov eax, dword [rbx + 0x41c]
and eax, 0x100000
je 0x140a6d450
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 0x140a6d663
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 0x140a6d5b0
mov r8d, dword [r15 + 0x7e8]
mov edx, 0xa
mov rcx, rbx
call fcn.140a60860
mov edx, dword [rbx + 0x41c]
bt edx, 0x15
jae 0x140a6d550
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.140a59290
test eax, eax
js 0x140a6d663
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.140a5a1c0
test eax, eax
js 0x140a6d663
mov rcx, qword [rsp + 0x80]
add qword [rbx + 0x58], rcx
cmp eax, edi
je 0x140a6d5b0
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 0x140a6d663
mov rcx, rbx
call fcn.140a58800
test eax, eax
jne 0x140a6d5c6
mov rax, qword [rbx + 0x60]
cmp qword [rbx + 0x58], rax
jae 0x140a6d5e5
mov rcx, rbx
call fcn.140a57f70
test eax, eax
je 0x140a6d386
mov rcx, rbx
call fcn.140a62490
xor eax, eax
jmp 0x140a6d681
lea rcx, [rbx + 0x68]
mov word [rbx + 0x400], 0x119
mov rax, qword [rcx]
test rax, rax
je 0x140a6d606
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140a6d606
call qword [rdx + reloc.WS2_32.dll_htonl]
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140a6d63f
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.140a59290
test eax, eax
jns 0x140a6d63f
test byte [rbx + 0x41c], 2
je 0x140a6d67c
mov eax, 1
jmp 0x140a6d681
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140a59cb0
test eax, eax
js 0x140a6d663
mov rcx, rbx
call fcn.140a62490
xor eax, eax
jmp 0x140a6d681
mov rax, qword [rbx + 0x68]
lea rcx, [rbx + 0x68]
test rax, rax
je 0x140a6d67c
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140a6d67c
call qword [rdx + reloc.WS2_32.dll_htonl]
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