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

Disassembly:
push rbx
push rbp
push r12
push r13
push r14
sub rsp, 0x50
mov r14, qword [0x1400f9520]
mov rbx, rcx
mov r13d, dword [rcx + 0xc]
mov rbp, r14
mov dword [rcx + 0x44], 0xffffffff
test dword [r14 + 0x1a1c], 0x400
mov rax, qword [r14 + 0x1d40]
mov r12, qword [rax]
jne 0x140040b75
mov qword [rcx + 0x30], r12
mov eax, dword [r12]
mov dword [rcx + 0x38], eax
cmp qword [r12 + 0x98], rcx
sete al
mov byte [rcx + 0xbe], al
add rsp, 0x50
pop r14
pop r13
pop r12
pop rbp
pop rbx
ret
mov qword [rsp + 0x88], rsi
mov eax, r13d
mov qword [rsp + 0x90], rdi
xor esi, esi
and eax, 0x6000000
mov qword [rsp + 0x98], r15
mov dword [rsp + 0x38], eax
movaps xmmword [rsp + 0x40], xmm6
mov byte [rcx + 0xbe], 0
je 0x140040bb9
cmp byte [rcx + 0xc5], sil
je 0x140040bb9
mov qword [rcx + 0x30], rsi
mov dword [rcx + 0x38], esi
test dword [r14 + 0x1c40], 0x100
jne 0x140040c85
mov rax, qword [rcx + 0x30]
test rax, rax
jne 0x140040c85
mov rax, qword [rcx + 0x3e0]
test rax, rax
je 0x140040bfd
cmp byte [rax + 0xc7], sil
jne 0x140040bfd
mov rax, qword [rax + 0x30]
mov qword [rcx + 0x30], rax
test rax, rax
jne 0x140040c85
mov r9d, dword [rcx + 0x38]
test r9d, r9d
je 0x140040c85
movsxd rax, dword [r14 + 0x1d38]
mov r8d, esi
test eax, eax
jle 0x140040c3f
mov r11, qword [r14 + 0x1d40]
mov r10, rax
mov rcx, r11
mov rdx, rsi
mov rax, qword [rcx]
cmp dword [rax], r9d
je 0x140040cf3
inc r8d
inc rdx
add rcx, 8
cmp rdx, r10
jl 0x140040c24
mov qword [rbx + 0x30], rsi
movss xmm0, dword [rbx + 0x3c]
lea r8, [rbx + 0x3c]
movss xmm1, dword [0x1400e8230]
ucomiss xmm0, xmm1
jp 0x140040c5b
je 0x140040c85
movss xmm0, dword [rbx + 0x40]
ucomiss xmm0, xmm1
jp 0x140040c67
je 0x140040c85
mov edx, dword [rbx + 8]
lea r9, [rbx + 0x50]
mov rcx, rbx
mov dword [rsp + 0x20], esi
call fcn.1400407f0
mov r14, qword [0x1400f9520]
mov qword [rbx + 0x30], rax
movss xmm6, dword [0x1400e8298]
xor r15b, r15b
test dword [rbp + 0x1c40], 0x100
je 0x140040d11
movsxd rax, dword [r14 + 0x1d38]
lea r9, [rbp + 0x1ca4]
mov r8d, esi
test eax, eax
jle 0x140040cdb
mov rdi, qword [r14 + 0x1d40]
mov r10, rax
mov r11d, dword [r9]
mov rcx, rdi
mov rdx, rsi
mov rax, qword [rcx]
cmp dword [rax], r11d
je 0x140040d08
inc r8d
inc rdx
add rcx, 8
cmp rdx, r10
jl 0x140040cc4
mov rcx, rsi
lea rdi, [rbx + 0x30]
mov r15b, 1
mov qword [rdi], rcx
mov eax, dword [r9]
mov dword [rbx + 0x38], eax
jmp 0x140040e31
movsxd rax, r8d
mov rcx, qword [r11 + rax*8]
mov qword [rbx + 0x30], rcx
test rcx, rcx
jne 0x140040c85
jmp 0x140040c43
movsxd rax, r8d
mov rcx, qword [rdi + rax*8]
jmp 0x140040cde
test r13d, 0x11000000
jne 0x140040e1f
bt r13d, 0x19
jae 0x140040d38
mov rax, qword [rbp + 0x1d58]
lea rdi, [rbx + 0x30]
mov qword [rdi], rax
jmp 0x140040e31
cmp byte [r14 + 0xcc], sil
jne 0x140040d4a
test dword [rbx + 0x1c], 0x100
je 0x140040d7c
test dword [r14 + 0x1a1c], 0x400
je 0x140040d7c
test byte [rbx + 0x472], 1
jne 0x140040d7c
mov eax, dword [rbx + 0xc]
test eax, 0x13000000
jne 0x140040d7c
and eax, 0xc000000
cmp eax, 0x4000000
je 0x140040d7c
lea rdi, [rbx + 0x30]
jmp 0x140040dc3
mov rax, qword [rbp + 0x1bb8]
test rax, rax
je 0x140040de6
cmp qword [rax + 0x3e8], rbx
jne 0x140040de6
movss xmm0, dword [r14 + 0x120]
comiss xmm0, xmm6
movss xmm1, dword [r14 + 0x124]
jb 0x140040de6
comiss xmm1, xmm6
jb 0x140040de6
mov rax, qword [rbx + 0x30]
lea rdi, [rbx + 0x30]
test rax, rax
je 0x140040e31
cmp qword [rax + 0x98], rbx
jne 0x140040e31
mov edx, dword [rbx + 8]
lea r9, [rbx + 0x50]
lea r8, [rbx + 0x48]
mov dword [rsp + 0x20], esi
mov rcx, rbx
call fcn.1400407f0
mov r14, qword [0x1400f9520]
mov qword [rdi], rax
jmp 0x140040e31
mov rax, qword [rbx + 0x30]
lea rdi, [rbx + 0x30]
test rax, rax
je 0x140040e31
cmp rbx, qword [rax + 0x98]
jne 0x140040e31
cmp dword [rbp + 0x1be8], esi
jne 0x140040e31
mov rdx, qword [r14 + 0x1d40]
mov rcx, rbx
mov rdx, qword [rdx]
call fcn.14003fa70
mov r14, qword [0x1400f9520]
jmp 0x140040e31
mov rax, qword [rbx + 0x3e0]
lea rdi, [rbx + 0x30]
mov rcx, qword [rax + 0x30]
mov qword [rdi], rcx
mov rcx, qword [rdi]
test rcx, rcx
jne 0x140040e3f
mov qword [rdi], r12
mov rcx, r12
test r15b, r15b
mov r15, qword [rsp + 0x98]
jne 0x14004103b
cmp dword [rsp + 0x38], esi
je 0x140040f7e
bt r13d, 0x19
jae 0x140040e6a
lea rax, [rbp + 0x120]
jmp 0x140040e87
movsxd rax, dword [rbp + 0x1d28]
lea rcx, [rax + rax*2]
mov rax, qword [rbp + 0x1d30]
add rax, 0xfffffffffffffff8
shl rcx, 4
add rax, rcx
movsd xmm0, qword [rax]
movsd qword [rsp + 0x38], xmm0
cmp byte [rbp + 0x1dc6], sil
jne 0x140040eb0
cmp byte [rbp + 0x1dc7], sil
je 0x140040eb0
cmp qword [rbp + 0x1d70], rsi
je 0x140040eb0
xor dl, dl
jmp 0x140040eb2
mov dl, 1
movss xmm0, dword [rsp + 0x38]
comiss xmm0, xmm6
jb 0x140040ecc
movss xmm0, dword [rsp + 0x3c]
comiss xmm0, xmm6
jb 0x140040ecc
mov cl, 1
jmp 0x140040ece
xor cl, cl
cmp byte [rbx + 0xc5], sil
jne 0x140040ee0
test r13d, 0x12000000
je 0x140040ee8
test dl, dl
je 0x140040f0b
test cl, cl
jne 0x140040efa
mov rax, qword [rdi]
movsx esi, word [rax + 0x90]
mov dword [rbx + 0x44], esi
jmp 0x14004103b
movsd xmm0, qword [rax]
lea rax, [rsp + 0x30]
movsd qword [rsp + 0x30], xmm0
jmp 0x140040f15
lea rcx, [rsp + 0x38]
call fcn.14003b480
movsxd rcx, dword [r14 + 0x1618]
test ecx, ecx
jle 0x140040f71
movss xmm4, dword [rax]
mov r8, rcx
mov rcx, qword [r14 + 0x1620]
mov rdx, rsi
movss xmm0, dword [rcx]
comiss xmm4, xmm0
movss xmm3, dword [rcx + 4]
movaps xmm1, xmm0
addss xmm1, dword [rcx + 8]
movaps xmm2, xmm3
addss xmm2, dword [rcx + 0xc]
jb 0x140040f63
movss xmm0, dword [rax + 4]
comiss xmm0, xmm3
jb 0x140040f63
comiss xmm1, xmm4
jbe 0x140040f63
comiss xmm2, xmm0
ja 0x140040f76
inc esi
inc rdx
add rcx, 0x24
cmp rdx, r8
jl 0x140040f31
mov esi, 0xffffffff
mov dword [rbx + 0x44], esi
jmp 0x14004103b
test rcx, rcx
je 0x140041025
mov rax, qword [rcx + 0x98]
cmp rbx, rax
je 0x140041025
test rax, rax
je 0x140041025
bt r13d, 0x18
jb 0x140041025
movzx eax, byte [rbx + 0x472]
test al, 1
je 0x140040fbe
test al, 2
jne 0x140040fbe
xor dl, dl
jmp 0x140040fc0
mov dl, 1
test dword [rbx + 0xc], 0x20000000
je 0x140040fef
mov eax, dword [rbp + 0x1b18]
cmp dword [rcx + 0x6c], eax
jge 0x140040fef
test dl, dl
je 0x140040fef
mov qword [rcx + 0x98], rbx
mov eax, dword [rbx + 8]
mov rcx, qword [rdi]
mov dword [rcx], eax
mov rax, qword [rdi]
mov dword [rax + 0x7c], esi
jmp 0x14004103b
mov rdx, qword [r14 + 0x1d40]
mov rcx, rbx
mov rdx, qword [rdx]
call fcn.14003fa70
test al, al
jne 0x14004103b
mov edx, dword [rbx + 8]
lea r9, [rbx + 0x50]
lea r8, [rbx + 0x48]
mov dword [rsp + 0x20], 4
mov rcx, rbx
call fcn.1400407f0
mov qword [rdi], rax
jmp 0x14004103b
cmp dword [rbx + 0x44], esi
jge 0x14004103b
bt r13d, 0x18
jb 0x14004103b
movsx eax, word [rcx + 0x90]
mov dword [rbx + 0x44], eax
mov rcx, qword [rdi]
movaps xmm6, xmmword [rsp + 0x40]
mov rdi, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x88]
cmp rbx, qword [rcx + 0x98]
sete al
mov byte [rbx + 0xbe], al
mov eax, dword [rcx]
mov dword [rbx + 0x38], eax
add rsp, 0x50
pop r14
pop r13
pop r12
pop rbp
pop rbx
ret