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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbx, qword [rcx + 0x1290]
xor r9d, r9d
mov rdi, qword [rcx]
add rbx, 0x3c
movsxd r8, edx
imul rbp, r8, 0x928
imul r8, r8, 0x624
add rbp, rcx
mov dword [rsp + 0x78], r9d
mov qword [rsp + 0x80], rdi
movsxd rax, dword [rbp + 0x38]
mov rsi, qword [rbp + 0x40]
add rbx, r8
mov dword [rbp + 0x48], r9d
lea r12, [rax + rax*4]
shl r12, 4
add r12, rsi
test edx, edx
jne 0x1401166a9
mov r13d, dword [rcx + 8]
mov edx, dword [rcx + 0x10]
lea ecx, [r9 + 0x40]
call fcn.14010a7d0
mov r15d, eax
jmp 0x1401166b0
mov r13d, dword [rcx + 0x10]
mov r15d, r9d
mov ecx, dword [rbx + 0xcc]
mov edx, r13d
call fcn.14010c2e0
mov ecx, reloc.WS2_32.dll_recv
mov edx, r13d
cmp eax, ecx
cmovg eax, ecx
mov ecx, eax
call fcn.14010a7d0
mov r14d, eax
cmp rsi, r12
jae 0x1401167dd
inc rsi
movsx ecx, word [rsi + 7]
cmp ecx, r15d
jl 0x1401167cc
cmp qword [rsi + 0x27], 0
je 0x140116703
add ecx, ecx
lea eax, [r15 + r15*2]
cmp ecx, eax
jl 0x1401167cc
mov r9d, dword [rbp + 0x48]
xor r8d, r8d
test r9d, r9d
jle 0x140116749
movsx r10d, word [rsi + 1]
mov rdx, qword [rbp + 0x50]
nop dword [rax + rax]
movsx eax, word [rdx]
mov ecx, r10d
sub ecx, eax
jns 0x14011672c
neg ecx
cmp ecx, r14d
jge 0x14011673d
movzx eax, byte [rsi]
cmp byte [rdx + 0xd], al
je 0x140116859
inc r8d
add rdx, 0x48
cmp r8d, r9d
jl 0x140116720
movsx r8d, byte [rsi]
lea rax, [rsp + 0x70]
movsx edx, word [rsi + 1]
lea rcx, [rbp + 0x38]
mov r9, rdi
mov qword [rsp + 0x20], rax
call fcn.140112710
mov dword [rsp + 0x78], eax
test eax, eax
jne 0x140116945
mov rdi, qword [rsp + 0x70]
lea rbx, [rsi - 1]
xor eax, eax
mov edx, r13d
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x20], rax
mov qword [rdi + 0x28], rax
mov qword [rdi + 0x30], rax
mov qword [rdi + 0x38], rbx
mov qword [rdi + 0x40], rbx
movzx eax, byte [rsi]
mov byte [rdi + 0xd], al
movzx eax, word [rsi + 1]
mov word [rdi], ax
movsx ecx, word [rsi + 1]
call fcn.14010c2e0
mov dword [rdi + 4], eax
mov dword [rdi + 8], eax
mov rdi, qword [rsp + 0x80]
mov qword [rsi + 0x17], rbx
add rsi, 0x50
lea rax, [rsi - 1]
cmp rax, r12
jb 0x1401166e1
mov rdx, qword [rbp + 0x50]
movsxd rax, dword [rbp + 0x48]
lea rcx, [rax + rax*8]
lea rbp, [rdx + rcx*8]
mov rcx, rdx
cmp rdx, rbp
jae 0x140116941
nop dword [rax]
mov rax, qword [rcx + 0x38]
test rax, rax
je 0x14011681e
nop dword [rax]
mov qword [rax + 0x10], rcx
mov rax, qword [rax + 0x18]
cmp rax, qword [rcx + 0x38]
jne 0x140116810
add rcx, 0x48
cmp rcx, rbp
jb 0x140116800
cmp rdx, rbp
jae 0x140116941
add rdx, 0xc
mov r14d, 1
xor r15d, r15d
nop dword [rax]
mov r8, qword [rdx + 0x2c]
mov edi, r15d
mov esi, r15d
nop word [rax + rax]
test byte [r8], r14b
je 0x140116876
inc edi
jmp 0x140116878
mov rax, qword [rdx + 0x38]
lea rcx, [rsi - 1]
mov qword [rsi + 0x17], rax
mov rax, qword [rdx + 0x40]
mov qword [rax + 0x18], rcx
mov qword [rdx + 0x40], rcx
jmp 0x1401167cc
inc esi
mov rcx, qword [r8 + 0x28]
test rcx, rcx
je 0x140116899
mov r9, qword [rcx + 0x10]
test r9, r9
je 0x140116899
lea rax, [rdx - 0xc]
cmp r9, rax
je 0x140116899
movzx ebx, r14b
jmp 0x14011689b
xor bl, bl
mov r10, qword [r8 + 0x20]
test r10, r10
je 0x1401168aa
cmp qword [r10 + 0x10], r15
jne 0x1401168ae
test bl, bl
je 0x1401168ff
mov rax, qword [rdx + 0x14]
test bl, bl
je 0x1401168bd
mov rax, qword [rdx + 0x1c]
mov r10, rcx
test rax, rax
je 0x1401168e9
movsx r9d, word [rdx - 0xc]
movsx ecx, word [rax]
sub r9d, ecx
jns 0x1401168d2
neg r9d
movsx ecx, word [r10 + 2]
movsx r11d, word [r8 + 2]
sub r11d, ecx
jns 0x1401168e4
neg r11d
cmp r11d, r9d
jge 0x1401168ed
mov rax, qword [r10 + 0x10]
test bl, bl
je 0x1401168fb
mov qword [rdx + 0x1c], rax
or byte [rax + 0xc], 2
jmp 0x1401168ff
mov qword [rdx + 0x14], rax
mov r8, qword [r8 + 0x18]
cmp r8, qword [rdx + 0x2c]
jne 0x140116850
mov byte [rdx], r15b
test edi, edi
jle 0x140116920
cmp edi, esi
movzx eax, r15b
cmovge eax, r14d
mov byte [rdx], al
cmp qword [rdx + 0x1c], r15
je 0x140116930
cmp qword [rdx + 0x14], r15
je 0x140116930
mov qword [rdx + 0x1c], r15
add rdx, 0x48
lea rax, [rdx - 0xc]
cmp rax, rbp
jb 0x140116840
mov eax, dword [rsp + 0x78]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret