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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r10, qword [rcx]
xor ebp, ebp
mov rbx, qword [rcx + 0x10]
mov r11, r8
mov rdi, qword [rsp + 0x80]
mov rsi, qword [rcx + 8]
mov r15, qword [r10]
movzx eax, byte [rbx + 0x10]
mov r14, qword [rdi + 0x20]
movsxd r12, dword [rdi]
imul r13, rax, 0x70
mov rax, qword [rsp + 0x90]
add r13, qword [r10 + 8]
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x80], r14
mov dword [rax], ebp
mov qword [rbx], rdx
mov rcx, qword [rdi + 8]
test r12d, r12d
jle 0x1402d3a8f
mov r10, qword [rsp + 0x98]
add rcx, 5
mov r8d, r12d
movsxd rax, dword [rcx + 3]
imul rdx, rax, 0x38
add rdx, qword [rsi + 0x20]
mov byte [rcx], bpl
mov rax, qword [rdx + 0x28]
and rax, r11
cmp rax, qword [rdx + 0x28]
jne 0x1402d3a85
test word [rdx + 0x14], r9w
jne 0x1402d3a85
test r10, r10
jne 0x1402d3a82
mov al, byte [rdx + 0x17]
sub al, 0x49
cmp al, 1
jbe 0x1402d3a85
mov byte [rcx], 1
add rcx, 0xc
sub r8, 1
jne 0x1402d3a51
lea rbp, [r12*8]
xor edx, edx
mov r8, rbp
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov qword [rdi + 0x48], 0x19
mov qword [rdi + 0x30], rdx
movabs rax, 0x546d42aea2879f2e
mov dword [rdi + 0x28], edx
mov dword [rdi + 0x3c], edx
mov qword [rdi + 0x40], rax
mov dword [rdi + 0x50], edx
mov rax, qword [r13 + 0x60]
mov qword [rdi + 0x58], rax
mov dword [rdi + 0x78], edx
mov rax, qword [r13 + 0x28]
mov rcx, qword [rax + 0x50]
test rcx, rcx
je 0x1402d3af2
mov rax, qword [r15]
cmp qword [rcx], rax
je 0x1402d3af2
mov rcx, qword [rcx + 0x28]
test rcx, rcx
jne 0x1402d3ae4
mov r14, qword [rcx + 0x10]
mov rdx, rdi
mov rax, qword [r15]
mov rcx, r14
inc dword [rax + 0x48]
mov rax, qword [r14]
call qword [rax + 0x18]
mov esi, eax
mov rax, qword [r15]
dec dword [rax + 0x48]
test esi, esi
je 0x1402d3b4a
cmp esi, 0x13
je 0x1402d3b4a
cmp esi, 7
jne 0x1402d3b28
mov rcx, qword [r15]
call fcn.1402a59c8
jmp 0x1402d3b4a
mov r8, qword [r14 + 0x10]
test r8, r8
jne 0x1402d3b3b
mov ecx, esi
call fcn.14028cc00
mov r8, rax
lea rdx, [0x1403de4f0]
mov rcx, r15
call fcn.14028cca4
mov rcx, qword [r14 + 0x10]
call fcn.14022a248
xor eax, eax
mov qword [r14 + 0x10], rax
test esi, esi
je 0x1402d3b68
cmp esi, 0x13
cmove esi, eax
jmp 0x1402d3ec5
mov rcx, qword [rbx + 0x48]
mov r8, rbp
xor edx, edx
or esi, 0xffffffff
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea r8d, [rsi + 0x21]
lea rcx, [rbx + 0x18]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rdi + 8]
xor r9d, r9d
mov r10d, r9d
test r12d, r12d
jle 0x1402d3cbd
mov rdx, qword [rsp + 0x80]
lea rbp, [rax + 5]
mov rax, r12
mov r11d, r9d
movsxd rcx, dword [rdx + r11*8]
lea r8d, [rcx - 1]
test r8d, r8d
js 0x1402d3caa
cmp r8d, r12d
jge 0x1402d3dcc
movsxd rax, dword [rbp + 3]
test eax, eax
js 0x1402d3dcc
mov rdx, qword [rsp + 0x68]
cmp eax, dword [rdx + 0x14]
jge 0x1402d3dcc
mov r9, rcx
xor edx, edx
mov rcx, qword [rbx + 0x48]
cmp qword [rcx + r9*8 - 8], rdx
jne 0x1402d3dcc
cmp byte [rbp], dl
je 0x1402d3dcc
imul rdx, rax, 0x38
mov rax, qword [rsp + 0x68]
add rdx, qword [rax + 0x20]
mov rax, qword [rdx + 0x28]
or qword [rbx], rax
mov eax, r8d
cmp r8d, esi
mov qword [rcx + r9*8 - 8], rdx
cmovle eax, esi
xor r9d, r9d
mov esi, eax
mov rax, qword [rsp + 0x80]
cmp byte [rax + r11*8 + 4], r9b
je 0x1402d3c5e
cmp r10d, 0x10
jge 0x1402d3c54
movzx eax, word [rsp + 0x88]
bt eax, r10d
jb 0x1402d3c54
movzx eax, word [rbx + 0x22]
bts eax, r8d
mov word [rbx + 0x22], ax
cmp byte [rdx + 0x17], 0x4a
jne 0x1402d3c5e
or dword [rbx + 0x1c], 2
mov ecx, r10d
mov eax, 1
shl eax, cl
mov ecx, r9d
cmp r10d, 0x1f
cmovle ecx, eax
test dword [rdi + 0x78], ecx
je 0x1402d3d1a
mov eax, dword [rbx + 0x30]
bts eax, r8d
mov dword [rbx + 0x30], eax
mov rcx, qword [rsp + 0x90]
mov al, byte [rdx + 0x17]
sub al, 0x49
cmp al, 1
ja 0x1402d3c9f
cmp dword [rcx], r9d
jne 0x1402d3d3f
mov rdx, qword [rsp + 0x80]
mov rax, r12
inc r10d
inc r11
add rbp, 0xc
cmp r11, rax
jl 0x1402d3bad
mov r12d, 1
mov ecx, r9d
lea eax, [r12 + rsi]
mov word [rbx + 0x3c], ax
test esi, esi
js 0x1402d3cea
mov rax, qword [rbx + 0x48]
cmp qword [rax], r9
je 0x1402d3dec
add ecx, r12d
add rax, 8
cmp ecx, esi
jle 0x1402d3cd6
mov eax, dword [rdi + 0x28]
mov dword [rbx + 0x18], eax
mov eax, dword [rbx + 0x1c]
xor eax, dword [rdi + 0x38]
and eax, r12d
xor dword [rbx + 0x1c], eax
mov rax, qword [rdi + 0x30]
mov dword [rdi + 0x38], r9d
mov qword [rbx + 0x28], rax
cmp dword [rdi + 0x3c], r9d
je 0x1402d3e0a
mov eax, dword [rdi + 0x10]
jmp 0x1402d3e0d
test byte [rdx + 0x14], 1
je 0x1402d3c85
mov rcx, qword [rsp + 0x90]
and dword [rdi + 0x50], 0xfffffffe
mov dword [rdi + 0x3c], r9d
mov dword [rcx], 1
jmp 0x1402d3c8d
cmp dword [rdi + 0x38], r9d
je 0x1402d3db7
mov rbx, qword [rdi + 0x30]
test rbx, rbx
je 0x1402d3daf
cmp dword [reloc.WS2_32.dll_accept], r9d
je 0x1402d3da3
mov rcx, qword [0x14041ff20]
test rcx, rcx
je 0x1402d3d69
call qword [0x14041a7c0]
mov rcx, rbx
call qword [0x14041a778]
dec qword [0x14041fea8]
mov rcx, rbx
movsxd rdx, eax
sub qword [0x14041fe60], rdx
call qword [0x14041a768]
mov rcx, qword [0x14041ff20]
xor r9d, r9d
test rcx, rcx
je 0x1402d3daf
call qword [0x14041a7d0]
jmp 0x1402d3dac
mov rcx, rbx
call qword [0x14041a768]
xor r9d, r9d
mov qword [rdi + 0x30], r9
mov dword [rdi + 0x38], r9d
mov rax, qword [rsp + 0x98]
mov dword [rax], 1
xor eax, eax
jmp 0x1402d3ec7
mov r8, qword [r13 + 0x28]
lea rdx, str._s.xBestIndex_malfunction
mov rcx, r15
mov r8, qword [r8]
call fcn.14028cca4
mov eax, 1
jmp 0x1402d3ec7
mov r8, qword [r13 + 0x28]
lea rdx, str._s.xBestIndex_malfunction
mov rcx, r15
mov r8, qword [r8]
call fcn.14028cca4
mov eax, r12d
jmp 0x1402d3ec7
mov eax, r9d
mov byte [rbx + 0x20], al
mov word [rbx + 0x12], r9w
movsd xmm0, qword [rdi + 0x40]
call fcn.1402a4f80
mov word [rbx + 0x14], ax
mov rcx, qword [rdi + 0x48]
call fcn.1402a4eb0
mov edx, dword [rbx + 0x38]
xor ebp, ebp
mov word [rbx + 0x16], ax
mov eax, edx
bts edx, 0xc
btr eax, 0xc
test byte [rdi + 0x50], r12b
cmove edx, eax
mov dword [rbx + 0x38], edx
mov rdx, rbx
mov rcx, qword [rsp + 0x60]
call fcn.1402d41dc
mov esi, eax
test byte [rbx + 0x1c], r12b
je 0x1402d3ec5
mov rdi, qword [rbx + 0x28]
test rdi, rdi
je 0x1402d3ec1
cmp dword [reloc.WS2_32.dll_accept], ebp
je 0x1402d3eb8
mov rcx, qword [0x14041ff20]
test rcx, rcx
je 0x1402d3e81
call qword [0x14041a7c0]
mov rcx, rdi
call qword [0x14041a778]
sub qword [0x14041fea8], r12
mov rcx, rdi
movsxd rdx, eax
sub qword [0x14041fe60], rdx
call qword [0x14041a768]
mov rcx, qword [0x14041ff20]
test rcx, rcx
je 0x1402d3ec1
call qword [0x14041a7d0]
jmp 0x1402d3ec1
mov rcx, rdi
call qword [0x14041a768]
and dword [rbx + 0x1c], 0xfffffffe
mov eax, esi
mov rbx, qword [rsp + 0x70]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret