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

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
sub rsp, 0x60
mov qword [rax + 8], rdi
mov rbx, rdx
mov qword [rax + 0x10], r14
lea rdx, [0x140000000]
movaps xmmword [rax - 0x28], xmm6
mov ebp, r8d
mov rsi, rcx
cmp ebp, 0x30000
jg 0x1400379d1
je 0x140037de4
lea eax, [rbp - 0x10000]
cmp eax, 0xd
ja case.0x1400379ec.196618
cdqe
mov ecx, dword [rdx + rax*4 + 0x3856c]
add rcx, rdx
jmp rcx
lea eax, [rbp - 0x30001]
cmp eax, 0xc
ja case.0x1400379ec.196618
cdqe
mov ecx, dword [rdx + rax*4 + 0x385a4]
add rcx, rdx
jmp rcx
movzx r8d, byte [rbx + 0x10]
test r8b, r8b
je 0x140037e44
and ebp, 0x20000
or ebp, 0x10001
jmp 0x1400379a6
movzx r8d, byte [rbx + 0x10]
test r8b, r8b
je 0x140037fd9
and ebp, 0x20000
bts ebp, 0x10
jmp 0x1400379a6
mov rdx, rbx
mov rcx, rsi
call fcn.140037410
mov byte [rbx + 0xf], 0
jmp 0x14003854e
lea rbp, [rbx + 0x18]
movsx rax, word [rbp + 0xe00]
cmp eax, 0x63
je 0x140038276
movsx r8, word [rbp + 0xdfe]
add rax, rax
shl r8, 4
add r8, rbp
movups xmm0, xmmword [rbp + rax*8]
mov dword [r8 + 0xc], 0xffffffff
movq r14, xmm0
movups xmmword [rsp + 0x20], xmm0
mov rax, r14
mov dword [r8], r14d
psrldq xmm0, 8
movd r10d, xmm0
shr rax, 0x20
mov dword [r8 + 8], eax
mov dword [r8 + 4], r10d
test r10d, r10d
je 0x140037b08
mov ecx, dword [rbp + 0xe04]
xor edi, edi
lea eax, [rcx + r10]
cmp eax, dword [rbp + 0xe08]
jle 0x140037ab1
mov qword [r8 + 4], rdi
jmp 0x140037afa
mov dword [r8 + 0xc], ecx
add dword [rbp + 0xe04], r10d
cmp dword [r8 + 4], edi
jle 0x140037afa
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [r8]
mov eax, dword [r8 + 0xc]
add ecx, edi
mov rdx, qword [rsi + 0x10]
add eax, edi
movsxd r9, ecx
inc edi
movsxd rcx, eax
movzx eax, word [rdx + r9*2]
mov word [rbp + rcx*2 + 0x630], ax
cmp edi, dword [r8 + 4]
jl 0x140037ad0
mov r8d, r10d
mov edx, r14d
mov rcx, rsi
call fcn.140035080
mov edi, dword [rsp + 0x24]
test edi, edi
je 0x140037b34
movsxd rax, dword [rsp + 0x2c]
mov r9d, edi
mov edx, r14d
mov rcx, rsi
lea r8, [rax*2 + 0x630]
add r8, rbp
call fcn.140035120
add dword [rbp + 0xe08], edi
lea eax, [r14 + rdi]
mov dword [rbx], eax
inc word [rbp + 0xdfe]
inc word [rbp + 0xe00]
mov byte [rbx + 0xf], 0
jmp 0x14003854e
mov eax, dword [rbx + 4]
mov ecx, dword [rbx + 8]
cmp eax, ecx
je 0x140037b70
jle 0x140037b62
mov eax, ecx
mov dword [rbx + 4], ecx
mov dword [rbx], eax
mov dword [rbx + 8], eax
mov byte [rbx + 0xf], 0
jmp 0x14003854e
mov eax, dword [rbx]
test eax, eax
jle 0x140038276
dec eax
mov byte [rbx + 0xf], 0
mov dword [rbx], eax
jmp 0x14003854e
mov eax, dword [rbx + 4]
mov r8d, dword [rbx + 8]
cmp eax, r8d
je 0x140037bc8
jle 0x140037ba1
mov dword [rbx + 8], eax
mov ecx, r8d
mov dword [rbx + 4], r8d
jmp 0x140037ba6
mov ecx, eax
mov eax, r8d
mov edx, dword [rsi + 0x3c]
cmp ecx, edx
cmovg ecx, edx
cmp eax, edx
jle 0x140037bb7
mov dword [rbx + 8], edx
mov eax, edx
cmp ecx, eax
jne 0x140037bbd
mov dword [rbx], ecx
mov dword [rbx], eax
mov dword [rbx + 4], eax
mov byte [rbx + 0xf], 0
jmp 0x140037bcc
inc dword [rbx]
mov eax, dword [rbx]
mov ecx, dword [rsi + 0x3c]
cmp eax, ecx
jle 0x140037bd5
mov dword [rbx], ecx
mov byte [rbx + 0xf], 0
jmp 0x14003854e
mov eax, dword [rbx + 4]
mov ecx, dword [rbx + 8]
cmp eax, ecx
je 0x140037bfd
jle 0x140037bef
mov eax, ecx
mov dword [rbx + 4], ecx
mov dword [rbx], eax
mov dword [rbx + 8], eax
mov byte [rbx + 0xf], 0
jmp 0x14003854e
mov edx, dword [rbx]
mov rcx, rsi
call fcn.140035320
mov dword [rbx], eax
mov ecx, dword [rsi + 0x3c]
cmp eax, ecx
jle 0x14003854e
mov dword [rbx], ecx
jmp 0x14003854e
mov eax, dword [rbx + 4]
mov r8d, dword [rbx + 8]
cmp eax, r8d
je 0x140037c5f
jle 0x140037c35
mov dword [rbx + 8], eax
mov ecx, r8d
mov dword [rbx + 4], r8d
jmp 0x140037c3a
mov ecx, eax
mov eax, r8d
mov edx, dword [rsi + 0x3c]
cmp ecx, edx
cmovg ecx, edx
cmp eax, edx
jle 0x140037c4b
mov dword [rbx + 8], edx
mov eax, edx
cmp ecx, eax
jne 0x140037c51
mov dword [rbx], ecx
mov dword [rbx], eax
mov dword [rbx + 4], eax
mov byte [rbx + 0xf], 0
jmp 0x14003854e
mov edx, dword [rbx]
mov rcx, rsi
call fcn.1400353d0
mov dword [rbx], eax
mov ecx, dword [rsi + 0x3c]
cmp eax, ecx
jle 0x14003854e
mov dword [rbx], ecx
jmp 0x14003854e
xor edi, edi
mov qword [rbx + 4], rdi
mov dword [rbx], edi
jmp 0x14003854a
mov eax, dword [rsi + 0x3c]
xor edi, edi
mov qword [rbx + 4], rdi
mov dword [rbx], eax
jmp 0x14003854a
mov r8d, dword [rbx + 4]
mov ecx, dword [rbx + 8]
mov eax, dword [rsi + 0x3c]
cmp r8d, ecx
je 0x140037cd0
mov edx, r8d
cmp r8d, eax
jle 0x140037cb6
mov dword [rbx + 4], eax
mov edx, eax
mov r9d, ecx
cmp ecx, eax
jle 0x140037cc3
mov dword [rbx + 8], eax
mov r9d, eax
mov r8d, edx
mov ecx, r9d
cmp edx, r9d
jne 0x140037cd0
mov dword [rbx], edx
mov edx, dword [rbx]
cmp edx, eax
jle 0x140037cda
mov dword [rbx], eax
mov edx, eax
cmp r8d, ecx
je 0x140037cf2
mov edx, r8d
jle 0x140037ce9
mov dword [rbx + 4], ecx
mov edx, ecx
mov dword [rbx], edx
mov dword [rbx + 8], edx
mov byte [rbx + 0xf], 0
cmp byte [rbx + 0x10], 0
je 0x140037d05
xor edi, edi
mov dword [rbx], edi
mov byte [rbx + 0xf], dil
jmp 0x14003854e
test edx, edx
jle 0x140037bd5
movzx r8d, word [0x14007513c]
nop word [rax + rax]
mov rax, qword [rsi + 0x10]
mov ecx, edx
cmp word [rax + rcx*2 - 2], r8w
je 0x140037bd5
dec edx
mov dword [rbx], edx
test edx, edx
jg 0x140037d20
mov byte [rbx + 0xf], 0
jmp 0x14003854e
mov ecx, dword [rbx + 4]
mov eax, dword [rbx + 8]
mov r8d, dword [rsi + 0x3c]
cmp ecx, eax
je 0x140037d7a
mov edx, ecx
cmp ecx, r8d
jle 0x140037d5f
mov dword [rbx + 4], r8d
mov edx, r8d
mov r9d, eax
cmp eax, r8d
jle 0x140037d6e
mov dword [rbx + 8], r8d
mov r9d, r8d
mov ecx, edx
mov eax, r9d
cmp edx, r9d
jne 0x140037d7a
mov dword [rbx], edx
mov edx, dword [rbx]
cmp edx, r8d
jle 0x140037d87
mov dword [rbx], r8d
mov edx, r8d
cmp ecx, eax
je 0x140037d9d
mov edx, ecx
jle 0x140037d94
mov dword [rbx + 4], eax
mov edx, eax
mov dword [rbx], edx
mov dword [rbx + 8], edx
mov byte [rbx + 0xf], 0
cmp byte [rbx + 0x10], 0
je 0x140037daf
mov dword [rbx], r8d
mov byte [rbx + 0xf], 0
jmp 0x14003854e
cmp edx, r8d
jge 0x140037bd5
movzx r9d, word [0x14007513c]
mov rax, qword [rsi + 0x10]
movsxd rcx, edx
cmp word [rax + rcx*2], r9w
je 0x140037bd5
inc edx
mov dword [rbx], edx
cmp edx, r8d
jl 0x140037dc0
mov byte [rbx + 0xf], 0
jmp 0x14003854e
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 8]
mov ecx, dword [rsi + 0x3c]
cmp r8d, edx
je 0x140037e1a
mov eax, r8d
cmp r8d, ecx
jle 0x140037e00
mov dword [rbx + 4], ecx
mov eax, ecx
mov r9d, edx
cmp edx, ecx
jle 0x140037e0d
mov dword [rbx + 8], ecx
mov r9d, ecx
mov r8d, eax
mov edx, r9d
cmp eax, r9d
jne 0x140037e1a
mov dword [rbx], eax
mov eax, dword [rbx]
cmp eax, ecx
cmovg eax, ecx
cmp r8d, edx
jne 0x140037e2e
mov dword [rbx + 8], eax
mov dword [rbx + 4], eax
jmp 0x140037e30
mov eax, edx
test eax, eax
jle 0x140037e39
dec eax
mov dword [rbx + 8], eax
mov dword [rbx], eax
mov byte [rbx + 0xf], 0
jmp 0x14003854e
mov ecx, dword [rbx + 4]
mov eax, dword [rbx + 8]
bt ebp, 0x11
jae 0x140037eb7
cmp ecx, eax
jne 0x140037eb3
mov ecx, dword [rbx]
mov eax, ecx
mov dword [rbx + 8], ecx
mov dword [rbx + 4], ecx
mov edx, dword [rsi + 0x3c]
cmp ecx, eax
je 0x140037e7d
cmp ecx, edx
jle 0x140037e6e
mov dword [rbx + 4], edx
mov ecx, edx
cmp eax, edx
jle 0x140037e77
mov dword [rbx + 8], edx
mov eax, edx
cmp ecx, eax
jne 0x140037e7d
mov dword [rbx], ecx
mov eax, dword [rbx]
cmp eax, edx
jle 0x140037e87
mov dword [rbx], edx
mov eax, edx
mov r9d, r8d
lea rcx, [rsp + 0x20]
mov r8d, eax
mov rdx, rsi
call fcn.1400377b0
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x14003854e
cmp byte [rbx + 0xf], 0
je 0x140037eee
movss xmm6, dword [rbx + 0x14]
jmp 0x140037ef4
mov dword [rbx], eax
jmp 0x140037e5e
cmp ecx, eax
je 0x140037e5e
mov edx, ecx
jle 0x140037ec9
mov edx, eax
mov dword [rbx + 4], eax
mov eax, ecx
mov dword [rbx + 8], ecx
mov ecx, dword [rsi + 0x3c]
cmp edx, ecx
cmovg edx, ecx
cmp eax, ecx
jle 0x140037eda
mov dword [rbx + 8], ecx
mov eax, ecx
cmp edx, eax
jne 0x140037ee0
mov dword [rbx], edx
mov dword [rbx], eax
mov dword [rbx + 4], eax
mov byte [rbx + 0xf], 0
mov edx, dword [rsi + 0x3c]
jmp 0x140037e7d
movss xmm6, dword [rsp + 0x20]
mov r14d, dword [rsp + 0x2c]
mov rdx, rsi
add r14d, ecx
lea rcx, [rsp + 0x38]
mov r8d, r14d
mov dword [rbx], r14d
call fcn.140035240
mov r10d, dword [rsp + 0x4c]
xor edi, edi
movss xmm1, dword [rsp + 0x38]
test r10d, r10d
jle 0x140037f8f
movss xmm3, dword [0x140049ba0]
movsxd rax, r14d
lea r8, [rax + rax]
mov rax, qword [rsi + 0x10]
movzx ecx, word [r8 + rax]
cmp ecx, 0xa
je 0x140037f8f
mov r9, qword [0x140076ff0]
mov rdx, qword [r9 + 0x18f0]
cmp ecx, dword [rdx + 0x20]
jge 0x140037f5c
mov rax, qword [rdx + 0x28]
movss xmm2, dword [rax + rcx*4]
jmp 0x140037f61
movss xmm2, dword [rdx + 0x48]
movss xmm0, dword [r9 + 0x18f8]
divss xmm0, dword [rdx]
mulss xmm0, xmm2
ucomiss xmm0, xmm3
jp 0x140037f79
je 0x140037f8f
addss xmm1, xmm0
comiss xmm1, xmm6
ja 0x140037f8f
inc dword [rbx]
inc edi
add r8, 2
cmp edi, r10d
jl 0x140037f30
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
mov eax, dword [rsi + 0x3c]
cmp ecx, edx
je 0x140037fb4
cmp ecx, eax
jle 0x140037fa5
mov dword [rbx + 4], eax
mov ecx, eax
cmp edx, eax
jle 0x140037fae
mov dword [rbx + 8], eax
mov edx, eax
cmp ecx, edx
jne 0x140037fb4
mov dword [rbx], ecx
mov ecx, dword [rbx]
cmp ecx, eax
jle 0x140037fbe
mov dword [rbx], eax
mov ecx, eax
movss dword [rbx + 0x14], xmm6
mov byte [rbx + 0xf], 1
bt ebp, 0x11
jae 0x14003854e
mov dword [rbx + 8], ecx
jmp 0x14003854e
mov eax, dword [rbx + 4]
mov ecx, dword [rbx + 8]
bt ebp, 0x11
jae 0x140038050
cmp eax, ecx
jne 0x14003804c
mov eax, dword [rbx]
mov ecx, eax
mov dword [rbx + 8], eax
mov dword [rbx + 4], eax
mov edx, dword [rsi + 0x3c]
cmp eax, ecx
je 0x140038012
cmp eax, edx
jle 0x140038003
mov dword [rbx + 4], edx
mov eax, edx
cmp ecx, edx
jle 0x14003800c
mov dword [rbx + 8], edx
mov ecx, edx
cmp eax, ecx
jne 0x140038012
mov dword [rbx], eax
mov eax, dword [rbx]
cmp eax, edx
jle 0x14003801c
mov dword [rbx], edx
mov eax, edx
mov r9d, r8d
lea rcx, [rsp + 0x20]
mov r8d, eax
mov rdx, rsi
call fcn.1400377b0
mov r14d, dword [rsp + 0x34]
cmp r14d, dword [rsp + 0x2c]
je 0x14003854e
cmp byte [rbx + 0xf], 0
je 0x140038069
movss xmm6, dword [rbx + 0x14]
jmp 0x14003806f
mov dword [rbx], ecx
jmp 0x140037ff3
cmp eax, ecx
je 0x140037ff3
jle 0x14003805b
mov eax, ecx
mov dword [rbx + 4], ecx
mov dword [rbx], eax
mov dword [rbx + 8], eax
mov byte [rbx + 0xf], 0
mov edx, dword [rsi + 0x3c]
jmp 0x140038012
movss xmm6, dword [rsp + 0x20]
mov r8d, r14d
mov dword [rbx], r14d
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.140035240
mov r10d, dword [rsp + 0x4c]
xor edi, edi
movss xmm1, dword [rsp + 0x38]
test r10d, r10d
jle 0x140037f8f
movss xmm3, dword [0x140049ba0]
lea eax, [rdi + r14]
movsxd rcx, eax
mov rax, qword [rsi + 0x10]
movzx r8d, word [rax + rcx*2]
cmp r8d, 0xa
je 0x140037f8f
mov r9, qword [0x140076ff0]
mov rdx, qword [r9 + 0x18f0]
cmp r8d, dword [rdx + 0x20]
jge 0x1400380da
mov rax, qword [rdx + 0x28]
movss xmm2, dword [rax + r8*4]
jmp 0x1400380df
movss xmm2, dword [rdx + 0x48]
movss xmm0, dword [r9 + 0x18f8]
divss xmm0, dword [rdx]
mulss xmm0, xmm2
ucomiss xmm0, xmm3
jp 0x1400380fb
je 0x140037f8f
addss xmm1, xmm0
comiss xmm1, xmm6
ja 0x140037f8f
inc dword [rbx]
inc edi
cmp edi, r10d
jl 0x1400380a0
jmp 0x140037f8f
mov edi, dword [rbx + 4]
cmp edi, dword [rbx + 8]
jne 0x140038126
mov edi, dword [rbx]
mov dword [rbx + 8], edi
mov dword [rbx + 4], edi
mov edx, dword [rbx]
mov rcx, rsi
call fcn.140035320
mov dword [rbx], eax
mov dword [rbx + 8], eax
mov ecx, dword [rsi + 0x3c]
cmp edi, eax
je 0x140038158
cmp edi, ecx
jle 0x140038145
mov dword [rbx + 4], ecx
mov edi, ecx
mov edx, eax
cmp eax, ecx
jle 0x140038150
mov dword [rbx + 8], ecx
mov edx, ecx
cmp edi, edx
jne 0x140038158
mov dword [rbx], edi
mov eax, edi
cmp eax, ecx
jle 0x14003854e
mov dword [rbx], ecx
jmp 0x14003854e
mov edi, dword [rbx + 4]
cmp edi, dword [rbx + 8]
jne 0x140038177
mov edi, dword [rbx]
mov dword [rbx + 8], edi
mov dword [rbx + 4], edi
mov edx, dword [rbx]
mov rcx, rsi
call fcn.1400353d0
mov dword [rbx], eax
mov dword [rbx + 8], eax
mov ecx, dword [rsi + 0x3c]
cmp edi, eax
je 0x1400381a9
cmp edi, ecx
jle 0x140038196
mov dword [rbx + 4], ecx
mov edi, ecx
mov edx, eax
cmp eax, ecx
jle 0x1400381a1
mov dword [rbx + 8], ecx
mov edx, ecx
cmp edi, edx
jne 0x1400381a9
mov dword [rbx], edi
mov eax, edi
cmp eax, ecx
jle 0x14003854e
mov dword [rbx], ecx
jmp 0x14003854e
mov edx, dword [rbx + 4]
mov eax, dword [rbx + 8]
cmp edx, eax
jne 0x1400381cb
mov eax, dword [rbx]
mov edx, eax
mov dword [rbx + 4], eax
jmp 0x1400381cd
mov dword [rbx], eax
inc eax
mov dword [rbx + 8], eax
mov ecx, dword [rsi + 0x3c]
cmp edx, eax
je 0x1400381f9
cmp edx, ecx
jle 0x1400381e2
mov dword [rbx + 4], ecx
mov edx, ecx
mov r8d, eax
cmp eax, ecx
jle 0x1400381ef
mov dword [rbx + 8], ecx
mov r8d, ecx
cmp edx, r8d
mov eax, r8d
cmove eax, r8d
mov dword [rbx], eax
mov byte [rbx + 0xf], 0
jmp 0x14003854e
mov eax, dword [rbx + 8]
cmp dword [rbx + 4], eax
jne 0x140038237
mov r8d, dword [rbx]
cmp r8d, dword [rsi + 0x3c]
jge 0x140038276
mov r9d, 1
mov rdx, rbx
mov rcx, rsi
call fcn.140037680
mov byte [rbx + 0xf], 0
jmp 0x14003854e
mov eax, dword [rbx + 8]
cmp dword [rbx + 4], eax
je 0x14003824b
mov rdx, rbx
mov rcx, rsi
call fcn.140037710
mov byte [rbx + 0xf], 0
jmp 0x14003854e
mov eax, dword [rsi + 0x3c]
mov r8d, dword [rbx]
cmp r8d, eax
jle 0x14003825b
mov dword [rbx], eax
mov r8d, eax
test r8d, r8d
jle 0x140038276
dec r8d
mov r9d, 1
mov rdx, rbx
mov rcx, rsi
call fcn.140037680
dec dword [rbx]
mov byte [rbx + 0xf], 0
jmp 0x14003854e
mov eax, dword [rbx + 8]
cmp dword [rbx + 4], eax
jne 0x14003828c
mov eax, dword [rbx]
mov dword [rbx + 4], eax
xor edi, edi
mov dword [rbx + 8], edi
mov dword [rbx], edi
jmp 0x14003854a
mov eax, dword [rbx + 8]
cmp dword [rbx + 4], eax
jne 0x1400382b9
mov eax, dword [rbx]
mov dword [rbx + 8], eax
mov dword [rbx + 4], eax
mov eax, dword [rsi + 0x3c]
mov dword [rbx + 8], eax
mov dword [rbx], eax
mov byte [rbx + 0xf], 0
jmp 0x14003854e
mov dword [rbx], eax
mov eax, dword [rsi + 0x3c]
mov dword [rbx + 8], eax
mov dword [rbx], eax
mov byte [rbx + 0xf], 0
jmp 0x14003854e
mov r8d, dword [rbx + 4]
mov ecx, dword [rbx + 8]
mov eax, dword [rsi + 0x3c]
cmp r8d, ecx
je 0x140038302
mov edx, r8d
cmp r8d, eax
jle 0x1400382e8
mov dword [rbx + 4], eax
mov edx, eax
mov r9d, ecx
cmp ecx, eax
jle 0x1400382f5
mov dword [rbx + 8], eax
mov r9d, eax
mov r8d, edx
mov ecx, r9d
cmp edx, r9d
jne 0x140038302
mov dword [rbx], edx
mov edx, dword [rbx]
mov edi, edx
cmp edx, eax
jle 0x140038310
mov dword [rbx], eax
mov edx, eax
mov edi, eax
cmp r8d, ecx
jne 0x14003831d
mov dword [rbx + 8], edx
mov dword [rbx + 4], edx
jmp 0x140038323
mov dword [rbx], ecx
mov edx, ecx
mov edi, ecx
cmp byte [rbx + 0x10], 0
je 0x140038339
xor edi, edi
mov dword [rbx], edi
mov dword [rbx + 8], edi
mov byte [rbx + 0xf], dil
jmp 0x14003854e
test edx, edx
jle 0x140038369
movzx r8d, word [0x14007513c]
nop word [rax + rax]
mov rax, qword [rsi + 0x10]
mov ecx, edx
cmp word [rax + rcx*2 - 2], r8w
je 0x140038369
lea edi, [rdx - 1]
mov dword [rbx], edi
mov edx, edi
test edi, edi
jg 0x140038350
mov dword [rbx + 8], edi
mov byte [rbx + 0xf], 0
jmp 0x14003854e
mov ecx, dword [rbx + 4]
mov eax, dword [rbx + 8]
mov r9d, dword [rsi + 0x3c]
cmp ecx, eax
je 0x1400383ac
mov edx, ecx
cmp ecx, r9d
jle 0x140038391
mov dword [rbx + 4], r9d
mov edx, r9d
mov r8d, eax
cmp eax, r9d
jle 0x1400383a0
mov dword [rbx + 8], r9d
mov r8d, r9d
mov ecx, edx
mov eax, r8d
cmp edx, r8d
jne 0x1400383ac
mov dword [rbx], edx
mov r8d, dword [rbx]
mov edx, r8d
cmp r8d, r9d
jle 0x1400383c0
mov dword [rbx], r9d
mov r8d, r9d
mov edx, r9d
cmp ecx, eax
jne 0x1400383ce
mov dword [rbx + 8], r8d
mov dword [rbx + 4], r8d
jmp 0x1400383d5
mov dword [rbx], eax
mov r8d, eax
mov edx, eax
cmp byte [rbx + 0x10], 0
je 0x1400383ed
mov edx, r9d
mov dword [rbx], r9d
mov dword [rbx + 8], edx
mov byte [rbx + 0xf], 0
jmp 0x14003854e
cmp r8d, r9d
jge 0x14003841c
movzx r10d, word [0x14007513c]
nop word [rax + rax]
mov rax, qword [rsi + 0x10]
movsxd rcx, r8d
cmp word [rax + rcx*2], r10w
je 0x14003841c
lea edx, [r8 + 1]
mov dword [rbx], edx
mov r8d, edx
cmp edx, r9d
jl 0x140038400
mov dword [rbx + 8], edx
mov byte [rbx + 0xf], 0
jmp 0x14003854e
xor edi, edi
cmp ebp, 0x10000
cmovge ebp, edi
test ebp, ebp
jle 0x14003854e
mov word [rsp + 0x90], bp
cmp ebp, 0xa
jne 0x140038452
cmp byte [rbx + 0x10], dil
jne 0x14003854e
cmp byte [rbx + 0xc], dil
je 0x1400384fc
mov eax, dword [rbx + 8]
cmp dword [rbx + 4], eax
jne 0x1400384fc
movsxd rbp, dword [rbx]
cmp ebp, dword [rsi + 0x3c]
jge 0x1400384fc
lea rdi, [rbx + 0x18]
mov edx, 1
mov rcx, rdi
call fcn.140036ff0
test rax, rax
je 0x1400384c8
mov dword [rax], ebp
mov dword [rax + 4], 1
mov dword [rax + 8], 1
mov ecx, dword [rdi + 0xe04]
mov dword [rax + 0xc], ecx
inc dword [rdi + 0xe04]
movsxd rdx, dword [rax + 0xc]
add rdx, 0x318
lea rdx, [rdi + rdx*2]
test rdx, rdx
je 0x1400384c8
mov rax, qword [rsi + 0x10]
movzx ecx, word [rax + rbp*2]
mov word [rdx], cx
mov edx, dword [rbx]
mov r8d, 1
mov rcx, rsi
call fcn.140035080
mov edx, dword [rbx]
lea r8, [rsp + 0x90]
mov r9d, 1
mov rcx, rsi
call fcn.140035120
test al, al
je 0x14003854e
inc dword [rbx]
mov byte [rbx + 0xf], 0
jmp 0x14003854e
mov rdx, rbx
mov rcx, rsi
call fcn.140037710
mov edx, dword [rbx]
lea r8, [rsp + 0x90]
mov r9d, 1
mov rcx, rsi
call fcn.140035120
test al, al
je 0x14003854e
mov esi, dword [rbx]
lea rcx, [rbx + 0x18]
xor edx, edx
call fcn.140036ff0
test rax, rax
je 0x140038548
mov dword [rax], esi
mov dword [rax + 4], edi
mov dword [rax + 8], 1
mov dword [rax + 0xc], 0xffffffff
inc dword [rbx]
mov byte [rbx + 0xf], dil
movaps xmm6, xmmword [rsp + 0x50]
mov r14, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x80]
add rsp, 0x60
pop rsi
pop rbp
pop rbx
ret