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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rbx, qword [0x180103740]
movaps xmmword [rsp + 0x30], xmm6
cmp byte [rbx + 0xc3], 0
je 0x1800378ca
test byte [rbx + 0xc], 2
jne 0x1800378ca
mov byte [rbx + 0xc3], 0
xor r15d, r15d
cmp byte [rbx + 0x2eec], r15b
jne 0x180037925
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x18003791e
lea r8, [rsp + 0x60]
mov qword [rsp + 0x60], r15
call fcn.1800341b0
mov rdi, rax
test rax, rax
je 0x18003791e
mov rdx, qword [rsp + 0x60]
mov rcx, rax
call fcn.180055e60
mov rcx, qword [0x180103740]
test rcx, rcx
je 0x180037915
dec dword [rcx + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x2eec], 1
movss xmm0, dword [rbx + 0x2ef0]
xorps xmm6, xmm6
comiss xmm0, xmm6
jbe 0x180037965
subss xmm0, dword [rbx + 0x18]
comiss xmm6, xmm0
movss dword [rbx + 0x2ef0], xmm0
jb 0x180037965
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x180037957
call fcn.1800560d0
jmp 0x18003795e
mov byte [rbx + 0x398], 1
mov dword [rbx + 0x2ef0], r15d
inc dword [rbx + 0x19e8]
movss xmm0, dword [rbx + 0x18]
mov rax, qword [rbx + 0xa0]
mov rdx, qword [0x180103740]
mov byte [rbx + 1], 1
mov dword [rbx + 0x2ec4], r15d
mov dword [rbx + 0x1a48], r15d
cvtps2pd xmm0, xmm0
addsd xmm0, qword [rbx + 0x19e0]
movsd qword [rbx + 0x19e0], xmm0
mov byte [rax], 1
mov rcx, qword [rdx + 0xb0]
test rcx, rcx
jne 0x1800379c0
mov rax, qword [rdx + 0xa0]
mov rcx, qword [rax + 0x48]
mov rcx, qword [rcx]
movss xmm1, dword [0x1800d48d0]
mov rax, qword [rdx + 0x1a50]
mov qword [rdx + 0x1948], rcx
movss xmm0, dword [rcx + 0x14]
mulss xmm0, dword [rdx + 0xa8]
mulss xmm0, dword [rcx + 0x5c]
maxss xmm1, xmm0
movss dword [rdx + 0x1954], xmm1
test rax, rax
je 0x180037a03
mulss xmm1, dword [rax + 0x2a0]
jmp 0x180037a06
xorps xmm1, xmm1
movss dword [rdx + 0x1950], xmm1
lea rbp, [rbx + 0x1d60]
mov rax, qword [rcx + 0x48]
mov qword [rsp + 0x20], r15
movups xmm2, xmmword [rsp + 0x20]
movsd xmm0, qword [rax + 0x38]
mov qword [rdx + 0x1960], rcx
mov rcx, rbp
movsd qword [rdx + 0x1958], xmm0
movss dword [rdx + 0x1968], xmm1
movss xmm0, dword [rbx + 0x10]
movss xmm1, dword [rbx + 0x14]
mov eax, dword [rbx + 0x15f4]
shufps xmm2, xmm2, 0xd2
movss xmm2, xmm0
mov dword [rbx + 0x196c], eax
shufps xmm2, xmm2, 0x27
movss xmm2, xmm1
shufps xmm2, xmm2, 0x39
movups xmmword [rbx + 0x1970], xmm2
call fcn.18005e6f0
mov rax, qword [rbx + 0xa0]
mov edi, 8
mov r8d, dword [rbp + 0x74]
mov ecx, dword [rbp + 0x70]
mov r14, qword [rax + 8]
cmp ecx, r8d
jne 0x180037aba
inc ecx
test r8d, r8d
je 0x180037aa8
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x180037aaa
mov eax, edi
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
lea rcx, [rbp + 0x70]
call fcn.180056de0
movsxd rdx, dword [rbp + 0x70]
mov rcx, rbp
mov rax, qword [rbp + 0x78]
mov qword [rax + rdx*8], r14
inc dword [rbp + 0x70]
call fcn.18005ebe0
mov rcx, rbp
call fcn.18005edb0
movzx eax, byte [rbx + 0x15f1]
lea rbp, [rbx + 0x1e08]
neg al
mov eax, r15d
sbb ecx, ecx
and ecx, 2
cmp byte [rbx + 0x15f0], r15b
setne al
or ecx, eax
mov dword [rbx + 0x1d90], ecx
mov rcx, rbp
call fcn.18005e6f0
mov rax, qword [rbx + 0xa0]
mov r8d, dword [rbp + 0x74]
mov ecx, dword [rbp + 0x70]
mov r14, qword [rax + 8]
cmp ecx, r8d
jne 0x180037b45
inc ecx
test r8d, r8d
je 0x180037b35
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
lea edi, [r8 + rax]
cmp edi, ecx
cmovg ecx, edi
mov edx, ecx
lea rcx, [rbp + 0x70]
call fcn.180056de0
movsxd rdx, dword [rbp + 0x70]
mov rcx, rbp
mov rax, qword [rbp + 0x78]
mov qword [rax + rdx*8], r14
inc dword [rbp + 0x70]
call fcn.18005ebe0
mov rcx, rbp
call fcn.18005edb0
movzx eax, byte [rbx + 0x15f1]
mov rdx, qword [0x180103740]
neg al
mov eax, r15d
mov byte [rbx + 0x1d00], r15b
sbb ecx, ecx
mov qword [rbx + 0x1d08], r15
and ecx, 2
mov qword [rbx + 0x1d14], r15
cmp byte [rbx + 0x15f0], r15b
mov dword [rbx + 0x1d10], r15d
setne al
or ecx, eax
mov dword [rbx + 0x1e38], ecx
mov qword [rbx + 0x1d2c], r15
mov qword [rbx + 0x1d24], r15
mov qword [rbx + 0x1d1c], r15
cmp byte [rbx + 0x1eb4], r15b
je 0x180037bf3
mov eax, dword [rbx + 0x1ed4]
cmp eax, dword [rbx + 0x1a7c]
jne 0x180037bf3
cmp dword [rdx + 0x1a7c], eax
jne 0x180037be4
mov dword [rdx + 0x1a84], eax
cmp dword [rdx + 0x1a80], eax
jne 0x180037bf3
mov byte [rdx + 0x1a90], 1
cmp dword [rbx + 0x1a70], r15d
jne 0x180037c05
mov dword [rbx + 0x1a74], r15d
jmp 0x180037c17
mov eax, dword [rbx + 0x1a68]
test eax, eax
je 0x180037c1e
cmp dword [rbx + 0x1a7c], eax
jne 0x180037c1e
mov dword [rbx + 0x1a78], r15d
mov eax, dword [rbx + 0x1a68]
test eax, eax
je 0x180037c58
movss xmm1, dword [rbx + 0x18]
movaps xmm0, xmm1
addss xmm0, dword [rbx + 0x1a74]
movss dword [rbx + 0x1a74], xmm0
cmp dword [rbx + 0x1a7c], eax
je 0x180037c58
addss xmm1, dword [rbx + 0x1a78]
movss dword [rbx + 0x1a78], xmm1
mov dword [rbx + 0x1a70], eax
mov eax, dword [rbx + 0x1a7c]
mov dword [rbx + 0x1a68], r15d
mov byte [rbx + 0x1a6c], r15b
cmp dword [rbx + 0x1a84], eax
je 0x180037cc6
cmp dword [rbx + 0x1a80], eax
jne 0x180037cc6
test eax, eax
je 0x180037cc6
mov ecx, dword [rdx + 0x1a7c]
test ecx, ecx
setne al
mov byte [rdx + 0x1a8c], al
test ecx, ecx
je 0x180037caa
mov dword [rdx + 0x1a88], r15d
mov word [rdx + 0x1a8e], r15w
mov dword [rdx + 0x1a7c], r15d
mov qword [rdx + 0x1a94], r15
mov byte [rdx + 0x1a8d], r15b
mov qword [rdx + 0x1aa8], r15
mov ecx, dword [rbx + 0x1a7c]
test ecx, ecx
je 0x180037ce5
movss xmm0, dword [rbx + 0x18]
addss xmm0, dword [rbx + 0x1a88]
movss dword [rbx + 0x1a88], xmm0
mov rax, qword [rbx + 0x1aa8]
movss xmm0, dword [rbx + 0x18]
addss xmm0, dword [rbx + 0x1ac0]
mov qword [rbx + 0x1ab0], rax
movzx eax, byte [rbx + 0x1a8f]
mov byte [rbx + 0x1a91], al
mov eax, dword [rbx + 0x2e98]
movss dword [rbx + 0x1ac0], xmm0
mov dword [rbx + 0x1a80], ecx
mov dword [rbx + 0x1a84], r15d
mov byte [rbx + 0x1a90], r15b
mov byte [rbx + 0x1a8c], r15b
test eax, eax
je 0x180037d45
cmp ecx, eax
je 0x180037d45
mov dword [rbx + 0x2e98], r15d
mov eax, dword [rbx + 0x1f24]
lea rcx, [rbx + 0xc90]
lea rdx, [rbx + 0x490]
mov dword [rbx + 0x1f28], eax
mov r8d, 0x800
mov qword [rbx + 0x1f20], 0x7f7fffff
mov byte [rbx + 0x1eb5], r15b
call sub.VCRUNTIME140.dll_memcpy
movss xmm1, dword [0x1800d4a8c]
lea rcx, [rbx + 0x13d]
lea rax, [rbx + 0x494]
mov r8d, 0x80
cmp byte [rcx - 1], r15b
je 0x180037db4
movss xmm0, dword [rax - 4]
comiss xmm6, xmm0
jbe 0x180037dad
movaps xmm0, xmm6
jmp 0x180037db7
addss xmm0, dword [rbx + 0x18]
jmp 0x180037db7
movaps xmm0, xmm1
movss dword [rax - 4], xmm0
cmp byte [rcx], r15b
je 0x180037dd6
movss xmm0, dword [rax]
comiss xmm6, xmm0
jbe 0x180037dcf
movaps xmm0, xmm6
jmp 0x180037dd9
addss xmm0, dword [rbx + 0x18]
jmp 0x180037dd9
movaps xmm0, xmm1
movss dword [rax], xmm0
cmp byte [rcx + 1], r15b
je 0x180037df9
movss xmm0, dword [rax + 4]
comiss xmm6, xmm0
jbe 0x180037df2
movaps xmm0, xmm6
jmp 0x180037dfc
addss xmm0, dword [rbx + 0x18]
jmp 0x180037dfc
movaps xmm0, xmm1
movss dword [rax + 4], xmm0
cmp byte [rcx + 2], r15b
je 0x180037e1d
movss xmm0, dword [rax + 8]
comiss xmm6, xmm0
jbe 0x180037e16
movaps xmm0, xmm6
jmp 0x180037e20
addss xmm0, dword [rbx + 0x18]
jmp 0x180037e20
movaps xmm0, xmm1
movss dword [rax + 8], xmm0
add rcx, 4
add rax, 0x10
sub r8, 1
jne 0x180037d98
call fcn.180052360
call fcn.180036d80
movsxd rax, dword [rbx + 0x313c]
movss xmm1, dword [rbx + 0x18]
movaps xmm0, xmm1
subss xmm0, dword [rbx + rax*4 + 0x2f5c]
addss xmm0, dword [rbx + 0x3140]
movss dword [rbx + 0x3140], xmm0
movss dword [rbx + rax*4 + 0x2f5c], xmm1
mov eax, 0x88888889
mov ecx, dword [rbx + 0x313c]
movss xmm1, dword [rbx + 0x3140]
inc ecx
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x78
sub ecx, eax
comiss xmm1, xmm6
mov dword [rbx + 0x313c], ecx
jbe 0x180037ebb
divss xmm1, dword [0x1800d49f4]
movss xmm0, dword [0x1800d48d0]
divss xmm0, xmm1
jmp 0x180037ec3
movss xmm0, dword [0x1800d4a6c]
movss dword [rbx + 0x39c], xmm0
call fcn.180036930
call fcn.180037430
mov r10, qword [0x180103740]
mov eax, dword [r10 + 0x1b08]
sub eax, 1
js 0x180037f1c
mov r8, qword [r10 + 0x1b10]
movsxd rdx, eax
add r8, 8
lea rcx, [rdx + rdx*2]
shl rcx, 4
add r8, rcx
mov rax, qword [r8]
test rax, rax
je 0x180037f12
test dword [rax + 0xc], 0x8000000
jne 0x180037f32
sub r8, 0x30
sub rdx, 1
jns 0x180037f01
cmp qword [rbx + 0x1be8], r15
je 0x180037f51
movss xmm0, dword [rbx + 0x1c04]
comiss xmm0, xmm6
jbe 0x180037f51
movss xmm1, dword [rbx + 0x18]
mulss xmm1, dword [0x1800d495c]
addss xmm1, dword [rbx + 0x1d58]
minss xmm1, dword [0x1800d48d0]
jmp 0x180037f6e
movss xmm0, dword [rbx + 0x18]
mulss xmm0, dword [0x1800d496c]
movss xmm1, dword [rbx + 0x1d58]
subss xmm1, xmm0
maxss xmm1, xmm6
movss dword [rbx + 0x1d58], xmm1
mov dword [rbx + 0x1eb0], r15d
mov qword [rbx + 0x3148], 0xffffffffffffffff
mov dword [rbx + 0x3144], 0xffffffff
mov dword [rbx + 0x2edc], 0x3f800000
mov dword [rbx + 0x2ee0], 0x3f800000
call fcn.1800370d0
mov r8, qword [rbx + 0x1ba0]
test r8, r8
je 0x180037fe5
cmp byte [r8 + 0x7e], r15b
je 0x180037fe5
test dword [r8 + 0xc], 0x40000
jne 0x180037fe5
cmp byte [rbx + 0x138], r15b
jne 0x180037fe5
mov ecx, dword [r10 + 0x3c]
test ecx, ecx
js 0x180037fe5
call fcn.180038f60
test al, al
je 0x180037fe5
mov al, 1
jmp 0x180037fe7
xor al, al
mov byte [rbx + 0x1cf8], al
cmp dword [rbx + 0x1a7c], r15d
jne 0x18003804d
test al, al
je 0x18003804d
mov qword [rbx + 0x1ce0], r8
mov dword [rbx + 0x1cf0], 0x7fffffff
cmp dword [rbx + 0x1ba8], r15d
je 0x18003803c
mov ecx, dword [rbx + 0x1c10]
cmp ecx, 0x7fffffff
je 0x18003803c
cmp byte [rbx + 0x139], r15b
mov eax, 2
cmovne eax, r15d
add eax, ecx
mov dword [rbx + 0x1cf4], eax
jmp 0x18003804d
movzx eax, byte [rbx + 0x139]
neg al
sbb ecx, ecx
mov dword [rbx + 0x1cf4], ecx
mov r8, qword [rbx + 0x1ce0]
mov qword [rbx + 0x1cd8], r15
mov dword [rbx + 0x1cec], 0x7fffffff
mov dword [rbx + 0x1ce8], 0x7fffffff
test r8, r8
je 0x1800380e2
mov eax, dword [rbx + 0x1cf0]
mov qword [rbx + 0x1cd8], r8
cmp eax, 0x7fffffff
je 0x1800380a1
mov ecx, dword [r8 + 0x178]
cmp ecx, 0xffffffff
je 0x1800380a1
inc ecx
add eax, ecx
cdq
idiv ecx
mov dword [rbx + 0x1ce8], edx
mov eax, dword [rbx + 0x1cf4]
cmp eax, 0x7fffffff
je 0x1800380c7
mov ecx, dword [r8 + 0x17c]
cmp ecx, 0xffffffff
je 0x1800380c7
inc ecx
add eax, ecx
cdq
idiv ecx
mov dword [rbx + 0x1cec], edx
mov qword [rbx + 0x1ce0], r15
mov dword [rbx + 0x1cf4], 0x7fffffff
mov dword [rbx + 0x1cf0], 0x7fffffff
mov r8d, r15d
mov dword [rbx + 0x1c10], 0x7fffffff
cmp dword [rbx + 0x19f8], r15d
je 0x180038136
mov rdx, r15
nop dword [rax + rax]
mov rax, qword [rbx + 0x1a00]
lea rdx, [rdx + 8]
inc r8d
mov rcx, qword [rdx + rax - 8]
movzx eax, byte [rcx + 0x7e]
mov byte [rcx + 0x7f], al
mov word [rcx + 0x88], r15w
mov byte [rcx + 0x7e], r15b
mov byte [rcx + 0x80], r15b
cmp r8d, dword [rbx + 0x19f8]
jne 0x180038100
mov rax, qword [rbx + 0x1ba0]
test rax, rax
je 0x1800381b0
cmp byte [rax + 0x7f], r15b
jne 0x1800381b0
mov eax, dword [r10 + 0x1a08]
sub eax, 1
js 0x1800381b0
movsxd r9, eax
mov rax, qword [r10 + 0x1a10]
lea r10, [rax + r9*8]
mov r8, qword [r10]
test r8, r8
je 0x18003818e
cmp byte [r8 + 0x7f], r15b
je 0x18003818e
mov eax, dword [r8 + 0xc]
and eax, 0x40200
cmp eax, 0x40200
setne cl
bt dword [r8 + 0xc], 0x18
setae al
test al, cl
jne 0x18003819a
sub r10, 8
sub r9, 1
jns 0x180038162
jmp 0x1800381b0
mov rax, qword [r8 + 0x378]
test rax, rax
cmovne r8, rax
mov rcx, r8
call fcn.18004f550
mov ecx, dword [rbx + 0x1a2c]
test ecx, ecx
jns 0x1800381d7
mov eax, ecx
cdq
sub eax, edx
mov edx, r15d
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x1a28]
test eax, eax
cmovg edx, eax
call fcn.180056de0
mov dword [rbx + 0x1a28], r15d
mov ecx, dword [rbx + 0x1b1c]
test ecx, ecx
jns 0x180038205
mov eax, ecx
cdq
sub eax, edx
mov edx, r15d
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x1b18]
test eax, eax
cmovg edx, eax
call fcn.180057430
mov dword [rbx + 0x1b18], r15d
mov rcx, qword [rbx + 0x1ba0]
call fcn.1800508d0
mov rax, qword [0x180103740]
lea rcx, str.DebugDefault
xor r8d, r8d
xor edx, edx
mov dword [rax + 0x1b54], 0x43c80000
mov dword [rax + 0x1b58], 0x43c80000
mov dword [rax + 0x1b2c], 4
call fcn.18003c240
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x30]
mov byte [rbx + 2], 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret