Function at 0x1407372b0
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.140722760
test eax, eax
jne 0x1407375a6
mov rax, qword [rbx + 0x60]
cmp qword [rbx + 0x58], rax
je 0x140737510
mov rsi, qword [r13 + r15 + 0x2c0]
mov rcx, rbx
mov edi, dword [r15 + 0x7ec]
add rsi, 9
mov rbp, rsi
call fcn.1407226e0
mov rcx, qword [rax + 0xb8]
test rcx, rcx
je 0x140737337
mov eax, dword [rcx + 0x38]
cmp rdi, rax
cmova edi, eax
sub rdi, 9
cmp qword [rbx + 0x90], r12
je 0x140737352
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 0x140737366
cmp rdi, rcx
cmova rdi, rcx
mov rax, qword [rbx + 0x360]
movzx r9d, byte [rax + 0x1c]
test r9b, 0xf
je 0x14073739f
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 0x1407375bf
cmp rax, rdi
cmovb rdi, rax
mov eax, dword [rbx + 0x41c]
and eax, 0x100000
je 0x1407373b0
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 0x1407375c3
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 0x140737510
mov r8d, dword [r15 + 0x7e8]
mov edx, 0xa
mov rcx, rbx
call fcn.14072a7c0
mov edx, dword [rbx + 0x41c]
bt edx, 0x15
jae 0x1407374b0
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.1407231f0
test eax, eax
js 0x1407375c3
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.140724120
test eax, eax
js 0x1407375c3
mov rcx, qword [rsp + 0x80]
add qword [rbx + 0x58], rcx
cmp eax, edi
je 0x140737510
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 0x1407375c3
mov rcx, rbx
call fcn.140722760
test eax, eax
jne 0x140737526
mov rax, qword [rbx + 0x60]
cmp qword [rbx + 0x58], rax
jae 0x140737545
mov rcx, rbx
call fcn.140721ed0
test eax, eax
je 0x1407372e6
mov rcx, rbx
call fcn.14072c3f0
xor eax, eax
jmp 0x1407375e1
lea rcx, [rbx + 0x68]
mov word [rbx + 0x400], 0x119
mov rax, qword [rcx]
test rax, rax
je 0x140737566
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140737566
call qword [rdx + reloc.WS2_32.dll_htonl]
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14073759f
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.1407231f0
test eax, eax
jns 0x14073759f
test byte [rbx + 0x41c], 2
je 0x1407375dc
mov eax, 1
jmp 0x1407375e1
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140723c10
test eax, eax
js 0x1407375c3
mov rcx, rbx
call fcn.14072c3f0
xor eax, eax
jmp 0x1407375e1
mov rax, qword [rbx + 0x68]
lea rcx, [rbx + 0x68]
test rax, rax
je 0x1407375dc
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1407375dc
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