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

Disassembly:
push rbp
push r13
lea rbp, [rsp - 0x1b18]
mov eax, 0x1c18
call fcn.18008ad20
sub rsp, rax
xorps xmm0, xmm0
mov r13, rcx
comiss xmm0, dword [rcx + 0x28]
jae 0x180041251
comiss xmm0, dword [rcx + 0x2c]
jae 0x180041251
mov qword [rsp + 0x1c08], rsi
mov rsi, qword [0x1800d7730]
mov qword [rsp + 0x1c00], rdi
mov qword [rsp + 0x1bf8], r12
xor r12d, r12d
mov qword [rsp + 0x1bf0], r14
test rsi, rsi
je 0x18004088b
mov rsi, qword [rsi + 0x98]
jmp 0x18004088e
mov rsi, r12
mov rcx, qword [rsi + 0x18]
mov rdi, qword [rsi + 8]
mov qword [rbp + 0x1b38], rdi
test rcx, rcx
je 0x1800408b5
mov eax, dword [r13 + 0xc]
cmp dword [rsi + 0x70], eax
jge 0x180040905
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsi + 0x18], r12
mov eax, dword [r13 + 0xc]
lea r9, [rsi + 0x18]
mov rcx, qword [rsi]
lea rdx, [rsp + 0x40]
add eax, 0x1388
mov qword [rsp + 0x50], r12
mov dword [rsi + 0x70], eax
xor r8d, r8d
mov dword [rsp + 0x44], 2
mov dword [rsp + 0x48], 1
lea eax, [rax + rax*4]
mov dword [rsp + 0x4c], 0x10000
shl eax, 2
mov dword [rsp + 0x40], eax
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
js 0x180041231
mov rcx, qword [rsi + 0x20]
mov qword [rsp + 0x1c10], rbx
lea rbx, [rsi + 0x20]
test rcx, rcx
je 0x18004092c
mov eax, dword [r13 + 8]
cmp dword [rsi + 0x74], eax
jge 0x180040977
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbx], r12
mov eax, dword [r13 + 8]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsi]
add eax, 0x2710
mov dword [rsi + 0x74], eax
mov r9, rbx
add eax, eax
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x40], eax
xor r8d, r8d
mov dword [rsp + 0x44], 2
mov dword [rsp + 0x48], 2
mov dword [rsp + 0x4c], 0x10000
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
js 0x180041229
mov rax, qword [rdi]
lea rcx, [rsp + 0x58]
mov rdx, qword [rsi + 0x18]
mov r9d, 4
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x20], r12d
call qword [rax + 0x70]
test eax, eax
jne 0x180041229
mov rax, qword [rdi]
lea rcx, [rsp + 0x68]
mov rdx, qword [rbx]
mov r9d, 4
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x20], r12d
call qword [rax + 0x70]
test eax, eax
jne 0x180041229
mov r14, qword [rsp + 0x58]
mov qword [rsp + 0x1be8], r15
mov r15, qword [rsp + 0x68]
cmp dword [r13 + 4], r12d
jle 0x180040a52
mov rdi, r12
nop dword [rax + rax]
mov rax, qword [r13 + 0x18]
mov rcx, r14
mov rbx, qword [rdi + rax]
movsxd rax, dword [rbx + 0x20]
mov rdx, qword [rbx + 0x28]
lea r8, [rax + rax*4]
shl r8, 2
call sub.VCRUNTIME140.dll_memcpy
movsxd r8, dword [rbx + 0x10]
mov rcx, r15
mov rdx, qword [rbx + 0x18]
add r8, r8
call sub.VCRUNTIME140.dll_memcpy
movsxd rax, dword [rbx + 0x20]
lea rdi, [rdi + 8]
inc r12d
lea rcx, [rax + rax*4]
movsxd rax, dword [rbx + 0x10]
lea r14, [r14 + rcx*4]
lea r15, [r15 + rax*2]
cmp r12d, dword [r13 + 4]
jl 0x1800409f0
mov rdi, qword [rbp + 0x1b38]
lea rbx, [rsi + 0x20]
xor r12d, r12d
mov rax, qword [rdi]
xor r8d, r8d
mov rdx, qword [rsi + 0x18]
mov rcx, rdi
call qword [rax + 0x78]
mov rax, qword [rdi]
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, rdi
call qword [rax + 0x78]
mov rax, qword [rdi]
lea rcx, [rsp + 0x30]
mov rdx, qword [rsi + 0x38]
mov r9d, 4
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x20], r12d
call qword [rax + 0x70]
test eax, eax
jne 0x180041221
movss xmm2, dword [r13 + 0x24]
xor r8d, r8d
movss xmm4, dword [r13 + 0x20]
movaps xmm0, xmm2
mov rax, qword [rsp + 0x30]
movaps xmm1, xmm4
addss xmm1, dword [r13 + 0x28]
movaps xmmword [rsp + 0x1bd0], xmm6
mov rcx, rdi
movss xmm6, dword [0x1800a2d18]
movaps xmmword [rsp + 0x1bc0], xmm7
movaps xmmword [rsp + 0x1bb0], xmm8
movaps xmm8, xmm2
addss xmm8, dword [r13 + 0x2c]
movaps xmm7, xmm1
addss xmm7, xmm4
subss xmm4, xmm1
subss xmm0, xmm8
addss xmm8, xmm2
divss xmm7, xmm4
divss xmm8, dword [r13 + 0x2c]
divss xmm6, xmm0
movss xmm0, dword [0x1800a2d78]
divss xmm0, dword [r13 + 0x28]
addss xmm6, xmm6
movss dword [rax], xmm0
mov rax, qword [rsp + 0x30]
mov dword [rax + 4], r12d
mov rax, qword [rsp + 0x30]
mov dword [rax + 8], r12d
mov rax, qword [rsp + 0x30]
mov dword [rax + 0xc], r12d
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x10], r12d
mov rax, qword [rsp + 0x30]
movss dword [rax + 0x14], xmm6
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x18], r12d
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x1c], r12d
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x20], r12d
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x24], r12d
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x28], 0x3f000000
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x2c], r12d
mov rax, qword [rsp + 0x30]
movss dword [rax + 0x30], xmm7
mov rax, qword [rsp + 0x30]
movss dword [rax + 0x34], xmm8
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x38], 0x3f000000
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x3c], 0x3f800000
mov rax, qword [rdi]
mov rdx, qword [rsi + 0x38]
call qword [rax + 0x78]
xor edx, edx
lea rcx, [rbp - 0x78]
mov r8d, 0x1b20
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x7c], 0x10
lea r8, [rbp - 0x78]
mov dword [rbp - 0x80], 0x10
lea rdx, [rbp - 0x80]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x300]
mov rax, qword [rdi]
lea r8, [rbp + 0x88]
lea rdx, [rbp - 0x7c]
mov rcx, rdi
call qword [rax + 0x2f8]
mov rax, qword [rdi]
lea rdx, [rbp + 0x208]
mov rcx, rdi
call qword [rax + 0x2f0]
mov rax, qword [rdi]
lea r9, [rbp + 0x228]
lea r8, [rbp + 0x218]
mov rcx, rdi
lea rdx, [rbp + 0x210]
call qword [rax + 0x2d8]
mov rax, qword [rdi]
lea r8, [rbp + 0x22c]
lea rdx, [rbp + 0x230]
mov rcx, rdi
call qword [rax + 0x2e0]
mov rax, qword [rdi]
lea r9, [rbp + 0x238]
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 1]
call qword [rax + 0x248]
mov rax, qword [rdi]
lea r9, [rbp + 0x240]
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 1]
call qword [rax + 0x258]
mov dword [rbp + 0x268], pe_nt_image_headers64
lea r9, [rbp + 0x260]
mov dword [rbp + 0x264], pe_nt_image_headers64
lea r8, [rbp + 0x270]
mov dword [rbp + 0x260], pe_nt_image_headers64
lea rdx, [rbp + 0x248]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x250]
mov rax, qword [rdi]
lea r9, [rbp + 0x264]
lea r8, [rbp + 0xa70]
mov rcx, rdi
lea rdx, [rbp + 0x250]
call qword [rax + 0x260]
mov rax, qword [rdi]
lea r9, [rbp + 0x1a88]
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 1]
call qword [rax + 0x240]
mov rax, qword [rdi]
lea r9, [rbp + 0x268]
lea r8, [rbp + 0x1270]
mov rcx, rdi
lea rdx, [rbp + 0x258]
call qword [rax + 0x290]
mov rax, qword [rdi]
lea rdx, [rbp + 0x1a70]
mov rcx, rdi
call qword [rax + 0x298]
mov rax, qword [rdi]
lea r9, [rbp + 0x1a90]
lea r8, [rbp + 0x1a9c]
mov rcx, rdi
lea rdx, [rbp + 0x1a78]
call qword [rax + 0x280]
mov rax, qword [rdi]
lea rcx, [rbp + 0x1a98]
mov qword [rsp + 0x28], rcx
lea r9, [rbp + 0x1a80]
xor edx, edx
lea rcx, [rbp + 0x1a94]
mov qword [rsp + 0x20], rcx
mov rcx, rdi
lea r8d, [rdx + 1]
call qword [rax + 0x278]
mov rax, qword [rdi]
lea rdx, [rbp + 0x1aa0]
mov rcx, rdi
call qword [rax + 0x270]
mov rdx, rdi
mov rcx, r13
call fcn.180040640
movss xmm6, dword [r13 + 0x20]
mov ecx, r12d
movss xmm7, dword [r13 + 0x24]
mov edx, r12d
mov dword [rbp + 0x1b30], ecx
mov dword [rbp + 0x1b38], edx
cmp dword [r13 + 4], 0
mov r9d, r12d
movaps xmm8, xmmword [rsp + 0x1bb0]
mov dword [rbp + 0x1b40], r12d
jle 0x180040f40
mov r8, r12
mov qword [rbp + 0x1b48], r12
mov rax, qword [r13 + 0x18]
mov r14d, r12d
mov rsi, qword [r8 + rax]
cmp dword [rsi], 0
jle 0x180040f0f
mov r15, r12
mov r12d, dword [rbp + 0x1b30]
nop
mov rbx, qword [rsi + 8]
add rbx, r15
mov rax, qword [rbx + 0x28]
test rax, rax
je 0x180040e43
cmp rax, 0xffffffffffffffff
jne 0x180040e36
mov rdx, rdi
mov rcx, r13
call fcn.180040640
jmp 0x180040ee2
mov rdx, rbx
mov rcx, rsi
call rax
jmp 0x180040ee2
movss xmm2, dword [rbx]
movss xmm3, dword [rbx + 8]
subss xmm2, xmm6
movss xmm0, dword [rbx + 4]
subss xmm3, xmm6
movss xmm1, dword [rbx + 0xc]
subss xmm0, xmm7
subss xmm1, xmm7
comiss xmm3, xmm2
jbe 0x180040ee2
comiss xmm1, xmm0
jbe 0x180040ee2
cvttss2si eax, xmm2
lea r8, [rsp + 0x40]
mov edx, 1
mov rcx, rdi
mov dword [rsp + 0x40], eax
cvttss2si eax, xmm0
mov dword [rsp + 0x44], eax
cvttss2si eax, xmm3
mov dword [rsp + 0x48], eax
cvttss2si eax, xmm1
mov dword [rsp + 0x4c], eax
mov rax, qword [rdi]
call qword [rax + 0x168]
mov rax, qword [rbx + 0x10]
lea r9, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x30], rax
mov rax, qword [rdi]
mov rcx, rdi
lea r8d, [rdx + 1]
call qword [rax + 0x40]
mov r9d, dword [rbp + 0x1b38]
mov rcx, rdi
mov r8d, dword [rbx + 0x1c]
mov r10, qword [rdi]
add r8d, r12d
add r9d, dword [rbx + 0x18]
mov edx, dword [rbx + 0x20]
call qword [r10 + 0x60]
inc r14d
add r15, 0x38
cmp r14d, dword [rsi]
jl 0x180040e10
mov ecx, dword [rbp + 0x1b30]
xor r12d, r12d
mov edx, dword [rbp + 0x1b38]
mov r8, qword [rbp + 0x1b48]
mov r9d, dword [rbp + 0x1b40]
add ecx, dword [rsi + 0x10]
inc r9d
add edx, dword [rsi + 0x20]
add r8, 8
mov dword [rbp + 0x1b30], ecx
mov dword [rbp + 0x1b38], edx
mov dword [rbp + 0x1b40], r9d
mov qword [rbp + 0x1b48], r8
cmp r9d, dword [r13 + 4]
jl 0x180040df0
mov rax, qword [rdi]
lea r8, [rbp - 0x78]
mov edx, dword [rbp - 0x80]
mov rcx, rdi
call qword [rax + 0x168]
mov rax, qword [rdi]
lea r8, [rbp + 0x88]
mov edx, dword [rbp - 0x7c]
mov rcx, rdi
call qword [rax + 0x160]
mov rax, qword [rdi]
mov rcx, rdi
mov rdx, qword [rbp + 0x208]
call qword [rax + 0x158]
mov rcx, qword [rbp + 0x208]
movaps xmm7, xmmword [rsp + 0x1bc0]
movaps xmm6, xmmword [rsp + 0x1bd0]
test rcx, rcx
je 0x180040f9e
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [rdi]
lea r8, [rbp + 0x218]
mov r9d, dword [rbp + 0x228]
mov rcx, rdi
mov rdx, qword [rbp + 0x210]
call qword [rax + 0x118]
mov rcx, qword [rbp + 0x210]
test rcx, rcx
je 0x180040fd1
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [rdi]
mov rcx, rdi
mov r8d, dword [rbp + 0x22c]
mov rdx, qword [rbp + 0x230]
call qword [rax + 0x120]
mov rcx, qword [rbp + 0x230]
test rcx, rcx
je 0x180040ffd
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [rdi]
lea r9, [rbp + 0x238]
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 1]
call qword [rax + 0x40]
mov rcx, qword [rbp + 0x238]
test rcx, rcx
je 0x180041025
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [rdi]
lea r9, [rbp + 0x240]
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 1]
call qword [rax + 0x50]
mov rcx, qword [rbp + 0x240]
test rcx, rcx
je 0x18004104d
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [rdi]
lea r8, [rbp + 0x270]
mov r9d, dword [rbp + 0x260]
mov rcx, rdi
mov rdx, qword [rbp + 0x248]
call qword [rax + 0x48]
mov rcx, qword [rbp + 0x248]
test rcx, rcx
je 0x18004107d
mov rax, qword [rcx]
call qword [rax + 0x10]
mov edx, dword [rbp + 0x260]
mov ebx, r12d
test edx, edx
je 0x1800410b1
nop word [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + rax*8 + 0x270]
test rcx, rcx
je 0x1800410ab
mov rax, qword [rcx]
call qword [rax + 0x10]
mov edx, dword [rbp + 0x260]
inc ebx
cmp ebx, edx
jb 0x180041090
mov rax, qword [rdi]
lea r8, [rbp + 0xa70]
mov r9d, dword [rbp + 0x264]
mov rcx, rdi
mov rdx, qword [rbp + 0x250]
call qword [rax + 0x58]
mov rcx, qword [rbp + 0x250]
test rcx, rcx
je 0x1800410e1
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [rdi]
lea r9, [rbp + 0x1a88]
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 1]
call qword [rax + 0x38]
mov rcx, qword [rbp + 0x1a88]
test rcx, rcx
je 0x180041109
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [rdi]
lea r8, [rbp + 0x1270]
mov r9d, dword [rbp + 0x268]
mov rcx, rdi
mov rdx, qword [rbp + 0x258]
call qword [rax + 0xb8]
mov rcx, qword [rbp + 0x258]
test rcx, rcx
je 0x18004113c
mov rax, qword [rcx]
call qword [rax + 0x10]
mov edx, dword [rbp + 0x264]
test edx, edx
je 0x180041174
nop word [rax + rax]
mov eax, r12d
mov rcx, qword [rbp + rax*8 + 0xa70]
test rcx, rcx
je 0x18004116c
mov rax, qword [rcx]
call qword [rax + 0x10]
mov edx, dword [rbp + 0x264]
inc r12d
cmp r12d, edx
jb 0x180041150
mov rax, qword [rdi]
mov rcx, rdi
mov edx, dword [rbp + 0x1a70]
call qword [rax + 0xc0]
mov rax, qword [rdi]
mov rcx, rdi
mov r9d, dword [rbp + 0x1a90]
mov r8d, dword [rbp + 0x1a9c]
mov rdx, qword [rbp + 0x1a78]
call qword [rax + 0x98]
mov rcx, qword [rbp + 0x1a78]
test rcx, rcx
je 0x1800411b9
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [rdi]
lea rcx, [rbp + 0x1a98]
mov qword [rsp + 0x28], rcx
lea r9, [rbp + 0x1a80]
xor edx, edx
lea rcx, [rbp + 0x1a94]
mov qword [rsp + 0x20], rcx
mov rcx, rdi
lea r8d, [rdx + 1]
call qword [rax + 0x90]
mov rcx, qword [rbp + 0x1a80]
test rcx, rcx
je 0x1800411fc
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [rdi]
mov rcx, rdi
mov rdx, qword [rbp + 0x1aa0]
call qword [rax + 0x88]
mov rcx, qword [rbp + 0x1aa0]
test rcx, rcx
je 0x180041221
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r15, qword [rsp + 0x1be8]
mov rbx, qword [rsp + 0x1c10]
mov rdi, qword [rsp + 0x1c00]
mov rsi, qword [rsp + 0x1c08]
mov r12, qword [rsp + 0x1bf8]
mov r14, qword [rsp + 0x1bf0]
add rsp, 0x1c18
pop r13
pop rbp
ret