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

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x50
mov rbx, qword [0x1407065c0]
xor r14d, r14d
mov qword [rsp + 0x78], rbp
mov edi, r14d
xor bpl, bpl
mov qword [rsp + 0x88], r15
movaps xmmword [rsp + 0x40], xmm6
mov eax, dword [rbx + 0x1ed8]
sub eax, 1
js 0x1400427e0
mov r8, qword [rbx + 0x1ee0]
movsxd rdx, eax
add r8, 8
lea rcx, [rdx + rdx*2]
shl rcx, 4
add r8, rcx
nop
mov r9, qword [r8]
test r9, r9
je 0x1400427d6
test dword [r9 + 0xc], 0x8000000
jne 0x14004285d
sub r8, 0x30
sub rdx, 1
jns 0x1400427c0
mov r9, r14
xorps xmm6, xmm6
cmp qword [rbx + 0x2090], rdi
je 0x140042832
cmp qword [rbx + 0x2088], rdi
jne 0x140042832
comiss xmm6, dword [rbx + 0x20d4]
movss xmm1, dword [rbx + 0x20a4]
movss xmm0, dword [rbx + 0x18]
mulss xmm0, dword [0x140534034]
subss xmm1, xmm0
maxss xmm1, xmm6
movss dword [rbx + 0x20a4], xmm1
jb 0x140042832
comiss xmm6, xmm1
jb 0x140042832
mov qword [rbx + 0x2090], r14
mov r15d, 1
test r9, r9
jne 0x140042869
cmp qword [rbx + 0x2088], rdi
jne 0x140042869
mov edx, r15d
lea ecx, [r15 + 2]
call fcn.140040430
comiss xmm0, xmm6
jbe 0x140042869
movzx r8d, dl
jmp 0x14004287a
mov qword [rbx + 0x2088], r14
jmp 0x1400427e3
xor r8b, r8b
test r9, r9
jne 0x14004289f
cmp qword [rbx + 0x2088], rdi
jne 0x14004289f
cmp byte [rbx + 0x13c], dil
je 0x14004289f
mov ecx, dword [rbx + 0x3c]
test ecx, ecx
js 0x14004289f
call fcn.140035e20
test al, al
je 0x14004289f
test byte [rbx + 8], r15b
je 0x14004289f
movzx r9d, r15b
jmp 0x1400428a2
xor r9b, r9b
test r8b, r8b
jne 0x1400428b0
test r9b, r9b
je 0x14004294e
mov rax, qword [rbx + 0x1f58]
test rax, rax
jne 0x14004291c
movsxd rcx, dword [rbx + 0x1cc8]
lea edx, [rcx - 1]
test edx, edx
js 0x14004294e
movsxd rax, edx
mov r10, rcx
cmp rax, r10
jge 0x14004294e
cmp rax, 0xffffffff80000001
je 0x14004294e
mov r8, qword [rbx + 0x1cd0]
mov rcx, qword [r8 + rax*8]
cmp byte [rcx + 0xd0], dil
je 0x140042907
cmp rcx, qword [rcx + 0x3e8]
jne 0x140042907
test dword [rcx + 0xc], 0x80000
je 0x140042910
dec edx
sub rax, r15
jns 0x1400428d4
jmp 0x14004294e
movsxd rax, edx
mov rax, qword [r8 + rax*8]
test rax, rax
je 0x14004294e
mov rax, qword [rax + 0x3e8]
xor r9b, r15b
mov qword [rbx + 0x2090], rax
mov qword [rbx + 0x2088], rax
movzx eax, r9b
mov byte [rbx + 0x20a8], al
add eax, 2
mov dword [rbx + 0x1f8c], eax
mov qword [rbx + 0x20a0], r14
movss xmm0, dword [rbx + 0x18]
addss xmm0, dword [rbx + 0x20a0]
movss xmm5, dword [0x140533f94]
movss dword [rbx + 0x20a0], xmm0
cmp qword [rbx + 0x2088], rdi
je 0x140042a3b
cmp dword [rbx + 0x1f8c], 3
jne 0x140042a3b
subss xmm0, dword [0x140533f40]
movaps xmmword [rsp + 0x30], xmm7
divss xmm0, dword [0x140533f28]
comiss xmm6, xmm0
jbe 0x1400429a4
movaps xmm1, xmm6
jmp 0x1400429ab
movaps xmm1, xmm5
minss xmm1, xmm0
movss xmm7, dword [rbx + 0x20a4]
mov edx, 4
maxss xmm7, xmm1
lea ecx, [rdx + 9]
movss dword [rbx + 0x20a4], xmm7
call fcn.140040430
comiss xmm0, xmm6
mov r9d, r14d
lea ecx, [rdx + 8]
seta r9b
call fcn.140040430
comiss xmm0, xmm6
mov ecx, r14d
seta cl
sub ecx, r9d
je 0x1400429fe
call fcn.140042640
mov dword [rbx + 0x20a4], 0x3f800000
movaps xmm7, xmm5
movss xmm0, dword [rbx + 0x34c]
comiss xmm0, xmm6
ja 0x140042a36
comiss xmm5, xmm7
seta al
and byte [rbx + 0x20a8], al
je 0x140042a28
cmp qword [rbx + 0x1f58], rdi
je 0x140042a2f
movzx ebp, r15b
jmp 0x140042a2f
mov rdi, qword [rbx + 0x2088]
mov qword [rbx + 0x2088], r14
movaps xmm7, xmmword [rsp + 0x30]
cmp qword [rbx + 0x2088], r14
je 0x140042abc
cmp dword [rbx + 0x1f8c], 2
jne 0x140042abc
movss xmm0, dword [rbx + 0x20a0]
subss xmm0, dword [0x140533f40]
divss xmm0, dword [0x140533f28]
comiss xmm6, xmm0
jbe 0x140042a6f
movaps xmm5, xmm6
jmp 0x140042a73
minss xmm5, xmm0
movss xmm0, dword [rbx + 0x20a4]
maxss xmm0, xmm5
movss dword [rbx + 0x20a4], xmm0
mov ecx, dword [rbx + 0x3c]
test ecx, ecx
js 0x140042aac
call fcn.140035e20
test al, al
je 0x140042aac
cmp byte [rbx + 0x13d], r14b
mov ecx, 0xffffffff
cmovne ecx, r15d
call fcn.140042640
cmp byte [rbx + 0x13c], r14b
jne 0x140042abc
mov rdi, qword [rbx + 0x2088]
mov edx, r15d
mov ecx, reloc.WS2_32.dll_recv
call fcn.140040430
comiss xmm0, xmm6
jbe 0x140042ad4
mov byte [rbx + 0x20a8], dl
cmp dword [rbx + 0x1d6c], r14d
je 0x140042aea
cmp byte [rbx + 0x1d79], r14b
je 0x140042b77
cmp byte [rbx + 0x20a8], r14b
je 0x140042b77
mov edx, 2
lea ecx, [rdx + 0xe]
call fcn.140040430
comiss xmm0, xmm6
jbe 0x140042b77
lea rax, [rbx + 0x120]
test rax, rax
jne 0x140042b1c
lea rax, [rbx + 0x120]
movss xmm0, dword [rax]
movss xmm1, dword [0x1405340f0]
comiss xmm0, xmm1
movss xmm2, dword [rax + 4]
jb 0x140042b3d
comiss xmm2, xmm1
jb 0x140042b3d
movzx ecx, r15b
jmp 0x140042b3f
xor cl, cl
lea rax, [rbx + 0x3c0]
test rax, rax
jne 0x140042b52
lea rax, [rbx + 0x120]
movss xmm0, dword [rax]
comiss xmm0, xmm1
movss xmm2, dword [rax + 4]
jb 0x140042b6b
comiss xmm2, xmm1
jb 0x140042b6b
movzx eax, r15b
jmp 0x140042b6d
xor al, al
cmp cl, al
movzx ebp, bpl
cmove ebp, r15d
mov r11, qword [rbx + 0x2088]
test r11, r11
je 0x140042c6f
test byte [r11 + 0xc], 4
jne 0x140042c6f
mov eax, dword [rbx + 0x1f8c]
cmp eax, 2
jne 0x140042baf
cmp byte [rbx + 0x13d], r14b
jne 0x140042c6f
mov edx, r15d
jmp 0x140042bbb
cmp eax, 3
jne 0x140042c6f
lea edx, [rax + 1]
movaps xmm3, xmm6
movss dword [rsp + 0x20], xmm6
lea rcx, [rsp + 0x70]
call fcn.1400405b0
movss xmm4, dword [rax]
ucomiss xmm4, xmm6
movss xmm3, dword [rax + 4]
jp 0x140042be9
jne 0x140042be9
ucomiss xmm3, xmm6
jp 0x140042be9
je 0x140042c6f
mov r9, qword [r11 + 0x3f0]
lea rdx, [rsp + 0x70]
movss xmm1, dword [rbx + 0xc0]
mov r8d, r15d
movss xmm0, dword [rbx + 0x18]
mov rcx, r9
minss xmm1, dword [rbx + 0xc4]
mulss xmm0, dword [0x1405340b8]
mulss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm2, eax
cvtdq2ps xmm2, xmm2
mulss xmm4, xmm2
mulss xmm3, xmm2
addss xmm4, dword [r9 + 0x50]
addss xmm3, dword [r9 + 0x54]
movss dword [rsp + 0x70], xmm4
movss dword [rsp + 0x74], xmm3
call fcn.14003d530
test dword [r9 + 0xc], 0x100
jne 0x140042c68
comiss xmm6, dword [rbx + 0x39f4]
jb 0x140042c68
mov eax, dword [rbx + 0x1c]
mov dword [rbx + 0x39f4], eax
mov byte [rbx + 0x1faf], r8b
mov qword [rsp + 0x80], rsi
movaps xmm6, xmmword [rsp + 0x40]
test rdi, rdi
je 0x140042d7e
mov rax, qword [rbx + 0x1f58]
test rax, rax
je 0x140042ca4
cmp rdi, qword [rax + 0x3e8]
je 0x140042d77
mov rsi, qword [rax + 0x38]
jmp 0x140042ca7
mov rsi, r14
call fcn.140030d00
mov word [rbx + 0x1fae], 0x100
mov rax, qword [rdi + 0x408]
test rax, rax
je 0x140042ccf
cmp byte [rax + 0xd0], r14b
je 0x140042ccf
mov rdi, rax
jmp 0x140042d26
mov rdx, qword [rdi + 0x468]
test rdx, rdx
je 0x140042d26
mov rdx, qword [rdx + 0x38]
test rdx, rdx
je 0x140042d26
movsxd r8, dword [rdx]
mov rcx, r14
test r8, r8
jle 0x140042d26
mov rdx, qword [rdx + 8]
test rcx, rcx
je 0x140042d00
mov eax, dword [rdx + 0x14]
cmp dword [rcx + 0x14], eax
jge 0x140042d14
mov rax, qword [rdx + 8]
test rax, rax
je 0x140042d14
cmp byte [rax + 0xd0], r14b
cmovne rcx, rdx
add rdx, 0x30
sub r8, r15
jne 0x140042cf3
test rcx, rcx
je 0x140042d26
mov rdi, qword [rcx + 8]
xor edx, edx
mov rcx, rdi
call fcn.14003ed80
mov rcx, rdi
call fcn.14003d000
cmp dword [rdi + 0x410], r14d
jne 0x140042d4b
xor edx, edx
mov rcx, rdi
call fcn.1400401f0
cmp word [rdi + 0x194], 2
jne 0x140042d5c
mov dword [rbx + 0x1fa4], r15d
mov rcx, qword [rdi + 0x38]
cmp rcx, rsi
je 0x140042d77
mov rax, qword [rbx + 0x1590]
test rax, rax
je 0x140042d77
call qword [case.0x14001f545.0]
mov qword [rbx + 0x2088], r14
mov r15, qword [rsp + 0x88]
test bpl, bpl
mov rbp, qword [rsp + 0x78]
je 0x140042e43
cmp qword [rbx + 0x1f58], r14
je 0x140042e43
call fcn.140030d00
mov rdi, qword [rbx + 0x1f58]
lea rcx, [rdi + 0x3e0]
cmp qword [rcx], r14
je 0x140042de7
nop dword [rax]
test byte [rdi + 0x194], 2
jne 0x140042de7
mov eax, dword [rdi + 0xc]
and eax, 0x15000000
cmp eax, 0x1000000
jne 0x140042de7
mov rdi, qword [rcx]
lea rcx, [rdi + 0x3e0]
cmp qword [rcx], r14
jne 0x140042dc0
mov rsi, qword [rbx + 0x1f58]
cmp rdi, rsi
je 0x140042e02
mov rcx, rdi
call fcn.14003d000
mov qword [rdi + 0x408], rsi
mov rax, qword [rbx + 0x1f58]
mov word [rbx + 0x1fae], 0x100
test byte [rax + 0x194], 2
je 0x140042e3b
mov ecx, dword [rbx + 0x1fa4]
xor ecx, 1
cmp ecx, 1
jne 0x140042e3e
cmp qword [rdi + 0x468], r14
jne 0x140042e3e
mov dword [rax + 0x414], r14d
jmp 0x140042e3e
mov ecx, r14d
call fcn.1400400f0
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rbx
ret