Function at 0x180051850
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 [0x180273ee8]
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 0x1800518ea
test rdi, rdi
je 0x1800518ea
cmp qword [rdi + 0x378], r15
jne 0x1800518ea
mov r14b, 1
mov qword [rbx + 0x3ef8], r15
jmp 0x1800518ed
xor r14b, r14b
xor r13b, r13b
call fcn.180027ac0
xor r12d, r12d
mov dword [rsp + 0xa0], eax
test al, al
je 0x18005192b
cmp byte [rbx + 0x4a7c], r12b
je 0x180051aa4
cmp dword [rbx + 0x4a9c], esi
jne 0x180051938
test byte [rbx + 0x4a80], 2
jne 0x180051938
mov byte [rsp + 0xa0], r12b
jmp 0x180051938
cmp byte [rbx + 0x4a7c], r12b
je 0x180051aa4
bt ebp, 9
jae 0x180051aa4
test byte [rbx + 0x4a80], 4
jne 0x180051aa4
mov rcx, qword [0x180273ee8]
mov r9, qword [rcx + 0x3ef0]
cmp byte [rcx + 0x4913], r12b
je 0x18005199b
cmp byte [rcx + 0x4912], r12b
jne 0x18005199b
test byte [rcx + 0x4790], 4
jne 0x180051aa4
mov eax, dword [rcx + 0x48d8]
cmp eax, dword [rcx + 0x478c]
jne 0x180051aa4
test eax, eax
jne 0x180051a41
jmp 0x180051aa4
mov eax, dword [rcx + 0x4794]
test al, 1
je 0x180051aa4
cmp qword [rcx + 0x3ef8], r9
je 0x1800519ba
test al, al
jns 0x180051aa4
mov rdx, qword [rcx + 0x48d0]
test rdx, rdx
je 0x180051a23
mov rdx, qword [rdx + 0x378]
test rdx, rdx
je 0x180051a23
cmp byte [rdx + 0xb7], r12b
je 0x180051a23
mov rax, qword [r9 + 0x378]
cmp rdx, rax
je 0x180051a23
mov r8d, dword [rdx + 0x14]
bt r8d, 0x1b
jb 0x1800519f9
bt r8d, 0x1a
jae 0x180051a23
cmp qword [rax + 0x378], rdx
je 0x180051a23
cmp rax, rdx
je 0x180051a23
mov rax, qword [rax + 0x370]
test rax, rax
jne 0x180051a02
test dword [rcx + 0x4790], 0x100
je 0x180051aa4
test byte [rcx + 0x4790], 4
jne 0x180051aa4
mov eax, dword [r9 + 0x7c]
cmp dword [rcx + 0x478c], eax
jne 0x180051a41
cmp byte [r9 + 0xb8], r12b
jne 0x180051aa4
mov rax, qword [0x180273ee8]
mov dl, 1
mov dword [rsp + 0xa0], edx
mov dword [rax + 0x3f3c], esi
mov byte [rax + 0x3f44], r12b
test esi, esi
je 0x180051a71
cmp dword [rax + 0x3f40], esi
je 0x180051a71
mov qword [rax + 0x3f48], r12
movss xmm1, dword [rbx + 0x3f48]
movss xmm2, dword [0x18013d38c]
movaps xmm0, xmm1
subss xmm0, dword [rbx + 0x18]
comiss xmm2, xmm0
jb 0x180051aab
comiss xmm1, xmm2
jb 0x180051aab
mov rcx, r15
mov dword [rbx + 0x4af8], esi
mov r13b, 1
call fcn.180030450
mov edx, dword [rsp + 0xa0]
test r14b, r14b
je 0x180051ab7
mov qword [rbx + 0x3ef8], rdi
mov r9d, 1
xorps xmm6, xmm6
test dl, dl
je 0x180051af1
bt ebp, 0xc
jae 0x180051af1
mov eax, dword [rbx + 0x3f40]
cmp eax, esi
je 0x180051af1
test eax, eax
je 0x180051af1
xor dl, dl
mov r15d, esi
bt ebp, 0x15
mov dword [rsp + 0xa0], edx
cmovb r15d, r12d
jmp 0x180051d62
bt ebp, 0x15
mov r15d, esi
cmovb r15d, r12d
test dl, dl
je 0x180051d62
mov edi, 0xffffffff
mov r14d, edi
test r9b, bpl
je 0x180051b47
xor r8d, r8d
mov edx, r15d
xor ecx, ecx
call fcn.180031770
movzx edi, al
mov rax, qword [0x180273ee8]
dec edi
cmp byte [rax + 0x3766], r12b
je 0x180051b47
mov edx, r15d
mov ecx, 0x281
call fcn.180033300
test al, al
je 0x180051b47
mov r14d, r12d
test bpl, 2
je 0x180051b8f
xor r8d, r8d
mov edx, r15d
mov ecx, r9d
call fcn.180031770
test al, al
je 0x180051b66
cmp edi, 0xffffffff
cmove edi, r9d
mov rax, qword [0x180273ee8]
cmp byte [rax + 0x3767], r12b
je 0x180051b8f
mov edx, r15d
mov ecx, 0x282
call fcn.180033300
test al, al
je 0x180051b8f
cmp r14d, 0xffffffff
cmove r14d, r9d
test bpl, 4
je 0x180051be3
mov r9d, 2
xor r8d, r8d
mov ecx, r9d
mov edx, r15d
call fcn.180031770
test al, al
je 0x180051bb4
cmp edi, 0xffffffff
cmove edi, r9d
mov rax, qword [0x180273ee8]
cmp byte [rax + 0x3768], r12b
je 0x180051bdd
mov edx, r15d
mov ecx, 0x283
call fcn.180033300
test al, al
je 0x180051bdd
cmp r14d, 0xffffffff
cmove r14d, r9d
mov r9d, 1
bt ebp, 0x10
jae 0x180051c10
cmp byte [rbx + 0xe20], r12b
jne 0x180051d4f
cmp byte [rbx + 0xe21], r12b
jne 0x180051d4f
cmp byte [rbx + 0xe22], r12b
jne 0x180051d4f
cmp edi, 0xffffffff
je 0x180051cd1
cmp dword [rbx + 0x3f50], esi
je 0x180051cd1
bt ebp, 0x14
jb 0x180051c40
lea ecx, [rdi + 0x281]
call fcn.180023d90
mov dword [rax + 4], esi
mov dword [rax], esi
mov word [rax + 8], r12w
test bpl, 0x60
je 0x180051c74
mov rdx, qword [rsp + 0x20]
mov ecx, esi
call fcn.180027890
mov dword [rbx + 0x3f7c], edi
bt ebp, 0x12
jb 0x180051c6a
mov rdx, qword [rsp + 0x20]
mov ecx, esi
call fcn.180035880
mov rcx, qword [rsp + 0x20]
call fcn.180030450
test bpl, 0x10
jne 0x180051c8e
bt ebp, 8
jae 0x180051cd1
movsxd rax, edi
cmp word [rbx + rax*2 + 0x3752], 2
jne 0x180051cd1
mov r13b, 1
bt ebp, 0x11
jae 0x180051c9e
call fcn.1800279d0
jmp 0x180051caa
mov rdx, qword [rsp + 0x20]
mov ecx, esi
call fcn.180027890
bt ebp, 0x12
jb 0x180051cbc
mov rdx, qword [rsp + 0x20]
mov ecx, esi
call fcn.180035880
mov dword [rbx + 0x3f7c], edi
mov rdi, qword [rsp + 0x20]
mov rcx, rdi
call fcn.180030450
jmp 0x180051cd6
mov rdi, qword [rsp + 0x20]
test bpl, bpl
jns 0x180051d11
cmp r14d, 0xffffffff
je 0x180051d11
bt ebp, 0xa
jae 0x180051cf9
movsxd rax, r14d
movss xmm0, dword [rbx + rax*4 + 0x378c]
comiss xmm0, dword [rbx + 0x3c]
jae 0x180051cfc
mov r13b, 1
bt ebp, 0x12
jb 0x180051d0c
mov rdx, rdi
mov ecx, esi
call fcn.180035880
call fcn.1800279d0
mov r9d, 1
cmp dword [rbx + 0x3f50], esi
jne 0x180051d4f
bt ebp, 0xa
jae 0x180051d4f
movsxd rcx, dword [rbx + 0x3f7c]
movss xmm0, dword [rbx + rcx*4 + 0x3778]
comiss xmm0, xmm6
jbe 0x180051d4f
mov r8d, r9d
mov edx, r15d
call fcn.180031770
test al, al
je 0x180051d4f
movzx r13d, r9b
jmp 0x180051d54
test r13b, r13b
je 0x180051d5b
mov byte [rbx + 0x4912], 1
mov edx, dword [rsp + 0xa0]
cmp dword [rbx + 0x48d8], esi
jne 0x180051da6
cmp byte [rbx + 0x4912], r12b
jne 0x180051da6
cmp byte [rbx + 0x4913], r12b
je 0x180051da6
mov eax, dword [rbx + 0x3f50]
test eax, eax
je 0x180051d94
cmp eax, esi
je 0x180051d94
mov rcx, qword [rsp + 0x20]
cmp eax, dword [rcx + 0x7c]
jne 0x180051da6
bt ebp, 0x13
movzx edx, dl
cmovae edx, r9d
mov dword [rsp + 0xa0], edx
cmp dword [rbx + 0x48e8], esi
jne 0x180051e94
cmp dword [rbx + 0x48ec], esi
sete cl
je 0x180051e5c
bt ebp, 0xa
jae 0x180051e5c
mov rax, qword [0x180273ee8]
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 0x180051e08
jne 0x180051e08
mov r12d, r9d
jmp 0x180051e56
comiss xmm1, xmm0
jae 0x180051e56
comiss xmm6, xmm3
jb 0x180051e21
comiss xmm2, xmm1
jbe 0x180051e56
comiss xmm0, xmm2
jb 0x180051e56
mov r12d, r9d
jmp 0x180051e56
comiss xmm2, xmm1
jbe 0x180051e2d
mov eax, 0xffffffff
jmp 0x180051e39
subss xmm1, xmm2
divss xmm1, xmm3
cvttss2si eax, xmm1
comiss xmm2, xmm0
jbe 0x180051e46
mov r12d, 0xffffffff
jmp 0x180051e53
subss xmm0, xmm2
divss xmm0, xmm3
cvttss2si r12d, xmm0
sub r12d, eax
test r12d, r12d
setg cl
cmp dword [rbx + 0x48e0], esi
je 0x180051e68
test cl, cl
je 0x180051e94
mov rdi, qword [rsp + 0x20]
mov ecx, esi
mov rdx, rdi
mov r13b, 1
call fcn.180027890
mov dword [rbx + 0x3f78], 5
bt ebp, 0x12
jb 0x180051e94
mov rdx, rdi
mov ecx, esi
call fcn.180035880
xor dil, dil
cmp dword [rbx + 0x3f50], esi
jne 0x180051fef
mov eax, dword [rbx + 0x3f78]
cmp eax, 1
jne 0x180051fc8
cmp byte [rbx + 0x3f5c], dil
je 0x180051eec
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 [0x180273ee8]
cmp byte [r9 + rax + 0xe10], dil
je 0x180051f26
lea ecx, [r9 + 0x281]
mov edx, r15d
call fcn.180033300
test al, al
je 0x180051f26
mov esi, dword [rsp + 0xa0]
mov dil, 1
jmp 0x180051fb9
mov esi, dword [rsp + 0xa0]
test sil, sil
je 0x180051f38
test bpl, 0x20
jne 0x180051f41
mov eax, ebp
shr eax, 6
test al, 1
je 0x180051fb4
cmp byte [rbx + 0x4a7c], dil
jne 0x180051fb4
bt ebp, 8
jae 0x180051f6b
cmp byte [r9 + rbx + 0x3766], dil
je 0x180051f6b
cmp word [rbx + r9*2 + 0x375c], 2
jne 0x180051f6b
mov r11b, 1
jmp 0x180051f6e
xor r11b, r11b
bt ebp, 0xa
jae 0x180051f89
movss xmm0, dword [rbx + r9*4 + 0x378c]
comiss xmm0, dword [rbx + 0x3c]
jb 0x180051f89
mov r10b, 1
jmp 0x180051f8c
xor r10b, r10b
lea ecx, [r9 + 0x281]
mov edx, r15d
call fcn.180033300
test r11b, r11b
jne 0x180051fb4
test r10b, r10b
jne 0x180051fb4
test al, al
movzx r13d, r13b
mov eax, 1
cmovne r13d, eax
call fcn.1800279d0
bt ebp, 0x12
jb 0x180051fe1
mov byte [rbx + 0x4912], 1
jmp 0x180051fe1
cmp eax, 5
jne 0x180051fda
cmp dword [rbx + 0x48e8], esi
je 0x180051fda
call fcn.1800279d0
mov esi, dword [rsp + 0xa0]
test r13b, r13b
je 0x180051ff6
mov byte [rbx + 0x3f5f], 1
jmp 0x180051ff6
mov esi, dword [rsp + 0xa0]
mov rax, qword [rsp + 0x90]
test rax, rax
je 0x180052006
mov byte [rax], sil
mov rax, qword [rsp + 0x98]
test rax, rax
je 0x180052016
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