Function at 0x180037940
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 [0x1801035d0]
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm7
cmp byte [rbx + 0xc3], 0
je 0x18003797f
test byte [rbx + 0xc], 2
jne 0x18003797f
mov byte [rbx + 0xc3], 0
xor r15d, r15d
cmp byte [rbx + 0x2eec], r15b
jne 0x1800379da
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1800379d3
lea r8, [rsp + 0x60]
mov qword [rsp + 0x60], r15
call fcn.180034310
mov rdi, rax
test rax, rax
je 0x1800379d3
mov rdx, qword [rsp + 0x60]
mov rcx, rax
call fcn.180056270
mov rcx, qword [0x1801035d0]
test rcx, rcx
je 0x1800379ca
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 0x180037a1a
subss xmm0, dword [rbx + 0x18]
comiss xmm6, xmm0
movss dword [rbx + 0x2ef0], xmm0
jb 0x180037a1a
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x180037a0c
call fcn.1800564e0
jmp 0x180037a13
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 [0x1801035d0]
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 0x180037a75
mov rax, qword [rdx + 0xa0]
mov rcx, qword [rax + 0x48]
mov rcx, qword [rcx]
movss xmm7, dword [0x1800d48e0]
mov rax, qword [rdx + 0x1a50]
movaps xmm0, xmm7
mov qword [rdx + 0x1948], rcx
movss xmm1, dword [rcx + 0x14]
mulss xmm1, dword [rdx + 0xa8]
mulss xmm1, dword [rcx + 0x5c]
maxss xmm0, xmm1
movss dword [rdx + 0x1954], xmm0
test rax, rax
je 0x180037abf
movss xmm1, dword [rax + 0x2a0]
mulss xmm1, xmm0
jmp 0x180037ac2
xorps xmm1, xmm1
movss dword [rdx + 0x1950], xmm1
lea rbp, [rbx + 0x1d60]
mov rax, qword [rcx + 0x48]
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 qword [rbx + 0x1970], r15
movss dword [rbx + 0x1978], xmm0
movss dword [rbx + 0x197c], xmm1
mov eax, dword [rbx + 0x15f4]
mov dword [rbx + 0x196c], eax
call fcn.18005ee90
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 0x180037b68
inc ecx
test r8d, r8d
je 0x180037b56
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x180037b58
mov eax, edi
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
lea rcx, [rbp + 0x70]
call fcn.1800572d0
movsxd rcx, dword [rbp + 0x70]
mov rax, qword [rbp + 0x78]
mov qword [rax + rcx*8], r14
mov rcx, rbp
inc dword [rbp + 0x70]
call fcn.18005f380
mov rax, qword [rbp + 0x38]
xor r9d, r9d
mov rcx, rbp
movss xmm1, dword [rax + 0x24]
movss xmm0, dword [rax + 0x20]
movss xmm2, dword [rax + 0x1c]
unpcklps xmm0, xmm1
movss xmm1, dword [rax + 0x18]
movq r8, xmm0
unpcklps xmm1, xmm2
movq rdx, xmm1
call fcn.18005f440
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.18005ee90
mov rax, qword [rbx + 0xa0]
mov r8d, dword [rbp + 0x74]
mov ecx, dword [rbp + 0x70]
mov r14, qword [rax + 8]
cmp ecx, r8d
jne 0x180037c1e
inc ecx
test r8d, r8d
je 0x180037c0e
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.1800572d0
movsxd rcx, dword [rbp + 0x70]
mov rax, qword [rbp + 0x78]
mov qword [rax + rcx*8], r14
mov rcx, rbp
inc dword [rbp + 0x70]
call fcn.18005f380
mov rax, qword [rbp + 0x38]
xor r9d, r9d
mov rcx, rbp
movss xmm1, dword [rax + 0x24]
movss xmm0, dword [rax + 0x20]
movss xmm2, dword [rax + 0x1c]
unpcklps xmm0, xmm1
movss xmm1, dword [rax + 0x18]
movq r8, xmm0
unpcklps xmm1, xmm2
movq rdx, xmm1
call fcn.18005f440
movzx eax, byte [rbx + 0x15f1]
mov rdx, qword [0x1801035d0]
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 0x180037cf7
mov eax, dword [rbx + 0x1ed4]
cmp eax, dword [rbx + 0x1a7c]
jne 0x180037cf7
cmp dword [rdx + 0x1a7c], eax
jne 0x180037ce8
mov dword [rdx + 0x1a84], eax
cmp dword [rdx + 0x1a80], eax
jne 0x180037cf7
mov byte [rdx + 0x1a90], 1
lea rax, [rbx + 0x1a68]
mov ecx, dword [rax]
cmp dword [rbx + 0x1a70], r15d
jne 0x180037d12
mov dword [rbx + 0x1a74], r15d
jmp 0x180037d24
mov r8d, ecx
mov r9, rax
test ecx, ecx
je 0x180037d31
cmp dword [rbx + 0x1a7c], ecx
jne 0x180037d31
mov dword [rbx + 0x1a78], r15d
mov r8d, ecx
mov r9, rax
movss xmm1, dword [rbx + 0x18]
test r8d, r8d
je 0x180037d6a
movaps xmm0, xmm1
addss xmm0, dword [rbx + 0x1a74]
movss dword [rbx + 0x1a74], xmm0
cmp dword [rbx + 0x1a7c], r8d
je 0x180037d6a
movaps xmm0, xmm1
addss xmm0, dword [rbx + 0x1a78]
movss dword [rbx + 0x1a78], xmm0
mov eax, dword [rbx + 0x1a7c]
movaps xmm2, xmm1
mov dword [rbx + 0x1a70], r8d
mov dword [r9], r15d
mov byte [rbx + 0x1a6c], r15b
cmp dword [rbx + 0x1a84], eax
je 0x180037ddd
cmp dword [rbx + 0x1a80], eax
jne 0x180037ddd
test eax, eax
je 0x180037ddd
mov ecx, dword [rdx + 0x1a7c]
test ecx, ecx
setne al
mov byte [rdx + 0x1a8c], al
test ecx, ecx
je 0x180037dbc
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
movss xmm2, dword [rbx + 0x18]
mov ecx, dword [rbx + 0x1a7c]
test ecx, ecx
je 0x180037dfa
movaps xmm0, xmm2
addss xmm0, dword [rbx + 0x1a88]
movss dword [rbx + 0x1a88], xmm0
mov rax, qword [rbx + 0x1aa8]
addss xmm2, 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], xmm2
mov dword [rbx + 0x1a80], ecx
mov dword [rbx + 0x1a84], r15d
mov byte [rbx + 0x1a90], r15b
mov byte [rbx + 0x1a8c], r15b
test eax, eax
je 0x180037e55
cmp ecx, eax
je 0x180037e55
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 [0x1800d4acc]
lea rcx, [rbx + 0x13d]
lea rax, [rbx + 0x494]
mov r8d, 0x80
cmp byte [rcx - 1], r15b
je 0x180037ec4
movss xmm0, dword [rax - 4]
comiss xmm6, xmm0
jbe 0x180037ebd
movaps xmm0, xmm6
jmp 0x180037ec7
addss xmm0, dword [rbx + 0x18]
jmp 0x180037ec7
movaps xmm0, xmm1
movss dword [rax - 4], xmm0
cmp byte [rcx], r15b
je 0x180037ee6
movss xmm0, dword [rax]
comiss xmm6, xmm0
jbe 0x180037edf
movaps xmm0, xmm6
jmp 0x180037ee9
addss xmm0, dword [rbx + 0x18]
jmp 0x180037ee9
movaps xmm0, xmm1
movss dword [rax], xmm0
cmp byte [rcx + 1], r15b
je 0x180037f09
movss xmm0, dword [rax + 4]
comiss xmm6, xmm0
jbe 0x180037f02
movaps xmm0, xmm6
jmp 0x180037f0c
addss xmm0, dword [rbx + 0x18]
jmp 0x180037f0c
movaps xmm0, xmm1
movss dword [rax + 4], xmm0
cmp byte [rcx + 2], r15b
je 0x180037f2d
movss xmm0, dword [rax + 8]
comiss xmm6, xmm0
jbe 0x180037f26
movaps xmm0, xmm6
jmp 0x180037f30
addss xmm0, dword [rbx + 0x18]
jmp 0x180037f30
movaps xmm0, xmm1
movss dword [rax + 8], xmm0
add rcx, 4
add rax, 0x10
sub r8, 1
jne 0x180037ea8
call fcn.1800527d0
call fcn.180036dc0
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 0x180037fc6
divss xmm1, dword [0x1800d4a14]
movaps xmm0, xmm7
divss xmm0, xmm1
jmp 0x180037fce
movss xmm0, dword [0x1800d4aac]
movss dword [rbx + 0x39c], xmm0
call fcn.180036980
call fcn.1800374c0
mov r10, qword [0x1801035d0]
mov eax, dword [r10 + 0x1b08]
sub eax, 1
js 0x18003802b
mov r8, qword [r10 + 0x1b10]
movsxd rdx, eax
add r8, 8
lea rcx, [rdx + rdx*2]
shl rcx, 4
add r8, rcx
nop dword [rax]
mov rax, qword [r8]
test rax, rax
je 0x180038021
test dword [rax + 0xc], 0x8000000
jne 0x180038041
sub r8, 0x30
sub rdx, 1
jns 0x180038010
cmp qword [rbx + 0x1be8], r15
je 0x18003805c
movss xmm0, dword [rbx + 0x1c04]
comiss xmm0, xmm6
jbe 0x18003805c
movss xmm1, dword [rbx + 0x18]
mulss xmm1, dword [0x1800d497c]
addss xmm1, dword [rbx + 0x1d58]
minss xmm1, xmm7
jmp 0x180038079
movss xmm0, dword [rbx + 0x18]
mulss xmm0, dword [0x1800d498c]
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.180037150
mov r8, qword [rbx + 0x1ba0]
test r8, r8
je 0x1800380f0
cmp byte [r8 + 0x7e], r15b
je 0x1800380f0
test dword [r8 + 0xc], 0x40000
jne 0x1800380f0
cmp byte [rbx + 0x138], r15b
jne 0x1800380f0
mov ecx, dword [r10 + 0x3c]
test ecx, ecx
js 0x1800380f0
call fcn.180039030
test al, al
je 0x1800380f0
mov al, 1
jmp 0x1800380f2
xor al, al
mov byte [rbx + 0x1cf8], al
cmp dword [rbx + 0x1a7c], r15d
jne 0x180038158
test al, al
je 0x180038158
mov qword [rbx + 0x1ce0], r8
mov dword [rbx + 0x1cf0], 0x7fffffff
cmp dword [rbx + 0x1ba8], r15d
je 0x180038147
mov ecx, dword [rbx + 0x1c10]
cmp ecx, 0x7fffffff
je 0x180038147
cmp byte [rbx + 0x139], r15b
mov eax, 2
cmovne eax, r15d
add eax, ecx
mov dword [rbx + 0x1cf4], eax
jmp 0x180038158
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 0x1800381ed
mov eax, dword [rbx + 0x1cf0]
mov qword [rbx + 0x1cd8], r8
cmp eax, 0x7fffffff
je 0x1800381ac
mov ecx, dword [r8 + 0x178]
cmp ecx, 0xffffffff
je 0x1800381ac
inc ecx
add eax, ecx
cdq
idiv ecx
mov dword [rbx + 0x1ce8], edx
mov eax, dword [rbx + 0x1cf4]
cmp eax, 0x7fffffff
je 0x1800381d2
mov ecx, dword [r8 + 0x17c]
cmp ecx, 0xffffffff
je 0x1800381d2
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 0x180038246
mov rdx, r15
nop word [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 0x180038210
mov rax, qword [rbx + 0x1ba0]
test rax, rax
je 0x1800382c0
cmp byte [rax + 0x7f], r15b
jne 0x1800382c0
mov eax, dword [r10 + 0x1a08]
sub eax, 1
js 0x1800382c0
movsxd r9, eax
mov rax, qword [r10 + 0x1a10]
lea r10, [rax + r9*8]
mov r8, qword [r10]
test r8, r8
je 0x18003829e
cmp byte [r8 + 0x7f], r15b
je 0x18003829e
mov eax, dword [r8 + 0xc]
and eax, 0x40200
cmp eax, 0x40200
setne cl
bt dword [r8 + 0xc], 0x18
setae al
test al, cl
jne 0x1800382aa
sub r10, 8
sub r9, 1
jns 0x180038272
jmp 0x1800382c0
mov rax, qword [r8 + 0x378]
test rax, rax
cmovne r8, rax
mov rcx, r8
call fcn.18004f700
mov ecx, dword [rbx + 0x1a2c]
test ecx, ecx
jns 0x1800382e7
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.1800572d0
mov dword [rbx + 0x1a28], r15d
mov ecx, dword [rbx + 0x1b1c]
test ecx, ecx
jns 0x180038315
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.1800577e0
mov dword [rbx + 0x1b18], r15d
mov rcx, qword [rbx + 0x1ba0]
call fcn.180050cf0
mov rax, qword [0x1801035d0]
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.18003c150
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x30]
movaps xmm7, xmmword [rsp + 0x20]
mov byte [rbx + 2], 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret