Function at 0x140038fe0
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 0x140039031
je 0x140039464
lea eax, [rbp - 0x10000]
cmp eax, 0xd
ja case.0x14003904c.196618
cdqe
mov ecx, dword [rdx + rax*4 + 0x39c5c]
add rcx, rdx
jmp rcx
lea eax, [rbp - 0x30001]
cmp eax, 0xc
ja case.0x14003904c.196618
cdqe
mov ecx, dword [rdx + rax*4 + 0x39c94]
add rcx, rdx
jmp rcx
cmp byte [rbx + 0x10], 0
je 0x1400394da
and ebp, 0x20000
or ebp, 0x10001
jmp 0x140039006
movzx r8d, byte [rbx + 0x10]
test r8b, r8b
je 0x140039679
and ebp, 0x20000
bts ebp, 0x10
jmp 0x140039006
mov rdx, rbx
mov rcx, rsi
call fcn.1400389b0
mov byte [rbx + 0xf], 0
jmp 0x140039c3f
lea rbp, [rbx + 0x18]
movsx rax, word [rbp + 0xe00]
cmp eax, 0x63
je 0x140039946
movsx r8, word [rbp + 0xdfe]
add rax, rax
shl r8, 4
add r8, rbp
movups xmm6, xmmword [rbp + rax*8]
mov dword [r8 + 0xc], 0xffffffff
movq r14, xmm6
movdqa xmm0, xmm6
psrldq xmm0, 8
mov rax, r14
movd r10d, xmm0
shr rax, 0x20
mov dword [r8 + 8], eax
mov dword [r8 + 4], r10d
mov dword [r8], r14d
test r10d, r10d
je 0x140039158
mov ecx, dword [rbp + 0xe04]
xor edi, edi
lea eax, [rcx + r10]
cmp eax, dword [rbp + 0xe08]
jle 0x14003910c
mov qword [r8 + 4], rdi
jmp 0x14003914a
mov dword [r8 + 0xc], ecx
add dword [rbp + 0xe04], r10d
cmp dword [r8 + 4], edi
jle 0x14003914a
nop dword [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 0x140039120
mov r8d, r10d
mov edx, r14d
mov rcx, rsi
call fcn.1400366e0
movdqa xmm0, xmm6
psrldq xmm0, 4
movd edi, xmm0
test edi, edi
je 0x140039194
psrldq xmm6, 0xc
lea r8, [rbp + 0x630]
movd eax, xmm6
mov r9d, edi
mov edx, r14d
movsxd rcx, eax
lea r8, [r8 + rcx*2]
mov rcx, rsi
call fcn.140036780
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 0x140039c3f
mov eax, dword [rbx + 4]
mov ecx, dword [rbx + 8]
cmp eax, ecx
je 0x1400391d0
jle 0x1400391c2
mov eax, ecx
mov dword [rbx + 4], ecx
mov dword [rbx], eax
mov dword [rbx + 8], eax
mov byte [rbx + 0xf], 0
jmp 0x140039c3f
mov eax, dword [rbx]
test eax, eax
jle 0x140039946
dec eax
mov byte [rbx + 0xf], 0
mov dword [rbx], eax
jmp 0x140039c3f
mov r9d, dword [rbx + 8]
lea r8, [rbx + 8]
mov eax, dword [rbx + 4]
cmp eax, r9d
je 0x14003923a
jle 0x140039209
mov dword [r8], eax
lea r10, [rbx + 8]
mov dword [rbx + 4], r9d
mov edx, r9d
jmp 0x140039211
mov edx, eax
mov r10, r8
mov eax, r9d
mov ecx, dword [rsi + 0x3c]
cmp edx, ecx
jle 0x140039220
mov dword [rbx + 4], ecx
mov edx, ecx
mov r8, r10
cmp eax, ecx
jle 0x140039229
mov dword [r8], ecx
mov eax, ecx
cmp edx, eax
jne 0x14003922f
mov dword [rbx], edx
mov dword [rbx], eax
mov dword [rbx + 4], eax
mov byte [rbx + 0xf], 0
jmp 0x14003923e
inc dword [rbx]
mov eax, dword [rbx]
mov ecx, dword [rsi + 0x3c]
cmp eax, ecx
jle 0x140039946
mov dword [rbx], ecx
mov byte [rbx + 0xf], 0
jmp 0x140039c3f
mov eax, dword [rbx + 4]
mov ecx, dword [rbx + 8]
cmp eax, ecx
je 0x140039273
jle 0x140039265
mov eax, ecx
mov dword [rbx + 4], ecx
mov dword [rbx], eax
mov dword [rbx + 8], eax
mov byte [rbx + 0xf], 0
jmp 0x140039c3f
mov edx, dword [rbx]
mov rcx, rsi
call fcn.140036980
mov dword [rbx], eax
mov ecx, dword [rsi + 0x3c]
cmp eax, ecx
jle 0x140039c3f
mov dword [rbx], ecx
jmp 0x140039c3f
mov r9d, dword [rbx + 8]
lea r8, [rbx + 8]
mov eax, dword [rbx + 4]
cmp eax, r9d
je 0x1400392e4
jle 0x1400392b3
mov dword [r8], eax
lea r10, [rbx + 8]
mov dword [rbx + 4], r9d
mov edx, r9d
jmp 0x1400392bb
mov edx, eax
mov r10, r8
mov eax, r9d
mov ecx, dword [rsi + 0x3c]
cmp edx, ecx
jle 0x1400392c7
mov edx, ecx
mov r8, r10
cmp eax, ecx
jle 0x1400392d0
mov dword [r8], ecx
mov eax, ecx
cmp edx, eax
jne 0x1400392d6
mov dword [rbx], edx
mov dword [rbx], eax
mov dword [rbx + 4], eax
mov byte [rbx + 0xf], 0
jmp 0x140039c3f
mov edx, dword [rbx]
mov rcx, rsi
call fcn.140036a30
mov dword [rbx], eax
mov ecx, dword [rsi + 0x3c]
cmp eax, ecx
jle 0x140039c3f
mov dword [rbx], ecx
jmp 0x140039c3f
xor edi, edi
mov qword [rbx + 4], rdi
mov dword [rbx], edi
jmp 0x140039c3b
mov eax, dword [rsi + 0x3c]
xor edi, edi
mov qword [rbx + 4], rdi
mov dword [rbx], eax
jmp 0x140039c3b
mov r8d, dword [rbx + 4]
mov eax, dword [rbx + 8]
mov ecx, dword [rsi + 0x3c]
cmp r8d, eax
je 0x140039355
mov edx, r8d
cmp r8d, ecx
jle 0x14003933b
mov dword [rbx + 4], ecx
mov edx, ecx
mov r9d, eax
cmp eax, ecx
jle 0x140039348
mov dword [rbx + 8], ecx
mov r9d, ecx
mov r8d, edx
mov eax, r9d
cmp edx, r9d
jne 0x140039355
mov dword [rbx], edx
mov edx, dword [rbx]
cmp edx, ecx
jle 0x14003935f
mov dword [rbx], ecx
mov edx, ecx
cmp r8d, eax
je 0x140039377
mov edx, r8d
jle 0x14003936e
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 0x14003938a
xor edi, edi
mov dword [rbx], edi
mov byte [rbx + 0xf], dil
jmp 0x140039c3f
test edx, edx
jle 0x140039946
movzx r8d, word [0x14008114c]
nop word [rax + rax]
mov rax, qword [rsi + 0x10]
mov ecx, edx
cmp word [rax + rcx*2 - 2], r8w
je 0x140039946
dec edx
mov dword [rbx], edx
test edx, edx
jg 0x1400393a0
mov byte [rbx + 0xf], 0
jmp 0x140039c3f
mov ecx, dword [rbx + 4]
mov eax, dword [rbx + 8]
mov r8d, dword [rsi + 0x3c]
cmp ecx, eax
je 0x1400393fa
mov edx, ecx
cmp ecx, r8d
jle 0x1400393df
mov dword [rbx + 4], r8d
mov edx, r8d
mov r9d, eax
cmp eax, r8d
jle 0x1400393ee
mov dword [rbx + 8], r8d
mov r9d, r8d
mov ecx, edx
mov eax, r9d
cmp edx, r9d
jne 0x1400393fa
mov dword [rbx], edx
mov edx, dword [rbx]
cmp edx, r8d
jle 0x140039407
mov dword [rbx], r8d
mov edx, r8d
cmp ecx, eax
je 0x14003941d
mov edx, ecx
jle 0x140039414
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 0x14003942f
mov dword [rbx], r8d
mov byte [rbx + 0xf], 0
jmp 0x140039c3f
cmp edx, r8d
jge 0x140039946
movzx r9d, word [0x14008114c]
mov rax, qword [rsi + 0x10]
movsxd rcx, edx
cmp word [rax + rcx*2], r9w
je 0x140039946
inc edx
mov dword [rbx], edx
cmp edx, r8d
jl 0x140039440
mov byte [rbx + 0xf], 0
jmp 0x140039c3f
mov r10d, dword [rbx + 4]
lea r8, [rbx + 8]
mov r9d, dword [r8]
lea rdx, [rbx + 4]
mov ecx, dword [rsi + 0x3c]
cmp r10d, r9d
je 0x1400394b0
mov eax, r10d
mov rdi, r8
cmp r10d, ecx
jle 0x140039492
mov dword [rdx], ecx
lea rdi, [rbx + 8]
lea rdx, [rbx + 4]
mov eax, ecx
mov r11d, r9d
cmp r9d, ecx
jle 0x1400394a0
mov dword [r8], ecx
mov r11d, ecx
mov r10d, eax
mov r9d, r11d
mov r8, rdi
cmp eax, r11d
jne 0x1400394b0
mov dword [rbx], eax
mov eax, dword [rbx]
cmp eax, ecx
cmovg eax, ecx
cmp r10d, r9d
jne 0x1400394c3
mov dword [r8], eax
mov dword [rdx], eax
jmp 0x1400394c6
mov eax, r9d
test eax, eax
jle 0x1400394cf
dec eax
mov dword [r8], eax
mov dword [rbx], eax
mov byte [rbx + 0xf], 0
jmp 0x140039c3f
mov eax, dword [rbx + 8]
lea r9, [rbx + 8]
mov ecx, dword [rbx + 4]
bt ebp, 0x11
jae 0x140039553
cmp ecx, eax
jne 0x14003954f
mov ecx, dword [rbx]
mov eax, ecx
mov dword [r9], ecx
mov dword [rbx + 4], ecx
mov edx, dword [rsi + 0x3c]
cmp ecx, eax
je 0x140039517
cmp ecx, edx
jle 0x140039508
mov dword [rbx + 4], edx
mov ecx, edx
cmp eax, edx
jle 0x140039511
mov dword [rbx + 8], edx
mov eax, edx
cmp ecx, eax
jne 0x140039517
mov dword [rbx], ecx
mov r8d, dword [rbx]
cmp r8d, edx
jle 0x140039524
mov dword [rbx], edx
mov r8d, edx
movzx r9d, byte [rbx + 0x10]
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.140038e10
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x140039c3f
cmp byte [rbx + 0xf], 0
je 0x14003958e
movss xmm6, dword [rbx + 0x14]
jmp 0x140039594
mov dword [rbx], eax
jmp 0x1400394f8
cmp ecx, eax
je 0x1400394f8
mov edx, ecx
jle 0x140039569
mov edx, eax
mov dword [r9], ecx
mov dword [rbx + 4], eax
lea r9, [rbx + 8]
mov eax, ecx
mov ecx, dword [rsi + 0x3c]
cmp edx, ecx
cmovg edx, ecx
cmp eax, ecx
jle 0x14003957a
mov dword [r9], ecx
mov eax, ecx
cmp edx, eax
jne 0x140039580
mov dword [rbx], edx
mov dword [rbx], eax
mov dword [rbx + 4], eax
mov byte [rbx + 0xf], 0
mov edx, dword [rsi + 0x3c]
jmp 0x140039517
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.1400368a0
mov r10d, dword [rsp + 0x4c]
xor edi, edi
movss xmm1, dword [rsp + 0x38]
test r10d, r10d
jle 0x14003962f
movss xmm3, dword [0x140053df0]
movsxd rax, r14d
lea r8, [rax + rax]
mov rax, qword [rsi + 0x10]
movzx ecx, word [r8 + rax]
cmp ecx, 0xa
je 0x14003962f
mov r9, qword [0x1400a8838]
mov rdx, qword [r9 + 0x18f0]
cmp ecx, dword [rdx + 0x20]
jge 0x1400395fc
mov rax, qword [rdx + 0x28]
movss xmm2, dword [rax + rcx*4]
jmp 0x140039601
movss xmm2, dword [rdx + 0x48]
movss xmm0, dword [r9 + 0x18f8]
divss xmm0, dword [rdx]
mulss xmm0, xmm2
ucomiss xmm0, xmm3
jp 0x140039619
je 0x14003962f
addss xmm1, xmm0
comiss xmm1, xmm6
ja 0x14003962f
inc dword [rbx]
inc edi
add r8, 2
cmp edi, r10d
jl 0x1400395d0
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
mov eax, dword [rsi + 0x3c]
cmp ecx, edx
je 0x140039654
cmp ecx, eax
jle 0x140039645
mov dword [rbx + 4], eax
mov ecx, eax
cmp edx, eax
jle 0x14003964e
mov dword [rbx + 8], eax
mov edx, eax
cmp ecx, edx
jne 0x140039654
mov dword [rbx], ecx
mov ecx, dword [rbx]
cmp ecx, eax
jle 0x14003965e
mov dword [rbx], eax
mov ecx, eax
movss dword [rbx + 0x14], xmm6
mov byte [rbx + 0xf], 1
bt ebp, 0x11
jae 0x140039c3f
mov dword [rbx + 8], ecx
jmp 0x140039c3f
mov eax, dword [rbx + 4]
mov ecx, dword [rbx + 8]
bt ebp, 0x11
jae 0x1400396f1
cmp eax, ecx
jne 0x1400396ed
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 0x1400396b2
cmp eax, edx
jle 0x1400396a3
mov dword [rbx + 4], edx
mov eax, edx
cmp ecx, edx
jle 0x1400396ac
mov dword [rbx + 8], edx
mov ecx, edx
cmp eax, ecx
jne 0x1400396b2
mov dword [rbx], eax
mov eax, dword [rbx]
cmp eax, edx
jle 0x1400396bc
mov dword [rbx], edx
mov eax, edx
movzx r9d, r8b
lea rcx, [rsp + 0x20]
mov r8d, eax
mov rdx, rsi
call fcn.140038e10
mov r14d, dword [rsp + 0x34]
cmp r14d, dword [rsp + 0x2c]
je 0x140039c3f
cmp byte [rbx + 0xf], 0
je 0x14003970f
movss xmm6, dword [rbx + 0x14]
jmp 0x140039715
mov dword [rbx], ecx
jmp 0x140039693
cmp eax, ecx
je 0x140039693
jle 0x140039701
movzx r8d, byte [rbx + 0x10]
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 0x1400396b2
movss xmm6, dword [rsp + 0x20]
mov r8d, r14d
mov dword [rbx], r14d
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.1400368a0
mov r10d, dword [rsp + 0x4c]
xor edi, edi
movss xmm1, dword [rsp + 0x38]
test r10d, r10d
jle 0x14003962f
movss xmm3, dword [0x140053df0]
nop word [rax + rax]
lea eax, [rdi + r14]
movsxd rcx, eax
mov rax, qword [rsi + 0x10]
movzx r8d, word [rax + rcx*2]
cmp r8d, 0xa
je 0x14003962f
mov r9, qword [0x1400a8838]
mov rdx, qword [r9 + 0x18f0]
cmp r8d, dword [rdx + 0x20]
jge 0x14003978a
mov rax, qword [rdx + 0x28]
movss xmm2, dword [rax + r8*4]
jmp 0x14003978f
movss xmm2, dword [rdx + 0x48]
movss xmm0, dword [r9 + 0x18f8]
divss xmm0, dword [rdx]
mulss xmm0, xmm2
ucomiss xmm0, xmm3
jp 0x1400397ab
je 0x14003962f
addss xmm1, xmm0
comiss xmm1, xmm6
ja 0x14003962f
inc dword [rbx]
inc edi
cmp edi, r10d
jl 0x140039750
jmp 0x14003962f
mov edi, dword [rbx + 4]
lea r14, [rbx + 8]
cmp edi, dword [r14]
jne 0x1400397e0
mov edi, dword [rbx]
lea rbp, [rbx + 8]
mov dword [r14], edi
mov dword [rbx + 4], edi
jmp 0x1400397e3
mov rbp, r14
mov edx, dword [rbx]
mov rcx, rsi
call fcn.140036980
mov dword [rbx], eax
mov dword [r14], eax
mov ecx, dword [rsi + 0x3c]
cmp edi, eax
je 0x140039818
cmp edi, ecx
jle 0x140039805
mov dword [rbx + 4], ecx
mov edi, ecx
mov r14, rbp
mov edx, eax
cmp eax, ecx
jle 0x140039810
mov dword [r14], ecx
mov edx, ecx
cmp edi, edx
jne 0x140039818
mov dword [rbx], edi
mov eax, edi
cmp eax, ecx
jle 0x140039c3f
mov dword [rbx], ecx
jmp 0x140039c3f
mov edi, dword [rbx + 4]
lea r14, [rbx + 8]
cmp edi, dword [r14]
jne 0x140039841
mov edi, dword [rbx]
lea rbp, [rbx + 8]
mov dword [r14], edi
mov dword [rbx + 4], edi
jmp 0x140039844
mov rbp, r14
mov edx, dword [rbx]
mov rcx, rsi
call fcn.140036a30
mov dword [rbx], eax
mov dword [r14], eax
mov ecx, dword [rsi + 0x3c]
cmp edi, eax
je 0x140039879
cmp edi, ecx
jle 0x140039866
mov dword [rbx + 4], ecx
mov edi, ecx
mov r14, rbp
mov edx, eax
cmp eax, ecx
jle 0x140039871
mov dword [r14], ecx
mov edx, ecx
cmp edi, edx
jne 0x140039879
mov dword [rbx], edi
mov eax, edi
cmp eax, ecx
jle 0x140039c3f
mov dword [rbx], ecx
jmp 0x140039c3f
mov edx, dword [rbx + 4]
mov eax, dword [rbx + 8]
cmp edx, eax
jne 0x14003989b
mov eax, dword [rbx]
mov edx, eax
mov dword [rbx + 4], eax
jmp 0x14003989d
mov dword [rbx], eax
inc eax
mov dword [rbx + 8], eax
mov ecx, dword [rsi + 0x3c]
cmp edx, eax
je 0x1400398c9
cmp edx, ecx
jle 0x1400398b2
mov dword [rbx + 4], ecx
mov edx, ecx
mov r8d, eax
cmp eax, ecx
jle 0x1400398bf
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 0x140039c3f
mov eax, dword [rbx + 8]
cmp dword [rbx + 4], eax
jne 0x140039907
mov r8d, dword [rbx]
cmp r8d, dword [rsi + 0x3c]
jge 0x140039946
mov r9d, 1
mov rdx, rbx
mov rcx, rsi
call fcn.140038c30
mov byte [rbx + 0xf], 0
jmp 0x140039c3f
mov eax, dword [rbx + 8]
cmp dword [rbx + 4], eax
je 0x14003991b
mov rdx, rbx
mov rcx, rsi
call fcn.140038cc0
mov byte [rbx + 0xf], 0
jmp 0x140039c3f
mov eax, dword [rsi + 0x3c]
mov r8d, dword [rbx]
cmp r8d, eax
jle 0x14003992b
mov dword [rbx], eax
mov r8d, eax
test r8d, r8d
jle 0x140039946
dec r8d
mov r9d, 1
mov rdx, rbx
mov rcx, rsi
call fcn.140038c30
dec dword [rbx]
mov byte [rbx + 0xf], 0
jmp 0x140039c3f
mov eax, dword [rbx + 8]
cmp dword [rbx + 4], eax
jne 0x14003995c
mov eax, dword [rbx]
mov dword [rbx + 4], eax
xor edi, edi
mov dword [rbx + 8], edi
mov dword [rbx], edi
jmp 0x140039c3b
mov eax, dword [rbx + 8]
cmp dword [rbx + 4], eax
jne 0x140039989
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 0x140039c3f
mov dword [rbx], eax
mov eax, dword [rsi + 0x3c]
mov dword [rbx + 8], eax
mov dword [rbx], eax
mov byte [rbx + 0xf], 0
jmp 0x140039c3f
mov r10d, dword [rbx + 4]
lea r9, [rbx + 8]
mov ecx, dword [r9]
lea r8, [rbx + 4]
mov eax, dword [rsi + 0x3c]
cmp r10d, ecx
je 0x1400399e8
mov edx, r10d
mov rdi, r9
cmp r10d, eax
jle 0x1400399cb
mov dword [r8], eax
lea rdi, [rbx + 8]
lea r8, [rbx + 4]
mov edx, eax
mov r11d, ecx
cmp ecx, eax
jle 0x1400399d8
mov dword [r9], eax
mov r11d, eax
mov r10d, edx
mov ecx, r11d
mov r9, rdi
cmp edx, r11d
jne 0x1400399e8
mov dword [rbx], edx
mov edx, dword [rbx]
mov edi, edx
cmp edx, eax
jle 0x1400399f6
mov dword [rbx], eax
mov edx, eax
mov edi, eax
cmp r10d, ecx
jne 0x140039a03
mov dword [r9], edx
mov dword [r8], edx
jmp 0x140039a09
mov dword [rbx], ecx
mov edx, ecx
mov edi, ecx
cmp byte [rbx + 0x10], 0
je 0x140039a1f
xor edi, edi
mov dword [rbx], edi
mov dword [rbx + 8], edi
mov byte [rbx + 0xf], dil
jmp 0x140039c3f
test edx, edx
jle 0x140039a49
movzx r8d, word [0x14008114c]
nop dword [rax + rax]
mov rax, qword [rsi + 0x10]
mov ecx, edx
cmp word [rax + rcx*2 - 2], r8w
je 0x140039a49
lea edi, [rdx - 1]
mov dword [rbx], edi
mov edx, edi
test edi, edi
jg 0x140039a30
mov dword [rbx + 8], edi
mov byte [rbx + 0xf], 0
jmp 0x140039c3f
mov r11d, dword [rbx + 4]
lea r10, [rbx + 8]
mov eax, dword [r10]
lea rcx, [rbx + 4]
mov r9d, dword [rsi + 0x3c]
cmp r11d, eax
je 0x140039aa4
mov edx, r11d
mov rdi, r10
cmp r11d, r9d
jle 0x140039a86
mov dword [rcx], r9d
lea rdi, [rbx + 8]
lea rcx, [rbx + 4]
mov edx, r9d
mov r8d, eax
cmp eax, r9d
jle 0x140039a94
mov dword [r10], r9d
mov r8d, r9d
mov r11d, edx
mov eax, r8d
mov r10, rdi
cmp edx, r8d
jne 0x140039aa4
mov dword [rbx], edx
mov r8d, dword [rbx]
mov edx, r8d
cmp r8d, r9d
jle 0x140039ab8
mov dword [rbx], r9d
mov r8d, r9d
mov edx, r9d
cmp r11d, eax
jne 0x140039ac5
mov dword [r10], r8d
mov dword [rcx], r8d
jmp 0x140039acc
mov dword [rbx], eax
mov r8d, eax
mov edx, eax
cmp byte [rbx + 0x10], 0
je 0x140039ae4
mov edx, r9d
mov dword [rbx], r9d
mov dword [rbx + 8], edx
mov byte [rbx + 0xf], 0
jmp 0x140039c3f
cmp r8d, r9d
jge 0x140039b0d
movzx r10d, word [0x14008114c]
mov rax, qword [rsi + 0x10]
movsxd rcx, r8d
cmp word [rax + rcx*2], r10w
je 0x140039b0d
lea edx, [r8 + 1]
mov dword [rbx], edx
mov r8d, edx
cmp edx, r9d
jl 0x140039af1
mov dword [rbx + 8], edx
mov byte [rbx + 0xf], 0
jmp 0x140039c3f
xor edi, edi
cmp ebp, 0x10000
cmovge ebp, edi
test ebp, ebp
jle 0x140039c3f
mov word [rsp + 0x90], bp
cmp ebp, 0xa
jne 0x140039b43
cmp byte [rbx + 0x10], dil
jne 0x140039c3f
cmp byte [rbx + 0xc], dil
je 0x140039bed
mov eax, dword [rbx + 8]
cmp dword [rbx + 4], eax
jne 0x140039bed
movsxd rbp, dword [rbx]
cmp ebp, dword [rsi + 0x3c]
jge 0x140039bed
lea rdi, [rbx + 0x18]
mov edx, 1
mov rcx, rdi
call fcn.140038630
test rax, rax
je 0x140039bb9
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 0x140039bb9
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.1400366e0
mov edx, dword [rbx]
lea r8, [rsp + 0x90]
mov r9d, 1
mov rcx, rsi
call fcn.140036780
test al, al
je 0x140039c3f
inc dword [rbx]
mov byte [rbx + 0xf], 0
jmp 0x140039c3f
mov rdx, rbx
mov rcx, rsi
call fcn.140038cc0
mov edx, dword [rbx]
lea r8, [rsp + 0x90]
mov r9d, 1
mov rcx, rsi
call fcn.140036780
test al, al
je 0x140039c3f
mov esi, dword [rbx]
lea rcx, [rbx + 0x18]
xor edx, edx
call fcn.140038630
test rax, rax
je 0x140039c39
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