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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r10d, dword [rsp + 0xa0]
mov esi, edx
mov rbx, qword [0x18030d958]
mov r9d, r10d
or r9d, 1
movaps xmmword [rsp + 0x30], xmm6
test r10b, 7
mov rax, qword [rbx + 0x3ef0]
cmovne r9d, r10d
mov ebp, r9d
or ebp, 0x20
test r9d, 0x3f0
mov byte [rax + 0xb8], 1
mov r15, qword [rbx + 0x3ef0]
cmovne ebp, r9d
mov rdi, qword [rbx + 0x3ef8]
mov qword [rsp + 0x20], r15
bt ebp, 0xb
jae 0x18005145a
test rdi, rdi
je 0x18005145a
cmp qword [rdi + 0x378], r15
jne 0x18005145a
mov r14b, 1
mov qword [rbx + 0x3ef8], r15
jmp 0x18005145d
xor r14b, r14b
xor r13b, r13b
call fcn.1800276c0
xor r12d, r12d
mov dword [rsp + 0xa0], eax
test al, al
je 0x18005149b
cmp byte [rbx + 0x4a7c], r12b
je 0x180051614
cmp dword [rbx + 0x4a9c], esi
jne 0x1800514a8
test byte [rbx + 0x4a80], 2
jne 0x1800514a8
mov byte [rsp + 0xa0], r12b
jmp 0x1800514a8
cmp byte [rbx + 0x4a7c], r12b
je 0x180051614
bt ebp, 9
jae 0x180051614
test byte [rbx + 0x4a80], 4
jne 0x180051614
mov rcx, qword [0x18030d958]
mov r9, qword [rcx + 0x3ef0]
cmp byte [rcx + 0x4913], r12b
je 0x18005150b
cmp byte [rcx + 0x4912], r12b
jne 0x18005150b
test byte [rcx + 0x4790], 4
jne 0x180051614
mov eax, dword [rcx + 0x48d8]
cmp eax, dword [rcx + 0x478c]
jne 0x180051614
test eax, eax
jne 0x1800515b1
jmp 0x180051614
mov eax, dword [rcx + 0x4794]
test al, 1
je 0x180051614
cmp qword [rcx + 0x3ef8], r9
je 0x18005152a
test al, al
jns 0x180051614
mov rdx, qword [rcx + 0x48d0]
test rdx, rdx
je 0x180051593
mov rdx, qword [rdx + 0x378]
test rdx, rdx
je 0x180051593
cmp byte [rdx + 0xb7], r12b
je 0x180051593
mov rax, qword [r9 + 0x378]
cmp rdx, rax
je 0x180051593
mov r8d, dword [rdx + 0x14]
bt r8d, 0x1b
jb 0x180051569
bt r8d, 0x1a
jae 0x180051593
cmp qword [rax + 0x378], rdx
je 0x180051593
cmp rax, rdx
je 0x180051593
mov rax, qword [rax + 0x370]
test rax, rax
jne 0x180051572
test dword [rcx + 0x4790], 0x100
je 0x180051614
test byte [rcx + 0x4790], 4
jne 0x180051614
mov eax, dword [r9 + 0x7c]
cmp dword [rcx + 0x478c], eax
jne 0x1800515b1
cmp byte [r9 + 0xb8], r12b
jne 0x180051614
mov rax, qword [0x18030d958]
mov dl, 1
mov dword [rsp + 0xa0], edx
mov dword [rax + 0x3f3c], esi
mov byte [rax + 0x3f44], r12b
test esi, esi
je 0x1800515e1
cmp dword [rax + 0x3f40], esi
je 0x1800515e1
mov qword [rax + 0x3f48], r12
movss xmm1, dword [rbx + 0x3f48]
movss xmm2, dword [0x18013921c]
movaps xmm0, xmm1
subss xmm0, dword [rbx + 0x18]
comiss xmm2, xmm0
jb 0x18005161b
comiss xmm1, xmm2
jb 0x18005161b
mov rcx, r15
mov dword [rbx + 0x4af8], esi
mov r13b, 1
call fcn.180030040
mov edx, dword [rsp + 0xa0]
test r14b, r14b
je 0x180051627
mov qword [rbx + 0x3ef8], rdi
mov r9d, 1
xorps xmm6, xmm6
test dl, dl
je 0x180051661
bt ebp, 0xc
jae 0x180051661
mov eax, dword [rbx + 0x3f40]
cmp eax, esi
je 0x180051661
test eax, eax
je 0x180051661
xor dl, dl
mov r15d, esi
bt ebp, 0x15
mov dword [rsp + 0xa0], edx
cmovb r15d, r12d
jmp 0x1800518d2
bt ebp, 0x15
mov r15d, esi
cmovb r15d, r12d
test dl, dl
je 0x1800518d2
mov edi, 0xffffffff
mov r14d, edi
test r9b, bpl
je 0x1800516b7
xor r8d, r8d
mov edx, r15d
xor ecx, ecx
call fcn.180031340
movzx edi, al
mov rax, qword [0x18030d958]
dec edi
cmp byte [rax + 0x3766], r12b
je 0x1800516b7
mov edx, r15d
mov ecx, 0x281
call fcn.180032ed0
test al, al
je 0x1800516b7
mov r14d, r12d
test bpl, 2
je 0x1800516ff
xor r8d, r8d
mov edx, r15d
mov ecx, r9d
call fcn.180031340
test al, al
je 0x1800516d6
cmp edi, 0xffffffff
cmove edi, r9d
mov rax, qword [0x18030d958]
cmp byte [rax + 0x3767], r12b
je 0x1800516ff
mov edx, r15d
mov ecx, 0x282
call fcn.180032ed0
test al, al
je 0x1800516ff
cmp r14d, 0xffffffff
cmove r14d, r9d
test bpl, 4
je 0x180051753
mov r9d, 2
xor r8d, r8d
mov ecx, r9d
mov edx, r15d
call fcn.180031340
test al, al
je 0x180051724
cmp edi, 0xffffffff
cmove edi, r9d
mov rax, qword [0x18030d958]
cmp byte [rax + 0x3768], r12b
je 0x18005174d
mov edx, r15d
mov ecx, 0x283
call fcn.180032ed0
test al, al
je 0x18005174d
cmp r14d, 0xffffffff
cmove r14d, r9d
mov r9d, 1
bt ebp, 0x10
jae 0x180051780
cmp byte [rbx + 0xe20], r12b
jne 0x1800518bf
cmp byte [rbx + 0xe21], r12b
jne 0x1800518bf
cmp byte [rbx + 0xe22], r12b
jne 0x1800518bf
cmp edi, 0xffffffff
je 0x180051841
cmp dword [rbx + 0x3f50], esi
je 0x180051841
bt ebp, 0x14
jb 0x1800517b0
lea ecx, [rdi + 0x281]
call fcn.1800239c0
mov dword [rax + 4], esi
mov dword [rax], esi
mov word [rax + 8], r12w
test bpl, 0x60
je 0x1800517e4
mov rdx, qword [rsp + 0x20]
mov ecx, esi
call fcn.180027490
mov dword [rbx + 0x3f7c], edi
bt ebp, 0x12
jb 0x1800517da
mov rdx, qword [rsp + 0x20]
mov ecx, esi
call fcn.180035340
mov rcx, qword [rsp + 0x20]
call fcn.180030040
test bpl, 0x10
jne 0x1800517fe
bt ebp, 8
jae 0x180051841
movsxd rax, edi
cmp word [rbx + rax*2 + 0x3752], 2
jne 0x180051841
mov r13b, 1
bt ebp, 0x11
jae 0x18005180e
call fcn.1800275d0
jmp 0x18005181a
mov rdx, qword [rsp + 0x20]
mov ecx, esi
call fcn.180027490
bt ebp, 0x12
jb 0x18005182c
mov rdx, qword [rsp + 0x20]
mov ecx, esi
call fcn.180035340
mov dword [rbx + 0x3f7c], edi
mov rdi, qword [rsp + 0x20]
mov rcx, rdi
call fcn.180030040
jmp 0x180051846
mov rdi, qword [rsp + 0x20]
test bpl, bpl
jns 0x180051881
cmp r14d, 0xffffffff
je 0x180051881
bt ebp, 0xa
jae 0x180051869
movsxd rax, r14d
movss xmm0, dword [rbx + rax*4 + 0x378c]
comiss xmm0, dword [rbx + 0x3c]
jae 0x18005186c
mov r13b, 1
bt ebp, 0x12
jb 0x18005187c
mov rdx, rdi
mov ecx, esi
call fcn.180035340
call fcn.1800275d0
mov r9d, 1
cmp dword [rbx + 0x3f50], esi
jne 0x1800518bf
bt ebp, 0xa
jae 0x1800518bf
movsxd rcx, dword [rbx + 0x3f7c]
movss xmm0, dword [rbx + rcx*4 + 0x3778]
comiss xmm0, xmm6
jbe 0x1800518bf
mov r8d, r9d
mov edx, r15d
call fcn.180031340
test al, al
je 0x1800518bf
movzx r13d, r9b
jmp 0x1800518c4
test r13b, r13b
je 0x1800518cb
mov byte [rbx + 0x4912], 1
mov edx, dword [rsp + 0xa0]
cmp dword [rbx + 0x48d8], esi
jne 0x180051916
cmp byte [rbx + 0x4912], r12b
jne 0x180051916
cmp byte [rbx + 0x4913], r12b
je 0x180051916
mov eax, dword [rbx + 0x3f50]
test eax, eax
je 0x180051904
cmp eax, esi
je 0x180051904
mov rcx, qword [rsp + 0x20]
cmp eax, dword [rcx + 0x7c]
jne 0x180051916
bt ebp, 0x13
movzx edx, dl
cmovae edx, r9d
mov dword [rsp + 0xa0], edx
cmp dword [rbx + 0x48e8], esi
jne 0x180051a04
cmp dword [rbx + 0x48ec], esi
sete cl
je 0x1800519cc
bt ebp, 0xa
jae 0x1800519cc
mov rax, qword [0x18030d958]
movss xmm3, dword [rbx + 0x40]
movss xmm2, dword [rbx + 0x3c]
movss xmm0, dword [rax + 0x2eec]
maxss xmm0, dword [rax + 0x2efc]
maxss xmm0, dword [rax + 0x350c]
ucomiss xmm0, xmm6
movaps xmm1, xmm0
subss xmm1, dword [rbx + 0x18]
jp 0x180051978
jne 0x180051978
mov r12d, r9d
jmp 0x1800519c6
comiss xmm1, xmm0
jae 0x1800519c6
comiss xmm6, xmm3
jb 0x180051991
comiss xmm2, xmm1
jbe 0x1800519c6
comiss xmm0, xmm2
jb 0x1800519c6
mov r12d, r9d
jmp 0x1800519c6
comiss xmm2, xmm1
jbe 0x18005199d
mov eax, 0xffffffff
jmp 0x1800519a9
subss xmm1, xmm2
divss xmm1, xmm3
cvttss2si eax, xmm1
comiss xmm2, xmm0
jbe 0x1800519b6
mov r12d, 0xffffffff
jmp 0x1800519c3
subss xmm0, xmm2
divss xmm0, xmm3
cvttss2si r12d, xmm0
sub r12d, eax
test r12d, r12d
setg cl
cmp dword [rbx + 0x48e0], esi
je 0x1800519d8
test cl, cl
je 0x180051a04
mov rdi, qword [rsp + 0x20]
mov ecx, esi
mov rdx, rdi
mov r13b, 1
call fcn.180027490
mov dword [rbx + 0x3f78], 5
bt ebp, 0x12
jb 0x180051a04
mov rdx, rdi
mov ecx, esi
call fcn.180035340
xor dil, dil
cmp dword [rbx + 0x3f50], esi
jne 0x180051b5f
mov eax, dword [rbx + 0x3f78]
cmp eax, 1
jne 0x180051b38
cmp byte [rbx + 0x3f5c], dil
je 0x180051a5c
movss xmm1, dword [rbx + 0xe08]
movss xmm0, dword [rbx + 0xe0c]
mov rax, qword [rsp + 0x80]
subss xmm1, dword [rax]
subss xmm0, dword [rax + 4]
movss dword [rbx + 0x3f64], xmm1
movss dword [rbx + 0x3f68], xmm0
movsxd r9, dword [rbx + 0x3f7c]
mov rax, qword [0x18030d958]
cmp byte [r9 + rax + 0xe10], dil
je 0x180051a96
lea ecx, [r9 + 0x281]
mov edx, r15d
call fcn.180032ed0
test al, al
je 0x180051a96
mov esi, dword [rsp + 0xa0]
mov dil, 1
jmp 0x180051b29
mov esi, dword [rsp + 0xa0]
test sil, sil
je 0x180051aa8
test bpl, 0x20
jne 0x180051ab1
mov eax, ebp
shr eax, 6
test al, 1
je 0x180051b24
cmp byte [rbx + 0x4a7c], dil
jne 0x180051b24
bt ebp, 8
jae 0x180051adb
cmp byte [r9 + rbx + 0x3766], dil
je 0x180051adb
cmp word [rbx + r9*2 + 0x375c], 2
jne 0x180051adb
mov r11b, 1
jmp 0x180051ade
xor r11b, r11b
bt ebp, 0xa
jae 0x180051af9
movss xmm0, dword [rbx + r9*4 + 0x378c]
comiss xmm0, dword [rbx + 0x3c]
jb 0x180051af9
mov r10b, 1
jmp 0x180051afc
xor r10b, r10b
lea ecx, [r9 + 0x281]
mov edx, r15d
call fcn.180032ed0
test r11b, r11b
jne 0x180051b24
test r10b, r10b
jne 0x180051b24
test al, al
movzx r13d, r13b
mov eax, 1
cmovne r13d, eax
call fcn.1800275d0
bt ebp, 0x12
jb 0x180051b51
mov byte [rbx + 0x4912], 1
jmp 0x180051b51
cmp eax, 5
jne 0x180051b4a
cmp dword [rbx + 0x48e8], esi
je 0x180051b4a
call fcn.1800275d0
mov esi, dword [rsp + 0xa0]
test r13b, r13b
je 0x180051b66
mov byte [rbx + 0x3f5f], 1
jmp 0x180051b66
mov esi, dword [rsp + 0xa0]
mov rax, qword [rsp + 0x90]
test rax, rax
je 0x180051b76
mov byte [rax], sil
mov rax, qword [rsp + 0x98]
test rax, rax
je 0x180051b86
mov byte [rax], dil
mov rbx, qword [rsp + 0x88]
movzx eax, r13b
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret