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

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov rbp, qword [rcx + 0xf0]
xor r11d, r11d
mov r12d, dword [rcx + 0xa4]
xor sil, sil
mov r13d, dword [rcx + 0xa8]
mov r14, rdx
mov dword [rax + 8], r11d
mov rbx, rcx
mov qword [rax + 0x18], r11
mov dword [rcx + 8], r11d
mov rdi, qword [rbp + 0x328]
cmp qword [rcx + 0xf8], rdi
je 0x14013dab8
mov qword [rcx + 0xf8], rdi
mov sil, 1
mov qword [rsp + 0x88], r15
cmp byte [rcx + 0xc], r11b
jne 0x14013db99
mov rax, qword [rbp + 0x320]
cmp dword [rax + 0x1118], r11d
je 0x14013db99
mov r15, qword [rcx + 0x288]
lea r9, [rsp + 0x90]
mov rcx, qword [rbp + 8]
lea rdx, [rsp + 0x80]
xor r8d, r8d
mov qword [rsp + 0x20], r11
mov rax, qword [rcx + 0x2e0]
call qword [rax + 0x88]
mov dword [rbx + 8], eax
test eax, eax
jne 0x14013de33
mov r9, qword [rsp + 0x90]
lea rcx, [rdi + 0x238]
mov r8d, dword [rsp + 0x80]
mov edx, dword [rdi + 0x228]
call qword [r15 + 0x18]
test al, al
je 0x14013db5f
mov r9, qword [rsp + 0x90]
mov rdx, rdi
mov r8d, dword [rsp + 0x80]
mov rcx, qword [rbp + 0x320]
call qword [r15 + reloc.WS2_32.dll_htonl]
mov sil, 1
mov rax, qword [rdi + 0x240]
xor r11d, r11d
mov qword [rbx + 0x68], rax
mov byte [rbx + 0x61], 0
mov eax, dword [rdi + 0x228]
mov dword [rbx + 0x90], eax
mov eax, dword [rsp + 0x80]
mov dword [rbx + 0x94], eax
mov rax, qword [rsp + 0x90]
mov qword [rbx + 0x98], rax
mov rax, qword [rbp + 8]
mov r15d, dword [rbx + 0x5c]
mov rcx, qword [rax + 0x80]
movzx eax, word [rcx + 0x1a]
shl eax, 0x10
cmp r15d, eax
je 0x14013dbbd
mov dword [rbx + 0x5c], eax
mov sil, 1
mov r15d, eax
movzx eax, byte [rbx + 0x10]
and al, 1
mov byte [rbx + 0x100], al
mov rax, qword [r14]
cmp rax, qword [rbx + 0x14]
jne 0x14013dbdc
mov rax, qword [r14 + 8]
cmp rax, qword [rbx + 0x1c]
je 0x14013dc15
movups xmm0, xmmword [r14]
mov sil, 1
movups xmmword [rbx + 0x14], xmm0
mov qword [rbx + 0x24], 0
movups xmm0, xmmword [r14]
movups xmmword [rbx + 0x2c], xmm0
movsd xmm1, qword [r14 + 0x10]
movsd qword [rbx + 0x3c], xmm1
mov dword [rbx + 0x50], 0x10000
mov qword [rbx + 0x44], 0x10000
mov dword [rbx + 0x4c], r11d
mov r8d, dword [rbx + 0x10]
mov ecx, r8d
movzx edx, byte [rbx + 0x102]
and ecx, 2
cmp dl, cl
je 0x14013dc3a
shr r8d, 1
and r8b, 1
mov byte [rbx + 0x102], r8b
jmp 0x14013dc47
movzx r8d, dl
test sil, sil
je 0x14013de33
mov r10d, dword [rbx + 0xa0]
mov eax, 0x3e8
test r10d, r10d
mov esi, 0x7fffffff
movabs r14, 0x4b00000000
cmove r10d, eax
mov eax, 0x40000
cmp r15d, eax
cmovl r15d, eax
mov eax, 0x3e80000
cdq
idiv r10d
movsxd rdi, eax
mov rax, qword [rbp + 0x328]
mov ecx, dword [rax + 0x194]
shl ecx, 0x10
mov dword [rbx + 0x124], ecx
test ecx, ecx
jg 0x14013dcdb
mov r9d, edi
mov rcx, rdi
sar r9d, 0x1f
neg rcx
and r9d, 0xfffffffe
test edi, edi
cmovns rcx, rdi
test rcx, rcx
je 0x14013dcc7
mov rax, rcx
xor edx, edx
shr rax, 1
add rax, r14
div rcx
jmp 0x14013dcca
mov rax, rsi
mov ecx, eax
neg ecx
cmp r9d, 0xffffffff
cmovge ecx, eax
mov dword [rbx + 0x124], ecx
mov edx, r15d
test r12d, r12d
jle 0x14013dd1a
shl r10d, 0x10
mov ecx, r10d
call fcn.1400ff1d0
cmp r12d, eax
mov dword [rbx + 0x12c], r11d
cmovle r12d, eax
test r12d, r12d
je 0x14013dd41
cmp edi, 0x28f
jl 0x14013dd41
mov eax, r12d
cdq
sub eax, edx
sar eax, 1
mov dword [rbx + 0x12c], eax
jmp 0x14013dd41
lea rax, [rbx + 0x104]
mov qword [rsp + 0x30], rax
lea r9, [rbx + 0x12c]
mov byte [rsp + 0x28], r8b
mov r8d, ecx
mov ecx, edi
mov dword [rsp + 0x20], r11d
call fcn.14013d7d0
mov rax, qword [rbp + 0x328]
mov eax, dword [rax + 0x190]
shl eax, 0x10
test eax, eax
jle 0x14013dd86
add eax, eax
cmp dword [rbx + 0x124], eax
jle 0x14013dd86
mov r9d, edi
mov rcx, rdi
sar r9d, 0x1f
neg rcx
and r9d, 0xfffffffe
test edi, edi
cmovns rcx, rdi
test rcx, rcx
je 0x14013ddbd
mov rax, rcx
shr rax, 1
add rax, r14
jmp 0x14013ddb5
mov r9d, edi
mov rcx, rdi
sar r9d, 0x1f
neg rcx
and r9d, 0xfffffffe
test edi, edi
cmovns rcx, rdi
test rcx, rcx
je 0x14013ddbd
mov rax, rcx
movabs rdx, 0x6e00000000
shr rax, 1
add rax, rdx
xor edx, edx
div rcx
mov rsi, rax
lea rax, [rbx + 0x104]
mov r8d, esi
mov qword [rsp + 0x30], rax
neg r8d
cmp r9d, 0xffffffff
mov edx, r15d
lea r9, [rbx + 0x130]
mov ecx, edi
cmovge r8d, esi
mov dword [rbx + 0x128], r8d
movzx eax, byte [rbx + 0x102]
mov byte [rsp + 0x28], al
mov dword [rsp + 0x20], r13d
call fcn.14013d7d0
cmp dword [rbx + 0x12c], 0
jne 0x14013de15
cmp dword [rbx + 0x130], 0
jne 0x14013de15
xor al, al
jmp 0x14013de17
mov al, 1
mov byte [rbx + 0x101], al
lea rcx, [rbx + 0x138]
mov rdx, rbx
mov byte [rbx + 0x134], 0
call fcn.14013d1d0
mov r15, qword [rsp + 0x88]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret