Function at 0x180014a50
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
sub rsp, 0x70
mov rdi, qword [0x180076be8]
xor edx, edx
mov qword [rax + 0x10], rbp
mov rcx, rdi
mov qword [rax + 0x20], r13
mov qword [rax - 0x20], r14
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
call fcn.1800138d0
mov rbx, qword [0x180076be8]
cmp byte [rbx + 0x114], 0
je 0x180014aa2
test byte [rbx + 0x54], 2
jne 0x180014aa2
mov byte [rbx + 0x114], 0
xor esi, esi
cmp byte [rbx + 0x3131], sil
jne 0x180014b05
mov rcx, qword [rbx + 0x68]
test rcx, rcx
je 0x180014afe
lea r8, [rsp + 0x90]
mov qword [rsp + 0x90], rsi
call fcn.180011610
mov rbp, rax
test rax, rax
je 0x180014afe
mov rdx, qword [rsp + 0x90]
mov rcx, rax
call fcn.180021200
mov rcx, qword [0x180076be8]
test rcx, rcx
je 0x180014af5
dec dword [rcx + 0x3fc]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x3131], 1
movss xmm0, dword [rbx + 0x3134]
xorps xmm6, xmm6
comiss xmm0, xmm6
jbe 0x180014ba1
subss xmm0, dword [rbx + 0x60]
comiss xmm6, xmm0
movss dword [rbx + 0x3134], xmm0
jb 0x180014ba1
mov rbp, qword [rbx + 0x68]
test rbp, rbp
je 0x180014b94
mov rax, qword [0x180076be8]
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x90], rsi
mov dword [rax + 0x3134], esi
call fcn.180021560
lea rdx, [0x18006fb08]
mov rcx, rbp
mov r14, rax
call fcn.1800114e0
mov rbp, rax
test rax, rax
je 0x180014b9b
mov r8, qword [rsp + 0x90]
mov r9, rax
mov edx, 1
mov rcx, r14
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 0x180014b9b
mov byte [rbx + 0x3e4], 1
mov dword [rbx + 0x3134], esi
inc dword [rdi + 0x1ac0]
movss xmm0, dword [rdi + 0x60]
cvtps2pd xmm0, xmm0
mov byte [rdi + 0x1acc], 1
mov dword [rdi + 0x30f8], esi
mov dword [rdi + 0x1b30], esi
addsd xmm0, qword [rdi + 0x1ab8]
movsd qword [rdi + 0x1ab8], xmm0
mov ecx, dword [rdi + 0x3114]
test ecx, ecx
jns 0x180014bf8
mov eax, ecx
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, ecx
lea rcx, [rdi + 0x3110]
test eax, eax
cmovg edx, eax
call fcn.1800227c0
movss xmm8, dword [0x1800702f4]
movss xmm9, dword [0x1800701f4]
mov dword [rdi + 0x3110], esi
movsxd rax, dword [rdi + 0x33b4]
movss xmm1, dword [rdi + 0x60]
movaps xmm0, xmm1
subss xmm0, dword [rdi + rax*4 + 0x31d4]
addss xmm0, dword [rdi + 0x33b8]
movss dword [rdi + 0x33b8], xmm0
movss dword [rdi + rax*4 + 0x31d4], xmm1
mov eax, 0x88888889
mov ecx, dword [rdi + 0x33b4]
movss xmm1, dword [rdi + 0x33b8]
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, xmm6
mov dword [rdi + 0x33b4], ecx
jbe 0x180014c86
divss xmm1, dword [0x1800702ac]
movaps xmm0, xmm9
divss xmm0, xmm1
jmp 0x180014c8a
movaps xmm0, xmm8
mov rax, qword [rdi + 0xf0]
movss dword [rdi + 0x3e8], xmm0
mov byte [rax], 1
mov rax, qword [0x180076be8]
mov rcx, qword [rax + 0x100]
test rcx, rcx
jne 0x180014cbd
mov rax, qword [rax + 0xf0]
mov rcx, qword [rax + 0x48]
mov rcx, qword [rcx]
call fcn.18001bb50
movss xmm2, dword [rdi + 0x58]
movss xmm3, dword [rdi + 0x5c]
mov qword [rdi + 0x19fc], rsi
movss dword [rdi + 0x1a04], xmm2
movss dword [rdi + 0x1a08], xmm3
mov eax, dword [rdi + 0x1664]
movss xmm1, dword [rdi + 0x1668]
mov dword [rdi + 0x19f4], eax
movss xmm0, dword [rdi + 0x19f8]
ucomiss xmm0, xmm1
jp 0x180014d0a
je 0x180014d8b
movaps xmmword [rsp + 0x40], xmm7
lea r14, [rdi + 0x1a70]
movss xmm7, dword [0x180070230]
mov ebx, esi
movss dword [rdi + 0x19f8], xmm1
mov ebp, 0x200
nop dword [rax]
movd xmm1, ebx
cvtdq2ps xmm1, xmm1
addss xmm1, xmm9
movaps xmm0, xmm1
subss xmm0, dword [rdi + 0x19f8]
divss xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_acosf
movaps xmm1, xmm7
divss xmm1, xmm0
cvttss2si edx, xmm1
cmp edx, 0xc
jge 0x180014d67
mov edx, 0xc
jmp 0x180014d6c
cmp edx, ebp
cmovg edx, ebp
mov ecx, 0xff
movzx eax, dl
cmp edx, ecx
cmovl ecx, eax
inc ebx
mov byte [r14], cl
inc r14
cmp ebx, 0x40
jl 0x180014d30
movaps xmm7, xmmword [rsp + 0x40]
mov r8d, esi
mov dword [rdi + 0x1a0c], esi
cmp byte [rdi + 0x1660], sil
je 0x180014dad
mov dword [rdi + 0x1a0c], 1
mov r8d, 1
mov edx, r8d
cmp byte [rdi + 0x1661], sil
je 0x180014dd3
mov rax, qword [rdi + 0x19d0]
mov rcx, qword [rax + 0x40]
test byte [rcx + 4], 4
jne 0x180014dd3
or edx, 2
mov dword [rdi + 0x1a0c], edx
cmp byte [rdi + 0x1662], sil
je 0x180014de5
or edx, 4
mov dword [rdi + 0x1a0c], edx
test byte [rdi + 0x54], 8
je 0x180014df4
or edx, 8
mov dword [rdi + 0x1a0c], edx
lea rcx, [rdi + 0x1ec8]
call fcn.180029ea0
mov rdx, qword [rdi + 0xf0]
lea rcx, [rdi + 0x1ec8]
mov rdx, qword [rdx + 8]
call fcn.18002a4a0
mov rax, qword [rdi + 0x1f00]
lea rcx, [rdi + 0x1ec8]
xor r9d, r9d
movss xmm1, dword [rax + 0x28]
movss xmm0, dword [rax + 0x24]
movss xmm2, dword [rax + 0x20]
unpcklps xmm0, xmm1
movss xmm1, dword [rax + 0x1c]
movq r8, xmm0
unpcklps xmm1, xmm2
movq rdx, xmm1
call fcn.18002a380
lea rcx, [rdi + 0x1f90]
call fcn.180029ea0
mov rdx, qword [rdi + 0xf0]
lea rcx, [rdi + 0x1f90]
mov rdx, qword [rdx + 8]
call fcn.18002a4a0
mov rax, qword [rdi + 0x1fc8]
lea rcx, [rdi + 0x1f90]
xor r9d, r9d
movss xmm1, dword [rax + 0x28]
movss xmm0, dword [rax + 0x24]
movss xmm2, dword [rax + 0x20]
unpcklps xmm0, xmm1
movss xmm1, dword [rax + 0x1c]
movq r8, xmm0
unpcklps xmm1, xmm2
movq rdx, xmm1
call fcn.18002a380
mov r8, qword [0x180076be8]
mov byte [rdi + 0x1e68], sil
mov qword [rdi + 0x1e70], rsi
mov qword [rdi + 0x1e7c], rsi
mov dword [rdi + 0x1e78], esi
mov qword [rdi + 0x1e94], rsi
mov qword [rdi + 0x1e8c], rsi
mov qword [rdi + 0x1e84], rsi
cmp byte [rdi + 0x205c], sil
je 0x180014f1d
mov eax, dword [rdi + 0x207c]
cmp eax, dword [rdi + 0x1b88]
jne 0x180014f1d
cmp dword [r8 + 0x1b88], eax
jne 0x180014f0c
mov dword [r8 + 0x1b8c], eax
cmp dword [r8 + 0x1bc8], eax
jne 0x180014f1d
mov byte [r8 + 0x1bcc], 1
cmp dword [rdi + 0x1b78], esi
jne 0x180014f2d
mov dword [rdi + 0x1b80], esi
jmp 0x180014f3f
mov eax, dword [rdi + 0x1b74]
test eax, eax
je 0x180014f45
cmp dword [rdi + 0x1b88], eax
jne 0x180014f45
mov dword [rdi + 0x1b84], esi
mov eax, dword [rdi + 0x1b74]
test eax, eax
je 0x180014f7f
movss xmm1, dword [rdi + 0x60]
movaps xmm0, xmm1
addss xmm0, dword [rdi + 0x1b80]
movss dword [rdi + 0x1b80], xmm0
cmp dword [rdi + 0x1b88], eax
je 0x180014f7f
addss xmm1, dword [rdi + 0x1b84]
movss dword [rdi + 0x1b84], xmm1
mov dword [rdi + 0x1b78], eax
movzx eax, byte [rdi + 0x1b7d]
mov byte [rdi + 0x1b7e], al
mov eax, dword [rdi + 0x1b88]
mov dword [rdi + 0x1b74], esi
mov word [rdi + 0x1b7c], si
mov byte [rdi + 0x1b7f], sil
cmp dword [rdi + 0x1b8c], eax
je 0x180015012
cmp dword [rdi + 0x1bc8], eax
jne 0x180015012
test eax, eax
je 0x180015012
mov ecx, dword [r8 + 0x1b88]
test ecx, ecx
setne al
mov byte [r8 + 0x1b94], al
test ecx, ecx
je 0x180014fe6
mov dword [r8 + 0x1b90], esi
mov word [r8 + 0x1b97], si
mov dword [r8 + 0x1b88], esi
mov word [r8 + 0x1b95], si
mov qword [r8 + 0x1bb8], rsi
mov word [r8 + 0x1b99], si
mov qword [r8 + 0x1b9c], rsi
mov qword [r8 + 0x1ba8], rsi
mov ecx, dword [rdi + 0x1b88]
test ecx, ecx
je 0x180015031
movss xmm0, dword [rdi + 0x60]
addss xmm0, dword [rdi + 0x1b90]
movss dword [rdi + 0x1b90], xmm0
mov rax, qword [rdi + 0x1bb8]
movss xmm0, dword [rdi + 0x60]
addss xmm0, dword [rdi + 0x1bdc]
mov qword [rdi + 0x1bd0], rax
movzx eax, byte [rdi + 0x1b98]
mov byte [rdi + 0x1bcd], al
mov eax, dword [rdi + 0x30b8]
movss dword [rdi + 0x1bdc], xmm0
mov dword [rdi + 0x1bc8], ecx
mov dword [rdi + 0x1b8c], esi
mov byte [rdi + 0x1b99], sil
mov byte [rdi + 0x1bcc], sil
mov byte [rdi + 0x1b94], sil
test eax, eax
je 0x180015096
cmp ecx, eax
je 0x180015096
mov dword [rdi + 0x30b8], esi
test ecx, ecx
jne 0x1800150a8
mov qword [rdi + 0x1b9c], rsi
mov qword [rdi + 0x1ba8], rsi
mov eax, dword [rdi + 0x20cc]
mov dword [rdi + 0x20d0], eax
mov eax, esi
mov qword [rdi + 0x20c8], 0x7f7fffff
mov word [rdi + 0x205d], si
mov dword [rdi + 0x20d8], esi
cmp byte [r8 + 0x188], sil
setne al
mov ecx, eax
or ecx, 2
cmp byte [r8 + 0x189], sil
cmove ecx, eax
mov edx, ecx
or edx, 4
cmp byte [r8 + 0x18a], sil
cmove edx, ecx
lea rcx, [rdi + 0xce8]
mov eax, edx
or eax, 8
cmp byte [r8 + 0x18b], sil
mov r8d, 0x800
cmove eax, edx
lea rdx, [rdi + 0x4e8]
mov dword [rdi + 0x408], eax
call sub.VCRUNTIME140.dll_memcpy
movss xmm1, dword [0x180070300]
lea rcx, [rdi + 0x18d]
lea rax, [rdi + 0x4ec]
mov r8d, 0x80
cmp byte [rcx - 1], sil
je 0x18001515c
movss xmm0, dword [rax - 4]
comiss xmm6, xmm0
jbe 0x180015155
movaps xmm0, xmm6
jmp 0x18001515f
addss xmm0, dword [rdi + 0x60]
jmp 0x18001515f
movaps xmm0, xmm1
movss dword [rax - 4], xmm0
cmp byte [rcx], sil
je 0x18001517e
movss xmm0, dword [rax]
comiss xmm6, xmm0
jbe 0x180015177
movaps xmm0, xmm6
jmp 0x180015181
addss xmm0, dword [rdi + 0x60]
jmp 0x180015181
movaps xmm0, xmm1
movss dword [rax], xmm0
cmp byte [rcx + 1], sil
je 0x1800151a1
movss xmm0, dword [rax + 4]
comiss xmm6, xmm0
jbe 0x18001519a
movaps xmm0, xmm6
jmp 0x1800151a4
addss xmm0, dword [rdi + 0x60]
jmp 0x1800151a4
movaps xmm0, xmm1
movss dword [rax + 4], xmm0
cmp byte [rcx + 2], sil
je 0x1800151c5
movss xmm0, dword [rax + 8]
comiss xmm6, xmm0
jbe 0x1800151be
movaps xmm0, xmm6
jmp 0x1800151c8
addss xmm0, dword [rdi + 0x60]
jmp 0x1800151c8
movaps xmm0, xmm1
movss dword [rax + 8], xmm0
add rcx, 4
add rax, 0x10
sub r8, 1
jne 0x180015140
call fcn.18001e4b0
call fcn.180013eb0
call fcn.180014740
call fcn.1800139e0
mov r8, qword [0x180076be8]
mov eax, dword [r8 + 0x1cc8]
sub eax, 1
js 0x18001523b
mov r8, qword [r8 + 0x1cd0]
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 0x180015231
test dword [rax + 0xc], 0x8000000
jne 0x180015251
sub r8, 0x30
sub rdx, 1
jns 0x180015220
cmp qword [rdi + 0x1e18], rsi
je 0x18001526d
movss xmm0, dword [rdi + 0x1e34]
comiss xmm0, xmm6
jbe 0x18001526d
movss xmm1, dword [rdi + 0x60]
mulss xmm1, dword [0x180070228]
addss xmm1, dword [rdi + 0x1ec0]
minss xmm1, xmm9
jmp 0x18001528a
movss xmm0, dword [rdi + 0x60]
mulss xmm0, dword [0x180070244]
movss xmm1, dword [rdi + 0x1ec0]
subss xmm1, xmm0
maxss xmm1, xmm6
movss dword [rdi + 0x1ec0], xmm1
mov dword [rdi + 0x2058], esi
mov qword [rdi + 0x33c0], 0xffffffffffffffff
mov dword [rdi + 0x33bc], 0xffffffff
mov dword [rdi + 0x3120], 0x3f800000
mov dword [rdi + 0x3124], 0x3f800000
call fcn.180014270
mov r11, qword [0x180076be8]
movaps xmm9, xmmword [rsp + 0x20]
mov r8, qword [r11 + 0x1ce8]
test r8, r8
je 0x180015313
cmp byte [r8 + 0x8e], sil
je 0x180015313
test dword [r8 + 0xc], 0x40000
jne 0x180015313
cmp byte [r11 + 0x188], sil
jne 0x180015313
mov ecx, dword [r11 + 0x84]
test ecx, ecx
js 0x180015313
call fcn.180016b10
test al, al
je 0x180015313
mov al, 1
jmp 0x180015315
xor al, al
mov byte [r11 + 0x1e60], al
cmp dword [r11 + 0x1b88], esi
jne 0x180015380
test al, al
je 0x180015380
mov qword [r11 + 0x1e48], r8
mov dword [r11 + 0x1e58], 0x7fffffff
cmp dword [r11 + 0x1cf0], esi
je 0x18001536d
mov ecx, dword [r11 + 0x1d38]
cmp ecx, 0x7fffffff
je 0x18001536d
cmp byte [r11 + 0x189], sil
mov eax, 2
cmovne eax, esi
add eax, ecx
mov dword [r11 + 0x1e5c], eax
jmp 0x180015380
movzx eax, byte [r11 + 0x189]
neg al
sbb ecx, ecx
mov dword [r11 + 0x1e5c], ecx
mov r8, qword [r11 + 0x1e48]
mov qword [r11 + 0x1e40], rsi
mov dword [r11 + 0x1e54], 0x7fffffff
mov dword [r11 + 0x1e50], 0x7fffffff
test r8, r8
je 0x18001541d
mov eax, dword [r11 + 0x1e58]
mov qword [r11 + 0x1e40], r8
cmp eax, 0x7fffffff
je 0x1800153d8
mov ecx, dword [r8 + 0x1c4]
cmp ecx, 0xffffffff
je 0x1800153d8
inc ecx
add eax, ecx
cdq
idiv ecx
mov dword [r11 + 0x1e50], edx
mov eax, dword [r11 + 0x1e5c]
cmp eax, 0x7fffffff
je 0x180015400
mov ecx, dword [r8 + 0x1c8]
cmp ecx, 0xffffffff
je 0x180015400
inc ecx
add eax, ecx
cdq
idiv ecx
mov dword [r11 + 0x1e54], edx
mov qword [r11 + 0x1e48], rsi
mov dword [r11 + 0x1e5c], 0x7fffffff
mov dword [r11 + 0x1e58], 0x7fffffff
mov dword [r11 + 0x1d38], 0x7fffffff
cmp byte [rdi + 0x1acf], sil
jne 0x180015451
movss xmm0, dword [rdi + 0x118]
comiss xmm6, xmm0
ja 0x180015451
movsd xmm8, qword [rdi + 0x1ab8]
cvtpd2ps xmm8, xmm8
subss xmm8, xmm0
mov ebp, esi
cmp dword [rdi + 0x1ae0], esi
je 0x1800155b8
mov r14, rsi
mov rax, qword [rdi + 0x1ae8]
mov rbx, qword [r14 + rax]
movzx eax, byte [rbx + 0x8e]
mov byte [rbx + 0x8f], al
mov word [rbx + 0x9a], si
mov byte [rbx + 0x8e], sil
mov byte [rbx + 0x90], sil
test al, al
jne 0x1800155a6
cmp byte [rbx + 0x3e0], sil
jne 0x1800155a6
comiss xmm8, dword [rbx + 0x284]
jbe 0x1800155a6
mov rcx, qword [rbx + 0x2b8]
mov byte [rbx + 0x3e0], 1
mov eax, dword [rcx + 0x14]
mov dword [rbx + 0x3d8], eax
mov eax, dword [rcx + 0x24]
mov dword [rbx + 0x3dc], eax
mov rcx, qword [rbx + 0xd0]
test rcx, rcx
je 0x180015504
mov rax, qword [0x180076be8]
mov qword [rbx + 0xc8], rsi
test rax, rax
je 0x1800154f7
dec dword [rax + 0x3fc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0xd0], rsi
mov rcx, qword [rbx + 0x2b8]
call fcn.18002a040
mov rcx, qword [rbx + 0x1a0]
test rcx, rcx
je 0x180015542
mov rax, qword [0x180076be8]
mov qword [rbx + 0x198], rsi
test rax, rax
je 0x180015535
dec dword [rax + 0x3fc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1a0], rsi
mov rcx, qword [rbx + 0x1e0]
test rcx, rcx
je 0x180015574
mov rax, qword [0x180076be8]
mov qword [rbx + 0x1d8], rsi
test rax, rax
je 0x180015567
dec dword [rax + 0x3fc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1e0], rsi
mov rcx, qword [rbx + 0x1f0]
test rcx, rcx
je 0x1800155a6
mov rax, qword [0x180076be8]
mov qword [rbx + 0x1e8], rsi
test rax, rax
je 0x180015599
dec dword [rax + 0x3fc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1f0], rsi
inc ebp
add r14, 8
cmp ebp, dword [rdi + 0x1ae0]
jne 0x180015462
mov ebp, esi
cmp dword [rdi + 0x2140], esi
jle 0x180015667
mov r14, rsi
nop dword [rax]
mov rax, qword [rdi + 0x2148]
movss xmm0, dword [r14 + rax]
comiss xmm0, xmm6
jb 0x180015655
comiss xmm8, xmm0
jbe 0x180015655
cmp byte [rdi + 0x1acf], sil
je 0x180015655
mov rbx, qword [0x180076be8]
mov rcx, qword [rbx + 0x1cb0]
test rcx, rcx
je 0x180015623
mov qword [rbx + 0x1ca8], rsi
test rbx, rbx
je 0x180015616
dec dword [rbx + 0x3fc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1cb0], rsi
mov rcx, qword [rbx + 0x1cc0]
test rcx, rcx
je 0x180015655
mov rax, qword [0x180076be8]
mov qword [rbx + 0x1cb8], rsi
test rax, rax
je 0x180015648
dec dword [rax + 0x3fc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1cc0], rsi
inc ebp
add r14, 4
cmp ebp, dword [rdi + 0x2140]
jl 0x1800155d0
mov rax, qword [rdi + 0x1ce8]
movaps xmm8, xmmword [rsp + 0x30]
mov byte [rdi + 0x1acf], sil
test rax, rax
je 0x1800156f4
cmp byte [rax + 0x8f], sil
jne 0x1800156f4
mov rcx, qword [0x180076be8]
mov eax, dword [rcx + 0x1af0]
sub eax, 1
js 0x1800156ed
movsxd r9, eax
mov rax, qword [rcx + 0x1af8]
lea r10, [rax + r9*8]
nop dword [rax]
mov r8, qword [r10]
test r8, r8
je 0x1800156e3
cmp byte [r8 + 0x8f], sil
je 0x1800156e3
mov eax, dword [r8 + 0xc]
and eax, 0x40200
cmp eax, 0x40200
setne cl
bt dword [r8 + 0xc], 0x18
setae al
test al, cl
jne 0x18001583c
sub r10, 8
sub r9, 1
jns 0x1800156b0
xor ecx, ecx
call fcn.18001b830
mov ecx, dword [rdi + 0x1b14]
test ecx, ecx
jns 0x18001571a
mov eax, ecx
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, ecx
lea rcx, [rdi + 0x1b10]
test eax, eax
cmovg edx, eax
call fcn.180022290
mov dword [rdi + 0x1b10], esi
mov ecx, dword [rdi + 0x1cdc]
test ecx, ecx
jns 0x180015746
mov eax, ecx
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, ecx
lea rcx, [rdi + 0x1cd8]
test eax, eax
cmovg edx, eax
call fcn.180022720
lea rbx, [rdi + 0x1ca8]
mov dword [rdi + 0x1cd8], esi
mov ecx, dword [rbx + 4]
test ecx, ecx
jns 0x180015772
mov eax, ecx
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, ecx
mov rcx, rbx
test eax, eax
cmovg edx, eax
call fcn.1800227c0
mov dword [rbx], esi
mov r13d, 8
cmp dword [rbx + 4], esi
jne 0x18001578a
mov edx, r13d
mov rcx, rbx
call fcn.1800227c0
movsxd rcx, dword [rbx]
xor edx, edx
mov rax, qword [rbx + 8]
mov dword [rax + rcx*4], esi
lea rcx, [rdi + 0x1cb8]
inc dword [rbx]
call fcn.180021fc0
mov r9, qword [0x180076be8]
mov r11, qword [rdi + 0x1ce8]
movsxd rbp, dword [r9 + 0x1cc8]
test ebp, ebp
je 0x1800158bd
mov qword [rsp + 0xa0], r12
mov ebx, esi
mov qword [rsp + 0x60], r15
test r11, r11
je 0x18001586e
test ebp, ebp
jle 0x18001586e
mov r14, qword [r9 + 0x1cd0]
mov r15, rsi
add r14, r13
mov r12, rsi
mov rax, qword [r14]
test rax, rax
je 0x18001585d
test dword [rax + 0xc], 0x1000000
jne 0x18001585d
mov rdx, r15
cmp ebx, ebp
jge 0x18001586e
mov rcx, qword [r9 + 0x1cd0]
add rcx, r13
add rcx, r12
mov r8, qword [rcx]
test r8, r8
je 0x18001582e
mov rax, qword [r11 + 0x390]
cmp qword [r8 + 0x390], rax
je 0x18001585d
inc rdx
add rcx, 0x30
cmp rdx, rbp
jl 0x180015816
jmp 0x180015877
mov rcx, qword [r8 + 0x3a8]
test rcx, rcx
je 0x180015855
cmp byte [rcx + 0x8f], sil
jne 0x1800156ef
mov rcx, r8
jmp 0x1800156ef
inc ebx
inc r15
add r12, 0x30
add r14, 0x30
cmp ebx, ebp
jl 0x1800157f1
cmp ebx, dword [r9 + 0x1cc8]
jge 0x1800158b0
lea r14, [r9 + 0x1cc8]
mov ecx, dword [r14 + 4]
cmp ebx, ecx
jle 0x1800158ad
test ecx, ecx
je 0x180015895
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
lea r13d, [rcx + rax]
cmp r13d, ebx
mov edx, ebx
mov rcx, r14
cmovg edx, r13d
call fcn.180022720
mov r9, qword [0x180076be8]
mov dword [r14], ebx
mov r12, qword [rsp + 0xa0]
mov r15, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
mov r13, qword [rsp + 0xa8]
mov rbp, qword [rsp + 0x98]
mov dword [r9 + 0x31c0], esi
cmp byte [r9 + 0x31bc], sil
je 0x1800159a0
mov ebx, dword [r9 + 0x1b78]
mov dword [r9 + 0x2058], 7
mov ecx, dword [r9 + 0xbc]
test ecx, ecx
js 0x180015913
call fcn.180016b10
test al, al
je 0x180015913
mov byte [r9 + 0x31bc], sil
movss xmm0, dword [r9 + 0x484]
ucomiss xmm0, xmm6
jp 0x180015935
jne 0x180015935
test ebx, ebx
je 0x180015935
mov dword [r9 + 0x31c0], ebx
mov byte [r9 + 0x31bc], sil
or dword [r9 + 0x1be0], 0x40
xor edx, edx
mov dword [r9 + 0x1c40], 0x3f19999a
call fcn.18001cd90
mov edx, ebx
lea rcx, str.HoveredId:_0x_08X
call fcn.180033a60
lea rcx, str.Press_ESC_to_abort_picking.
call fcn.180033a60
mov eax, 0x10
lea rdx, str.Click_to_break_in_debugger_
test ebx, ebx
mov ecx, 0x20
cmovne ecx, eax
mov rax, qword [0x180076be8]
add rax, 0x166c
add rcx, rax
call fcn.180033b60
call fcn.18001b710
mov r9, qword [0x180076be8]
mov byte [rdi + 0x1acd], 1
lea rcx, str.DebugDefault
or dword [r9 + 0x1be0], 2
xor r8d, r8d
xor edx, edx
mov dword [r9 + 0x1c00], 0x43c80000
mov dword [r9 + 0x1c04], 0x43c80000
mov dword [r9 + 0x1be8], 4
call fcn.180019260
movaps xmm6, xmmword [rsp + 0x50]
cmp dword [rdi + 0x3178], esi
jle 0x180015a20
mov rbx, rsi
mov r8, qword [rdi + 0x3180]
cmp dword [r8 + rbx], 1
jne 0x180015a12
movsxd rax, esi
lea rcx, [rax + rax*2]
lea rdx, [r8 + rcx*8]
mov rcx, rdi
call qword [r8 + rbx + 8]
inc esi
add rbx, 0x18
cmp esi, dword [rdi + 0x3178]
jl 0x1800159f1
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret