Function at 0x1400159a0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
sub rsp, 0x80
mov qword [rax + 0x10], rbp
mov rbp, qword [0x140099548]
mov qword [rax + 0x18], r12
mov rbx, rbp
mov qword [rax + 0x20], r13
mov qword [rax - 0x20], r14
mov edi, dword [rbp + 0x30f0]
sub edi, 1
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
movaps xmmword [rax - 0x78], xmm10
js 0x140015a53
movsxd rsi, edi
shl rsi, 5
mov r14, rsi
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rbp + 0x30f8]
cmp dword [rdx + rsi + 4], 7
jne 0x140015a46
movsxd r8, dword [rbp + 0x30f0]
mov rcx, rdx
sub rdx, rdx
add rdx, r14
sar rdx, 5
sub r8, rdx
mov rax, rdx
shl rax, 5
add rcx, rax
shl r8, 5
sub r8, 0x20
lea rdx, [rcx + 0x20]
call sub.VCRUNTIME140.dll_memmove
dec dword [rbp + 0x30f0]
sub r14, 0x20
sub rsi, 0x20
sub edi, 1
jns 0x140015a00
xor edi, edi
mov esi, edi
cmp dword [rbp + 0x30f0], edi
jle 0x140015a94
mov ebp, edi
mov rax, qword [rbx + 0x30f8]
cmp dword [rax + rbp + 4], edi
jne 0x140015a7f
movsxd rdx, esi
mov rcx, rbx
shl rdx, 5
add rdx, rax
call qword [rax + rbp + 0x10]
inc esi
add rbp, 0x20
cmp esi, dword [rbx + 0x30f0]
jl 0x140015a61
mov rbp, qword [0x140099548]
mov eax, dword [rbx + 0x1a6c]
mov dword [rbx + 0x1a70], eax
cmp byte [rbp + 0xd4], dil
je 0x140015ab6
test byte [rbp + 0xc], 2
jne 0x140015ab6
mov byte [rbp + 0xd4], dil
mov ecx, dword [rbp + 8]
bt ecx, 0xa
jae 0x140015ad5
mov eax, dword [rbp + 0xc]
and eax, 0x1400
cmp eax, 0x1400
je 0x140015ad5
btr ecx, 0xa
mov dword [rbp + 8], ecx
mov eax, dword [rbx + 8]
mov rsi, rbp
mov dword [rbx + 0x1a6c], eax
cmp byte [rbp + 0x30a8], dil
jne 0x140015b49
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x140015b42
lea r8, [rsp + 0xa0]
mov qword [rsp + 0xa0], rdi
call fcn.140011550
mov rbp, rax
test rax, rax
je 0x140015b3b
mov rdx, qword [rsp + 0xa0]
mov rcx, rax
call fcn.140026080
mov rcx, qword [0x140099548]
test rcx, rcx
je 0x140015b32
dec dword [rcx + 0x3b0]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbp, qword [0x140099548]
mov byte [rsi + 0x30a8], 1
movss xmm0, dword [rsi + 0x30ac]
xorps xmm8, xmm8
comiss xmm0, xmm8
mov qword [rsp + 0x70], r15
jbe 0x140015be6
subss xmm0, dword [rsi + 0x18]
comiss xmm8, xmm0
movss dword [rsi + 0x30ac], xmm0
jb 0x140015be6
mov r14, qword [rsi + 0x20]
test r14, r14
je 0x140015bd9
lea rcx, [rsp + 0xa0]
mov dword [rbp + 0x30ac], edi
mov qword [rsp + 0xa0], rdi
call fcn.1400263e0
lea rdx, [0x14008cc44]
mov rcx, r14
mov r15, rax
call fcn.140011420
mov rbp, rax
test rax, rax
je 0x140015be0
mov r8, qword [rsp + 0xa0]
mov r9, rax
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140015be0
mov byte [rsi + 0x398], 1
mov dword [rsi + 0x30ac], edi
inc dword [rbx + 0x1b68]
movss xmm0, dword [rbx + 0x18]
cvtps2pd xmm0, xmm0
mov byte [rbx + 0x1b78], 1
mov dword [rbx + 0x3028], edi
mov dword [rbx + 0x1be0], edi
addsd xmm0, qword [rbx + 0x1b60]
movsd qword [rbx + 0x1b60], xmm0
mov ecx, dword [rbx + 0x3044]
test ecx, ecx
jns 0x140015c3d
mov eax, ecx
cdq
sub eax, edx
mov edx, edi
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x3040]
test eax, eax
cmovg edx, eax
call fcn.1400325c0
movss xmm10, dword [0x14008d808]
movss xmm9, dword [0x14008d728]
mov dword [rbx + 0x3040], edi
movsxd rax, dword [rbx + 0x3344]
movss xmm1, dword [rbx + 0x18]
movaps xmm0, xmm1
subss xmm0, dword [rbx + rax*4 + 0x3164]
addss xmm0, dword [rbx + 0x3348]
movss dword [rbx + 0x3348], xmm0
movss dword [rbx + rax*4 + 0x3164], xmm1
mov eax, 0x88888889
mov ecx, dword [rbx + 0x3344]
movss xmm1, dword [rbx + 0x3348]
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, xmm8
mov dword [rbx + 0x3344], ecx
jbe 0x140015ccc
divss xmm1, dword [0x14008d7e4]
movaps xmm0, xmm9
divss xmm0, xmm1
jmp 0x140015cd0
movaps xmm0, xmm10
movss dword [rbx + 0x39c], xmm0
call fcn.140027330
mov rax, qword [rbx + 0xa8]
mov rbp, qword [0x140099548]
mov byte [rax], 1
mov rcx, qword [rbp + 0xb8]
test rcx, rcx
jne 0x140015d08
mov rax, qword [rbp + 0xa8]
mov rcx, qword [rax + 0x48]
mov rcx, qword [rcx]
call fcn.14001f840
mov eax, dword [rbx + 0x1dc8]
movaps xmm7, xmm10
movss xmm4, dword [0x14008d830]
movaps xmm6, xmm10
movaps xmm5, xmm4
test eax, eax
jle 0x140015d87
mov rcx, qword [rbx + 0x1dd0]
mov edx, eax
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rcx]
movss xmm3, dword [rax + 8]
comiss xmm7, xmm3
movss xmm2, dword [rax + 0xc]
movaps xmm0, xmm3
addss xmm0, dword [rax + 0x10]
movaps xmm1, xmm2
addss xmm1, dword [rax + 0x14]
jbe 0x140015d65
movaps xmm7, xmm3
comiss xmm6, xmm2
jbe 0x140015d6d
movaps xmm6, xmm2
comiss xmm0, xmm4
jbe 0x140015d75
movaps xmm4, xmm0
comiss xmm1, xmm5
jbe 0x140015d7d
movaps xmm5, xmm1
add rcx, 8
sub rdx, 1
jne 0x140015d40
movss dword [rbx + 0x1aa4], xmm7
movss dword [rbx + 0x1aa8], xmm6
movss dword [rbx + 0x1aac], xmm4
movss dword [rbx + 0x1ab0], xmm5
mov eax, dword [rbx + 0x16f4]
movss xmm1, dword [rbx + 0x16f8]
movaps xmm7, xmmword [rsp + 0x50]
mov dword [rbx + 0x1a9c], eax
movss xmm0, dword [rbx + 0x1aa0]
ucomiss xmm0, xmm1
jp 0x140015dcf
je 0x140015e4b
movss xmm6, dword [0x14008d7a0]
lea r14, [rbx + 0x1b18]
movss dword [rbx + 0x1aa0], xmm1
mov esi, edi
mov r15d, 0x200
nop
movd xmm1, esi
cvtdq2ps xmm1, xmm1
test esi, esi
je 0x140015e2f
movaps xmm0, xmm1
subss xmm0, dword [rbx + 0x1aa0]
divss xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_acosf
movaps xmm1, xmm6
divss xmm1, xmm0
cvttss2si edx, xmm1
cmp edx, 0xc
jge 0x140015e26
mov edx, 0xc
jmp 0x140015e31
cmp edx, r15d
cmovg edx, r15d
jmp 0x140015e31
mov edx, edi
mov ecx, 0xff
movzx eax, dl
cmp edx, ecx
cmovl ecx, eax
inc esi
mov byte [r14], cl
inc r14
cmp esi, 0x40
jl 0x140015df0
mov r8d, edi
movaps xmm6, xmmword [rsp + 0x60]
mov dword [rbx + 0x1ab4], edi
cmp byte [rbx + 0x16f0], dil
je 0x140015e72
mov dword [rbx + 0x1ab4], 1
mov r8d, 1
mov edx, r8d
cmp byte [rbx + 0x16f1], dil
je 0x140015e98
mov rax, qword [rbx + 0x1a78]
mov rcx, qword [rax + 0x40]
test byte [rcx + 4], 4
jne 0x140015e98
or edx, 2
mov dword [rbx + 0x1ab4], edx
cmp byte [rbx + 0x16f2], dil
je 0x140015eaa
or edx, 4
mov dword [rbx + 0x1ab4], edx
test byte [rbx + 0xc], 8
je 0x140015eb9
or edx, 8
mov dword [rbx + 0x1ab4], edx
mov edx, edi
cmp dword [rbx + 0x1dc8], edi
jle 0x140015f0f
mov r8, rdi
nop word [rax + rax]
mov rax, qword [rbx + 0x1dd0]
lea r8, [r8 + 8]
xorps xmm0, xmm0
inc edx
mov rcx, qword [r8 + rax - 8]
xor eax, eax
mov qword [rcx + 0x30], rdi
movups xmmword [rcx + 0xa8], xmm0
movups xmmword [rcx + 0xb8], xmm0
movups xmmword [rcx + 0xc8], xmm0
mov qword [rcx + 0xd8], rax
cmp edx, dword [rbx + 0x1dc8]
jl 0x140015ed0
cmp byte [rbx + 0x1f84], dil
je 0x140015f43
mov eax, dword [rbx + 0x1fa4]
cmp eax, dword [rbx + 0x1c40]
jne 0x140015f43
cmp dword [rbp + 0x1c40], eax
jne 0x140015f34
mov dword [rbp + 0x1c44], eax
cmp dword [rbp + 0x1c80], eax
jne 0x140015f43
mov byte [rbp + 0x1c84], 1
cmp dword [rbx + 0x1c30], edi
jne 0x140015f53
mov dword [rbx + 0x1c38], edi
jmp 0x140015f65
mov eax, dword [rbx + 0x1c2c]
test eax, eax
je 0x140015f6b
cmp dword [rbx + 0x1c40], eax
jne 0x140015f6b
mov dword [rbx + 0x1c3c], edi
mov eax, dword [rbx + 0x1c2c]
test eax, eax
je 0x140015fa5
movss xmm1, dword [rbx + 0x18]
movaps xmm0, xmm1
addss xmm0, dword [rbx + 0x1c38]
movss dword [rbx + 0x1c38], xmm0
cmp dword [rbx + 0x1c40], eax
je 0x140015fa5
addss xmm1, dword [rbx + 0x1c3c]
movss dword [rbx + 0x1c3c], xmm1
mov dword [rbx + 0x1c30], eax
movzx eax, byte [rbx + 0x1c35]
mov byte [rbx + 0x1c36], al
mov eax, dword [rbx + 0x1c40]
mov dword [rbx + 0x1c2c], edi
mov word [rbx + 0x1c34], di
mov byte [rbx + 0x1c37], dil
cmp dword [rbx + 0x1c44], eax
je 0x140016031
cmp dword [rbx + 0x1c80], eax
jne 0x140016031
test eax, eax
je 0x140016031
mov ecx, dword [rbp + 0x1c40]
test ecx, ecx
setne al
mov byte [rbp + 0x1c4c], al
test ecx, ecx
je 0x140016008
mov dword [rbp + 0x1c48], edi
mov word [rbp + 0x1c4f], di
mov dword [rbp + 0x1c40], edi
mov word [rbp + 0x1c4d], di
mov qword [rbp + 0x1c70], rdi
mov word [rbp + 0x1c51], di
mov qword [rbp + 0x1c54], rdi
mov qword [rbp + 0x1c60], rdi
mov ecx, dword [rbx + 0x1c40]
test ecx, ecx
je 0x140016050
movss xmm0, dword [rbx + 0x18]
addss xmm0, dword [rbx + 0x1c48]
movss dword [rbx + 0x1c48], xmm0
mov rax, qword [rbx + 0x1c70]
movss xmm0, dword [rbx + 0x18]
addss xmm0, dword [rbx + 0x1c94]
mov qword [rbx + 0x1c88], rax
movzx eax, byte [rbx + 0x1c50]
mov byte [rbx + 0x1c85], al
mov eax, dword [rbx + 0x2fe8]
movss dword [rbx + 0x1c94], xmm0
mov dword [rbx + 0x1c80], ecx
mov dword [rbx + 0x1c44], edi
mov byte [rbx + 0x1c51], dil
mov byte [rbx + 0x1c84], dil
mov byte [rbx + 0x1c4c], dil
test eax, eax
je 0x1400160b5
cmp ecx, eax
je 0x1400160b5
mov dword [rbx + 0x2fe8], edi
test ecx, ecx
jne 0x1400160c7
mov qword [rbx + 0x1c54], rdi
mov qword [rbx + 0x1c60], rdi
mov eax, dword [rbx + 0x1ff4]
mov r8d, 0x800
mov dword [rbx + 0x1ff8], eax
mov eax, edi
mov qword [rbx + 0x1ff0], 0x7f7fffff
mov word [rbx + 0x1f85], di
mov dword [rbx + 0x2000], edi
cmp byte [rbp + 0x13c], dil
setne al
mov ecx, eax
or ecx, 2
cmp byte [rbp + 0x13d], dil
cmove ecx, eax
mov edx, ecx
or edx, 4
cmp byte [rbp + 0x13e], dil
cmove edx, ecx
lea rcx, [rbx + 0xc98]
mov eax, edx
or eax, 8
cmp byte [rbp + 0x13f], dil
cmove eax, edx
lea rdx, [rbx + 0x498]
mov dword [rbx + 0x3bc], eax
call sub.VCRUNTIME140.dll_memcpy
movss xmm1, dword [0x14008d818]
lea rcx, [rbx + 0x141]
lea rax, [rbx + 0x49c]
mov r8d, 0x80
nop
cmp byte [rcx - 1], dil
je 0x14001617e
movss xmm0, dword [rax - 4]
comiss xmm8, xmm0
jbe 0x140016177
movaps xmm0, xmm8
jmp 0x140016181
addss xmm0, dword [rbx + 0x18]
jmp 0x140016181
movaps xmm0, xmm1
movss dword [rax - 4], xmm0
cmp byte [rcx], dil
je 0x1400161a2
movss xmm0, dword [rax]
comiss xmm8, xmm0
jbe 0x14001619b
movaps xmm0, xmm8
jmp 0x1400161a5
addss xmm0, dword [rbx + 0x18]
jmp 0x1400161a5
movaps xmm0, xmm1
movss dword [rax], xmm0
cmp byte [rcx + 1], dil
je 0x1400161c7
movss xmm0, dword [rax + 4]
comiss xmm8, xmm0
jbe 0x1400161c0
movaps xmm0, xmm8
jmp 0x1400161ca
addss xmm0, dword [rbx + 0x18]
jmp 0x1400161ca
movaps xmm0, xmm1
movss dword [rax + 4], xmm0
cmp byte [rcx + 2], dil
je 0x1400161ed
movss xmm0, dword [rax + 8]
comiss xmm8, xmm0
jbe 0x1400161e6
movaps xmm0, xmm8
jmp 0x1400161f0
addss xmm0, dword [rbx + 0x18]
jmp 0x1400161f0
movaps xmm0, xmm1
movss dword [rax + 8], xmm0
add rcx, 4
add rax, 0x10
sub r8, 1
jne 0x140016160
call fcn.140022cc0
call fcn.140014dc0
mov rcx, rbx
call fcn.140028780
call fcn.140015690
call fcn.1400146d0
mov r8, qword [0x140099548]
mov eax, dword [r8 + 0x1da8]
sub eax, 1
js 0x14001626b
mov r8, qword [r8 + 0x1db0]
movsxd rdx, eax
add r8, 8
lea rcx, [rdx + rdx*2]
shl rcx, 4
add r8, rcx
nop
mov rax, qword [r8]
test rax, rax
je 0x140016261
test dword [rax + 0xc], 0x8000000
jne 0x140016282
sub r8, 0x30
sub rdx, 1
jns 0x140016250
cmp qword [rbx + 0x1f30], rdi
je 0x14001629e
movss xmm0, dword [rbx + 0x1f4c]
comiss xmm0, xmm8
jbe 0x14001629e
movss xmm1, dword [rbx + 0x18]
mulss xmm1, dword [0x14008d79c]
addss xmm1, dword [rbx + 0x1f7c]
minss xmm1, xmm9
jmp 0x1400162bc
movss xmm0, dword [rbx + 0x18]
mulss xmm0, dword [0x14008d7ac]
movss xmm1, dword [rbx + 0x1f7c]
subss xmm1, xmm0
maxss xmm1, xmm8
movss dword [rbx + 0x1f7c], xmm1
mov r12d, 0xffffffff
mov dword [rbx + 0x334c], r12d
mov dword [rbx + 0x1f80], edi
mov qword [rbx + 0x3350], 0xffffffffffffffff
mov dword [rbx + 0x3050], 0x3f800000
mov dword [rbx + 0x3054], 0x3f800000
mov qword [rbx + 0x3060], rdi
call fcn.140015180
mov r11, qword [0x140099548]
movaps xmm9, xmmword [rsp + 0x30]
mov r8, qword [r11 + 0x1e00]
test r8, r8
je 0x14001634c
cmp byte [r8 + 0xcf], dil
je 0x14001634c
test dword [r8 + 0xc], 0x40000
jne 0x14001634c
cmp byte [r11 + 0x13c], dil
jne 0x14001634c
mov ecx, dword [r11 + 0x3c]
test ecx, ecx
js 0x14001634c
call fcn.140018fd0
test al, al
je 0x14001634c
mov al, 1
jmp 0x14001634e
xor al, al
mov byte [r11 + 0x1f78], al
cmp dword [r11 + 0x1c40], edi
jne 0x1400163b9
test al, al
je 0x1400163b9
mov qword [r11 + 0x1f60], r8
mov dword [r11 + 0x1f70], 0x7fffffff
cmp dword [r11 + 0x1e08], edi
je 0x1400163a6
mov ecx, dword [r11 + 0x1e50]
cmp ecx, 0x7fffffff
je 0x1400163a6
cmp byte [r11 + 0x13d], dil
mov eax, 2
cmovne eax, edi
add eax, ecx
mov dword [r11 + 0x1f74], eax
jmp 0x1400163b9
movzx eax, byte [r11 + 0x13d]
neg al
sbb ecx, ecx
mov dword [r11 + 0x1f74], ecx
mov r8, qword [r11 + 0x1f60]
mov qword [r11 + 0x1f58], rdi
mov dword [r11 + 0x1f6c], 0x7fffffff
mov dword [r11 + 0x1f68], 0x7fffffff
test r8, r8
je 0x140016456
mov eax, dword [r11 + 0x1f70]
mov qword [r11 + 0x1f58], r8
cmp eax, 0x7fffffff
je 0x140016411
mov ecx, dword [r8 + 0x204]
cmp ecx, r12d
je 0x140016411
inc ecx
add eax, ecx
cdq
idiv ecx
mov dword [r11 + 0x1f68], edx
mov eax, dword [r11 + 0x1f74]
cmp eax, 0x7fffffff
je 0x140016439
mov ecx, dword [r8 + 0x208]
cmp ecx, r12d
je 0x140016439
inc ecx
add eax, ecx
cdq
idiv ecx
mov dword [r11 + 0x1f6c], edx
mov qword [r11 + 0x1f60], rdi
mov dword [r11 + 0x1f74], 0x7fffffff
mov dword [r11 + 0x1f70], 0x7fffffff
mov dword [r11 + 0x1e50], 0x7fffffff
cmp byte [rbx + 0x1b7b], dil
jne 0x14001648b
movss xmm0, dword [rbx + 0xd8]
comiss xmm8, xmm0
ja 0x14001648b
movsd xmm10, qword [rbx + 0x1b60]
cvtpd2ps xmm10, xmm10
subss xmm10, xmm0
mov ebp, edi
cmp dword [rbx + 0x1b90], edi
je 0x1400165f6
mov r14, rdi
nop dword [rax]
mov rax, qword [rbx + 0x1b98]
mov rsi, qword [r14 + rax]
movzx eax, byte [rsi + 0xcf]
mov byte [rsi + 0xd0], al
mov word [rsi + 0xda], di
mov byte [rsi + 0xcf], dil
mov byte [rsi + 0xd1], dil
test al, al
jne 0x1400165e4
cmp byte [rsi + 0x430], dil
jne 0x1400165e4
comiss xmm10, dword [rsi + 0x2c8]
jbe 0x1400165e4
mov rcx, qword [rsi + 0x300]
mov byte [rsi + 0x430], 1
mov eax, dword [rcx + 0x14]
mov dword [rsi + 0x428], eax
mov eax, dword [rcx + 0x24]
mov dword [rsi + 0x42c], eax
mov rcx, qword [rsi + 0x110]
test rcx, rcx
je 0x140016542
mov rax, qword [0x140099548]
mov qword [rsi + 0x108], rdi
test rax, rax
je 0x140016535
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi + 0x110], rdi
mov rcx, qword [rsi + 0x300]
call fcn.14003be90
mov rcx, qword [rsi + 0x1e0]
test rcx, rcx
je 0x140016580
mov rax, qword [0x140099548]
mov qword [rsi + 0x1d8], rdi
test rax, rax
je 0x140016573
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi + 0x1e0], rdi
mov rcx, qword [rsi + 0x220]
test rcx, rcx
je 0x1400165b2
mov rax, qword [0x140099548]
mov qword [rsi + 0x218], rdi
test rax, rax
je 0x1400165a5
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi + 0x220], rdi
mov rcx, qword [rsi + 0x230]
test rcx, rcx
je 0x1400165e4
mov rax, qword [0x140099548]
mov qword [rsi + 0x228], rdi
test rax, rax
je 0x1400165d7
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi + 0x230], rdi
inc ebp
add r14, 8
cmp ebp, dword [rbx + 0x1b90]
jne 0x1400164a0
mov ebp, edi
cmp dword [rbx + 0x2068], edi
jle 0x140016741
mov r15, rdi
mov r14, rdi
nop word [rax + rax]
mov rax, qword [rbx + 0x2070]
movss xmm0, dword [r14 + rax]
comiss xmm0, xmm8
jb 0x140016728
comiss xmm10, xmm0
jbe 0x140016728
mov rsi, qword [rbx + 0x2038]
mov r13, qword [0x140099548]
add rsi, r15
lea rcx, [rsi + 0x1e8]
call fcn.14003e930
mov rcx, qword [rsi + 0x218]
test rcx, rcx
je 0x140016680
mov rax, qword [0x140099548]
mov qword [rsi + 0x210], rdi
test rax, rax
je 0x140016673
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi + 0x218], rdi
mov qword [rsi + 0x220], rdi
mov byte [rsi + 0x24b], 1
mov rcx, qword [rsi + 0x1e0]
test rcx, rcx
je 0x1400166c0
mov rax, qword [0x140099548]
mov qword [rsi + 0x1d8], rdi
test rax, rax
je 0x1400166b3
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi + 0x1e0], rdi
mov edx, edi
mov byte [rsi + 0x255], 1
cmp dword [rsi + 0x6c], edi
jle 0x1400166f5
mov rcx, rdi
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rsi + 0x10]
lea rcx, [rcx + 0x68]
inc edx
mov word [rax + rcx - 0x18], r12w
cmp edx, dword [rsi + 0x6c]
jl 0x1400166e0
sub rsi, qword [r13 + 0x2038]
movabs rax, 0x6d3a06d3a06d3a07
imul rsi
sar rdx, 8
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, qword [r13 + 0x2070]
movsxd rcx, edx
mov dword [rax + rcx*4], 0xbf800000
inc ebp
add r14, 4
add r15, 0x258
cmp ebp, dword [rbx + 0x2068]
jl 0x140016610
movaps xmm10, xmmword [rsp + 0x20]
mov r12, qword [rsp + 0xb0]
cmp byte [rbx + 0x1b7b], dil
je 0x1400167c1
mov rsi, qword [0x140099548]
mov rcx, qword [rsi + 0x1d90]
test rcx, rcx
je 0x14001678a
mov qword [rsi + 0x1d88], rdi
test rsi, rsi
je 0x14001677d
dec dword [rsi + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi + 0x1d90], rdi
mov rcx, qword [rsi + 0x1da0]
test rcx, rcx
je 0x1400167bc
mov rax, qword [0x140099548]
mov qword [rsi + 0x1d98], rdi
test rax, rax
je 0x1400167af
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi + 0x1da0], rdi
call fcn.14004a4a0
mov rax, qword [rbx + 0x1e00]
mov byte [rbx + 0x1b7b], dil
test rax, rax
je 0x1400167e4
cmp byte [rax + 0xd0], dil
jne 0x1400167e4
xor ecx, ecx
call fcn.14001f720
mov ecx, dword [rbx + 0x1bc4]
test ecx, ecx
jns 0x14001680a
mov eax, ecx
cdq
sub eax, edx
mov edx, edi
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x1bc0]
test eax, eax
cmovg edx, eax
call fcn.140032120
mov dword [rbx + 0x1bc0], edi
mov ecx, dword [rbx + 0x1dbc]
test ecx, ecx
jns 0x140016836
mov eax, ecx
cdq
sub eax, edx
mov edx, edi
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x1db8]
test eax, eax
cmovg edx, eax
call fcn.140032520
lea rsi, [rbx + 0x1d88]
mov dword [rbx + 0x1db8], edi
mov ecx, dword [rsi + 4]
test ecx, ecx
jns 0x140016862
mov eax, ecx
cdq
sub eax, edx
mov edx, edi
sar eax, 1
add eax, ecx
mov rcx, rsi
test eax, eax
cmovg edx, eax
call fcn.1400325c0
mov dword [rsi], edi
cmp dword [rsi + 4], edi
jne 0x140016876
mov edx, 8
mov rcx, rsi
call fcn.1400325c0
movsxd rcx, dword [rsi]
xor edx, edx
mov rax, qword [rsi + 8]
mov dword [rax + rcx*4], edi
lea rcx, [rbx + 0x1d98]
inc dword [rsi]
call fcn.140031cc0
mov r13, qword [0x140099548]
mov r11, qword [rbx + 0x1e00]
movsxd rbp, dword [r13 + 0x1da8]
test ebp, ebp
je 0x140016943
mov r10d, edi
test r11, r11
je 0x140016930
test ebp, ebp
jle 0x140016930
mov rsi, qword [r13 + 0x1db0]
mov r14, rdi
add rsi, 8
mov r15, rdi
nop word [rax + rax]
mov rax, qword [rsi]
test rax, rax
je 0x14001691d
test dword [rax + 0xc], 0x1000000
jne 0x14001691d
mov rdx, r14
cmp r10d, ebp
jge 0x140016930
mov rcx, qword [r13 + 0x1db0]
add rcx, 8
add rcx, r15
mov r8, qword [rcx]
test r8, r8
je 0x14001690f
mov rax, qword [r11 + 0x3d8]
cmp qword [r8 + 0x3d8], rax
je 0x14001691d
inc rdx
add rcx, 0x30
cmp rdx, rbp
jl 0x1400168f7
jmp 0x140016939
inc r10d
inc r14
add r15, 0x30
add rsi, 0x30
cmp r10d, ebp
jl 0x1400168d0
cmp r10d, dword [r13 + 0x1da8]
jge 0x140016943
xor edx, edx
mov ecx, r10d
call fcn.140021370
test byte [rbx + 8], 0x40
mov r15, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
mov r13, qword [rsp + 0xb8]
je 0x140016a63
mov rax, qword [rbx + 0x1c00]
mov qword [rbx + 0x1c08], rdi
test rax, rax
je 0x1400169ad
mov rcx, qword [rax + 0x458]
test rcx, rcx
je 0x140016993
mov rdx, qword [rbx + 0x120]
call fcn.14002ef80
mov qword [rbx + 0x1c08], rax
jmp 0x1400169ad
mov rax, qword [rax + 0x3e0]
mov rcx, qword [rax + 0x450]
test rcx, rcx
je 0x1400169ad
mov qword [rbx + 0x1c08], rcx
mov esi, edi
cmp dword [rbx + 0x3080], edi
jle 0x1400169ed
mov rbp, rdi
nop word [rax + rax]
mov rax, qword [rbx + 0x3088]
cmp dword [rax + rbp], 1
jne 0x1400169df
movsxd rdx, esi
mov rcx, rbx
shl rdx, 6
add rdx, rax
call fcn.140029820
inc esi
add rbp, 0x40
cmp esi, dword [rbx + 0x3080]
jl 0x1400169c0
mov ecx, dword [rbx + 0x3084]
test ecx, ecx
jns 0x140016a13
mov eax, ecx
cdq
sub eax, edx
mov edx, edi
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x3080]
test eax, eax
cmovg edx, eax
call fcn.140032660
mov dword [rbx + 0x3080], edi
mov esi, edi
cmp dword [rbx + 0x3070], edi
jle 0x140016a63
mov rbp, rdi
nop word [rax + rax]
mov rax, qword [rbx + 0x3078]
mov rcx, qword [rax + rbp + 8]
test rcx, rcx
je 0x140016a55
cmp qword [rcx + 0x10], rdi
jne 0x140016a55
test dword [rcx + 8], 0x400
jne 0x140016a55
call fcn.14002a680
inc esi
add rbp, 0x10
cmp esi, dword [rbx + 0x3070]
jl 0x140016a30
mov r8, qword [0x140099548]
mov rbp, qword [rsp + 0xa8]
mov dword [r8 + 0x3150], edi
cmp byte [r8 + 0x314c], dil
je 0x140016b3b
mov esi, dword [r8 + 0x1c30]
mov dword [r8 + 0x1f80], 7
mov ecx, dword [r8 + 0x74]
test ecx, ecx
js 0x140016ab0
call fcn.140018fd0
test al, al
je 0x140016ab0
mov byte [r8 + 0x314c], dil
movss xmm0, dword [r8 + 0x434]
ucomiss xmm0, xmm8
jp 0x140016ad3
jne 0x140016ad3
test esi, esi
je 0x140016ad3
mov dword [r8 + 0x3150], esi
mov byte [r8 + 0x314c], dil
mov rax, qword [0x140099548]
xor edx, edx
or dword [rax + 0x1c98], 0x40
mov dword [rax + 0x1cf8], 0x3f19999a
call fcn.140020eb0
mov edx, esi
lea rcx, str.HoveredId:_0x_08X
call fcn.14004b900
lea rcx, str.Press_ESC_to_abort_picking.
call fcn.14004b900
mov eax, 0x10
lea rdx, str.Click_to_break_in_debugger_
test esi, esi
mov rcx, rdi
cmove rcx, rax
mov rax, qword [0x140099548]
add rax, 0x16fc
add rcx, rax
call fcn.14004ba00
call fcn.14001f1b0
mov rax, qword [0x140099548]
lea rcx, str.DebugDefault
mov byte [rbx + 0x1b79], 1
xor r8d, r8d
xor edx, edx
or dword [rax + 0x1c98], 2
mov dword [rax + 0x1cbc], 0x43c80000
mov dword [rax + 0x1cc0], 0x43c80000
mov dword [rax + 0x1ca0], 4
call fcn.14001c1a0
movaps xmm8, xmmword [rsp + 0x40]
cmp dword [rbx + 0x30f0], edi
jle 0x140016bbd
mov rsi, rdi
mov rax, qword [rbx + 0x30f8]
cmp dword [rsi + rax + 4], 1
jne 0x140016baf
movsxd rdx, edi
mov rcx, rbx
shl rdx, 5
add rdx, rax
call qword [rsi + rax + 0x10]
inc edi
add rsi, 0x20
cmp edi, dword [rbx + 0x30f0]
jl 0x140016b90
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret