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

Disassembly:
push rbp
push rbx
push r13
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov r13, qword [rcx + 0x50]
xor edx, edx
mov rbx, qword [rcx + 0x60]
lea rcx, [rbp - 0x29]
lea r8d, [rdx + 0x40]
call fcn.1400394d0
mov r8d, 0x40
mov byte [rbp - 0x29], 5
lea rdx, [rbp - 0x29]
mov rcx, rbx
call fcn.140057f00
cmp eax, 0x23
jl 0x1400d9621
movzx ecx, byte [rbp - 0x25]
movzx eax, byte [rbp - 0x26]
movzx ebx, byte [rbp - 0x1b]
movzx r9d, byte [rbp - 0x17]
movzx r8d, byte [rbp - 0xf]
movzx r10d, byte [rbp - 0xb]
movzx r11d, byte [rbp - 0x27]
shl cx, 8
or cx, ax
mov qword [rsp + 0x98], rsi
movzx eax, byte [rbp - 0x24]
movzx esi, byte [rbp - 7]
mov word [rbp + 0x67], cx
movzx ecx, byte [rbp - 0x23]
shl cx, 8
or cx, ax
mov qword [rsp + 0x90], rdi
movzx eax, byte [rbp - 0x22]
movzx edi, byte [rbp - 0x1f]
mov word [rbp + 0x6f], cx
movzx ecx, byte [rbp - 0x11]
shl cx, 8
mov qword [rsp + 0x88], r12
movzx r12d, byte [rbp - 0x21]
mov qword [rsp + 0x80], r14
movzx r14d, byte [rbp - 0x19]
mov qword [rsp + 0x78], r15
movzx r15d, byte [rbp - 0x1d]
shl r12w, 8
or r12w, ax
shl di, 8
movzx eax, byte [rbp - 0x20]
or di, ax
shl r15w, 8
movzx eax, byte [rbp - 0x1e]
or r15w, ax
shl bx, 8
movzx eax, byte [rbp - 0x1c]
or bx, ax
shl r14w, 8
movzx eax, byte [rbp - 0x1a]
or r14w, ax
shl r9w, 8
movzx eax, byte [rbp - 0x18]
or r9w, ax
shl r8w, 8
movzx eax, byte [rbp - 0x12]
or cx, ax
shl r10w, 8
movzx eax, byte [rbp - 0x10]
or r8w, ax
mov word [rbp + 0x77], cx
movzx ecx, byte [rbp - 0xd]
movzx eax, byte [rbp - 0xe]
shl cx, 8
or cx, ax
shl si, 8
movzx eax, byte [rbp - 0xc]
or r10w, ax
mov word [rbp + 0x7f], cx
movzx ecx, byte [rbp - 9]
movzx eax, byte [rbp - 0xa]
shl cx, 8
or cx, ax
movzx eax, byte [rbp - 8]
or si, ax
mov word [rbp - 0x39], cx
movzx eax, byte [rbp - 0x15]
shl ax, 8
movsx edx, ax
movzx eax, byte [rbp - 0x16]
or edx, eax
movzx eax, byte [rbp - 0x13]
shl ax, 8
movsx ecx, ax
movzx eax, byte [rbp - 0x14]
or ecx, eax
add edx, ecx
movd xmm2, edx
cvtdq2ps xmm2, xmm2
mulss xmm2, dword [0x1401681ac]
movzx eax, byte [rbp - 0x28]
movaps xmm1, xmm2
movaps xmm4, xmm2
shl r11w, 8
or r11w, ax
movsx ecx, r12w
movsx eax, di
sub ecx, eax
movzx edi, word [rbp + 0x67]
movsx eax, bx
movzx ebx, word [rbp + 0x6f]
mov word [r13 + 0x20], r11w
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movsx ecx, r15w
sub ecx, eax
mov word [r13 + 0x28], di
movsx eax, r9w
movzx r9d, word [rbp + 0x77]
mov word [r13 + 0x30], bx
divss xmm4, xmm0
mov dword [r13 + 0x1c], 1
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movsx ecx, r14w
sub ecx, eax
movzx eax, r9w
sub ax, r8w
movzx r8d, word [rbp + 0x7f]
movss dword [r13 + 0x24], xmm4
divss xmm1, xmm0
movd xmm0, ecx
movsx ecx, ax
cvtdq2ps xmm0, xmm0
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
sub r9w, ax
movss dword [r13 + 0x2c], xmm1
divss xmm2, xmm0
movzx eax, r8w
mov word [r13 + 0x38], r9w
sub ax, r10w
movzx r10d, word [rbp - 0x39]
movd xmm1, ecx
movsx ecx, ax
cvtdq2ps xmm1, xmm1
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
sub r8w, ax
movss dword [r13 + 0x34], xmm2
movss xmm2, dword [0x1401681b4]
movzx eax, r10w
sub ax, si
mov word [r13 + 0x40], r8w
movaps xmm0, xmm2
divss xmm0, xmm1
movaps xmm1, xmm2
movss dword [r13 + 0x3c], xmm0
movd xmm0, ecx
movsx ecx, ax
cvtdq2ps xmm0, xmm0
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
sub r10w, ax
movsx eax, r11w
divss xmm1, xmm0
cdq
mov word [r13 + 0x48], r10w
xor eax, edx
sub eax, edx
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movss dword [r13 + 0x44], xmm1
divss xmm2, xmm0
movss dword [r13 + 0x4c], xmm2
movss xmm5, dword [0x140167d48]
xor ecx, ecx
movss xmm2, dword [0x140167ebc]
movsd xmm3, qword [0x140168000]
mov r15, qword [rsp + 0x78]
mov r14, qword [rsp + 0x80]
mov r12, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x98]
cmp eax, 0x400
jg 0x1400d94b6
movaps xmm0, xmm2
mulss xmm4, xmm5
subss xmm0, xmm4
cvtps2pd xmm1, xmm0
movsd qword [rbp + 0x67], xmm1
movsd qword [rbp + 0x6f], xmm1
mov rax, qword [rbp + 0x6f]
shr rax, 0x20
btr eax, 0x1f
mov dword [rbp + 0x6b], eax
movsd xmm0, qword [rbp + 0x67]
comisd xmm0, xmm3
jbe 0x1400d94ba
mov dword [r13 + 0x1c], ecx
movsx eax, di
mov rdi, qword [rsp + 0x90]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x400
jg 0x1400d9509
movss xmm1, dword [r13 + 0x2c]
movaps xmm0, xmm2
mulss xmm1, xmm5
subss xmm0, xmm1
cvtps2pd xmm1, xmm0
movsd qword [rbp + 0x67], xmm1
movsd qword [rbp + 0x6f], xmm1
mov rax, qword [rbp + 0x6f]
shr rax, 0x20
btr eax, 0x1f
mov dword [rbp + 0x6b], eax
movsd xmm0, qword [rbp + 0x67]
comisd xmm0, xmm3
jbe 0x1400d950d
mov dword [r13 + 0x1c], ecx
movsx eax, bx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x400
jg 0x1400d9554
movss xmm1, dword [r13 + 0x34]
movaps xmm0, xmm2
mulss xmm1, xmm5
subss xmm0, xmm1
cvtps2pd xmm1, xmm0
movsd qword [rbp + 0x67], xmm1
movsd qword [rbp + 0x6f], xmm1
mov rax, qword [rbp + 0x6f]
shr rax, 0x20
btr eax, 0x1f
mov dword [rbp + 0x6b], eax
movsd xmm0, qword [rbp + 0x67]
comisd xmm0, xmm3
jbe 0x1400d9558
mov dword [r13 + 0x1c], ecx
movsx eax, r9w
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x400
jg 0x1400d9598
movaps xmm0, xmm2
subss xmm0, dword [r13 + 0x3c]
cvtps2pd xmm1, xmm0
movsd qword [rbp + 0x67], xmm1
movsd qword [rbp + 0x6f], xmm1
mov rax, qword [rbp + 0x6f]
shr rax, 0x20
btr eax, 0x1f
mov dword [rbp + 0x6b], eax
movsd xmm0, qword [rbp + 0x67]
comisd xmm0, xmm3
jbe 0x1400d959c
mov dword [r13 + 0x1c], ecx
movsx eax, r8w
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x400
jg 0x1400d95dc
movaps xmm0, xmm2
subss xmm0, dword [r13 + 0x44]
cvtps2pd xmm1, xmm0
movsd qword [rbp + 0x67], xmm1
movsd qword [rbp + 0x6f], xmm1
mov rax, qword [rbp + 0x6f]
shr rax, 0x20
btr eax, 0x1f
mov dword [rbp + 0x6b], eax
movsd xmm0, qword [rbp + 0x67]
comisd xmm0, xmm3
jbe 0x1400d95e0
mov dword [r13 + 0x1c], ecx
movsx eax, r10w
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x400
jg 0x1400d961d
subss xmm2, dword [r13 + 0x4c]
cvtps2pd xmm0, xmm2
movsd qword [rbp + 0x6f], xmm0
mov rax, qword [rbp + 0x6f]
shr rax, 0x20
btr eax, 0x1f
movsd qword [rbp + 0x67], xmm0
mov dword [rbp + 0x6b], eax
movsd xmm0, qword [rbp + 0x67]
comisd xmm0, xmm3
jbe 0x1400d9621
mov dword [r13 + 0x1c], ecx
add rsp, 0xa0
pop r13
pop rbx
pop rbp
ret