Function at 0x180007160
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
push r12
sub rsp, 0x88
mov qword [rax + 0x18], rbp
mov qword [rax - 0x30], r14
mov r14, qword [0x18015da60]
mov qword [rax - 0x38], r15
mov rbx, r14
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov edi, dword [r14 + 0x3240]
lea r12, [r14 + 0x3248]
sub edi, 1
movaps xmmword [rax - 0x68], xmm8
movaps xmmword [rax - 0x78], xmm9
movaps xmmword [rsp + 0x20], xmm10
mov qword [rsp + 0xb8], r12
js 0x180007219
movsxd rsi, edi
shl rsi, 5
mov rbp, rsi
mov rdx, qword [r12]
cmp dword [rdx + rsi + 4], 7
jne 0x18000720a
mov rcx, qword [r14 + 0x3248]
movsxd r8, dword [r14 + 0x3240]
sub rdx, rcx
add rdx, rbp
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 [r14 + 0x3240]
sub rbp, 0x20
sub rsi, 0x20
sub edi, 1
jns 0x1800071c2
jmp 0x180007221
mov qword [rsp + 0xb8], r12
xor edi, edi
mov esi, edi
cmp dword [r14 + 0x3240], edi
jle 0x180007261
mov ebp, edi
mov rax, qword [r12]
cmp dword [rax + rbp + 4], edi
jne 0x18000724b
movsxd rdx, esi
mov rcx, rbx
shl rdx, 5
add rdx, rax
call qword [rax + rbp + reloc.WS2_32.dll_recv]
inc esi
add rbp, 0x20
cmp esi, dword [r14 + 0x3240]
jl 0x180007230
mov r14, qword [0x18015da60]
mov eax, dword [rbx + 0x1a6c]
mov dword [rbx + 0x1a70], eax
cmp byte [r14 + 0xd3], dil
je 0x180007284
test byte [r14 + 0xc], 2
jne 0x180007284
mov byte [r14 + 0xd3], dil
mov ecx, dword [r14 + 8]
bt ecx, 0xa
jae 0x1800072a6
mov eax, dword [r14 + 0xc]
and eax, 0x1400
cmp eax, 0x1400
je 0x1800072a6
btr ecx, 0xa
mov dword [r14 + 8], ecx
mov eax, dword [rbx + 8]
mov rsi, r14
mov dword [rbx + 0x1a6c], eax
cmp byte [r14 + 0x31f8], dil
jne 0x18000731a
mov rcx, qword [r14 + 0x20]
test rcx, rcx
je 0x180007313
lea r8, [rsp + 0xb0]
mov qword [rsp + 0xb0], rdi
call fcn.180002e00
mov rbp, rax
test rax, rax
je 0x18000730c
mov rdx, qword [rsp + 0xb0]
mov rcx, rax
call fcn.180016d10
mov rcx, qword [0x18015da60]
test rcx, rcx
je 0x180007303
dec dword [rcx + 0x3b0]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r14, qword [0x18015da60]
mov byte [rsi + 0x31f8], 1
movss xmm0, dword [rsi + 0x31fc]
xorps xmm8, xmm8
comiss xmm0, xmm8
jbe 0x1800073b3
subss xmm0, dword [rsi + 0x18]
comiss xmm8, xmm0
movss dword [rsi + 0x31fc], xmm0
jb 0x1800073b3
mov rbp, qword [rsi + 0x20]
test rbp, rbp
je 0x1800073a6
lea rcx, [rsp + 0xb0]
mov dword [r14 + 0x31fc], edi
mov qword [rsp + 0xb0], rdi
call fcn.180017070
lea rdx, [0x1800d16b0]
mov rcx, rbp
mov r14, rax
call fcn.180002cd0
mov rbp, rax
test rax, rax
je 0x1800073ad
mov r8, qword [rsp + 0xb0]
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 0x1800073ad
mov byte [rsi + 0x398], 1
mov dword [rsi + 0x31fc], edi
movss xmm0, dword [rbx + 0x18]
lea rcx, [rbx + 0x3190]
inc dword [rbx + 0x1c90]
xor edx, edx
cvtps2pd xmm0, xmm0
mov byte [rbx + 0x1ca0], 1
mov dword [rbx + 0x3178], edi
mov dword [rbx + 0x1d08], edi
addsd xmm0, qword [rbx + 0x1c88]
movsd qword [rbx + 0x1c88], xmm0
call fcn.180022e50
movsxd rax, dword [rbx + 0x3494]
movss xmm1, dword [rbx + 0x18]
movss xmm10, dword [0x1800d78b0]
movaps xmm0, xmm1
movss xmm9, dword [0x1800d77a8]
subss xmm0, dword [rbx + rax*4 + 0x32b4]
addss xmm0, dword [rbx + 0x3498]
movss dword [rbx + 0x3498], xmm0
movss dword [rbx + rax*4 + 0x32b4], xmm1
mov eax, 0x88888889
mov ecx, dword [rbx + 0x3494]
movss xmm1, dword [rbx + 0x3498]
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 + 0x3494], ecx
jbe 0x18000747b
divss xmm1, dword [0x1800d7868]
movaps xmm0, xmm9
divss xmm0, xmm1
jmp 0x18000747f
movaps xmm0, xmm10
movss dword [rbx + 0x39c], xmm0
call fcn.180017fb0
mov rax, qword [rbx + 0xa8]
mov rbp, qword [0x18015da60]
mov byte [rax + 0x18], 1
mov rcx, qword [rbp + 0xb8]
test rcx, rcx
jne 0x1800074b8
mov rax, qword [rbp + 0xa8]
mov rcx, qword [rax + 0x50]
mov rcx, qword [rcx]
call fcn.180010b50
mov eax, dword [rbx + 0x1ef0]
movaps xmm7, xmm10
movss xmm4, dword [0x1800d78d8]
movaps xmm6, xmm10
movaps xmm5, xmm4
test eax, eax
jle 0x180007537
mov rcx, qword [rbx + 0x1ef8]
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 0x180007515
movaps xmm7, xmm3
comiss xmm6, xmm2
jbe 0x18000751d
movaps xmm6, xmm2
comiss xmm0, xmm4
jbe 0x180007525
movaps xmm4, xmm0
comiss xmm1, xmm5
jbe 0x18000752d
movaps xmm5, xmm1
add rcx, 8
sub rdx, 1
jne 0x1800074f0
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 0x180007583
je 0x180007633
movss xmm6, dword [0x1800d7800]
lea r14, [rbx + 0x1c3c]
movss dword [rbx + 0x1aa0], xmm1
mov esi, edi
mov r15d, 0x200
movd xmm0, esi
cvtdq2ps xmm0, xmm0
test esi, esi
je 0x1800075fb
movss xmm1, dword [rbx + 0x1aa0]
minss xmm1, xmm0
divss xmm1, xmm0
movaps xmm0, xmm9
subss xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_acosf
movaps xmm1, xmm6
divss xmm1, xmm0
movaps xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_ceilf
cvttss2si eax, xmm0
inc eax
cdq
sub eax, edx
sar eax, 1
add eax, eax
cmp eax, 4
jge 0x1800075f2
mov eax, 4
jmp 0x1800075fd
cmp eax, r15d
cmovg eax, r15d
jmp 0x1800075fd
mov eax, edi
mov byte [r14], al
inc esi
inc r14
cmp esi, 0x40
jl 0x1800075a2
movss xmm0, dword [0x1800d7730]
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
movss xmm1, dword [rbx + 0x1aa0]
movaps xmm2, xmm9
subss xmm2, xmm0
divss xmm1, xmm2
movss dword [rbx + 0x1c38], xmm1
mov r8d, edi
movaps xmm6, xmmword [rsp + 0x60]
mov dword [rbx + 0x1ab4], edi
cmp byte [rbx + 0x16f0], dil
je 0x18000765a
mov dword [rbx + 0x1ab4], 1
mov r8d, 1
mov edx, r8d
cmp byte [rbx + 0x16f1], dil
je 0x18000767f
mov rax, qword [rbx + 0x1a78]
mov rcx, qword [rax + 0x40]
test byte [rcx], 4
jne 0x18000767f
or edx, 2
mov dword [rbx + 0x1ab4], edx
cmp byte [rbx + 0x16f2], dil
je 0x180007691
or edx, 4
mov dword [rbx + 0x1ab4], edx
test byte [rbx + 0xc], 8
je 0x1800076a0
or edx, 8
mov dword [rbx + 0x1ab4], edx
mov r8d, edi
cmp dword [rbx + 0x1ef0], edi
jle 0x1800076f1
mov rdx, rdi
nop
mov rax, qword [rbx + 0x1ef8]
lea rdx, [rdx + 8]
xorps xmm0, xmm0
inc r8d
mov rcx, qword [rdx + 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 r8d, dword [rbx + 0x1ef0]
jl 0x1800076b0
cmp byte [rbx + 0x20d4], dil
je 0x180007725
mov eax, dword [rbx + 0x20f4]
cmp eax, dword [rbx + 0x1d6c]
jne 0x180007725
cmp dword [rbp + 0x1d6c], eax
jne 0x180007716
mov dword [rbp + 0x1d70], eax
cmp dword [rbp + 0x1da8], eax
jne 0x180007725
mov byte [rbp + 0x1dac], 1
lea rax, [rbx + 0x1d58]
mov ecx, dword [rax]
cmp dword [rbx + 0x1d5c], edi
jne 0x18000773e
mov dword [rbx + 0x1d64], edi
jmp 0x18000774f
mov edx, ecx
mov r8, rax
test ecx, ecx
je 0x18000775a
cmp dword [rbx + 0x1d6c], ecx
jne 0x18000775a
mov dword [rbx + 0x1d68], edi
mov edx, ecx
mov r8, rax
movss xmm1, dword [rbx + 0x18]
test edx, edx
je 0x180007791
movaps xmm0, xmm1
addss xmm0, dword [rbx + 0x1d64]
movss dword [rbx + 0x1d64], xmm0
cmp dword [rbx + 0x1d6c], edx
je 0x180007791
movaps xmm0, xmm1
addss xmm0, dword [rbx + 0x1d68]
movss dword [rbx + 0x1d68], xmm0
movzx eax, byte [rbx + 0x1d61]
movaps xmm2, xmm1
mov byte [rbx + 0x1d62], al
mov r14d, 0xffffffff
mov eax, dword [rbx + 0x1d6c]
mov dword [rbx + 0x1d5c], edx
mov dword [r8], edi
mov word [rbx + 0x1d60], di
mov byte [rbx + 0x1d63], dil
cmp dword [rbx + 0x1d70], eax
je 0x18000782f
cmp dword [rbx + 0x1da8], eax
jne 0x18000782f
test eax, eax
je 0x18000782f
mov ecx, dword [rbp + 0x1d6c]
test ecx, ecx
setne al
mov byte [rbp + 0x1d78], al
test ecx, ecx
je 0x180007801
mov dword [rbp + 0x1d74], edi
mov word [rbp + 0x1d7b], di
mov dword [rbp + 0x1da4], r14d
mov dword [rbp + 0x1d6c], edi
mov word [rbp + 0x1d79], di
mov qword [rbp + 0x1d98], rdi
mov word [rbp + 0x1d7d], di
mov qword [rbp + 0x1d80], rdi
mov qword [rbp + 0x1d88], rdi
movss xmm2, dword [rbx + 0x18]
mov ecx, dword [rbx + 0x1d6c]
test ecx, ecx
je 0x18000784c
movaps xmm0, xmm2
addss xmm0, dword [rbx + 0x1d74]
movss dword [rbx + 0x1d74], xmm0
mov rax, qword [rbx + 0x1d98]
addss xmm2, dword [rbx + 0x1dbc]
mov qword [rbx + 0x1db0], rax
movzx eax, byte [rbx + 0x1d7c]
mov byte [rbx + 0x1dad], al
mov eax, dword [rbx + 0x3138]
movss dword [rbx + 0x1dbc], xmm2
mov dword [rbx + 0x1da8], ecx
mov dword [rbx + 0x1d70], edi
mov byte [rbx + 0x1d7d], dil
mov byte [rbx + 0x1dac], dil
mov byte [rbx + 0x1d78], dil
test eax, eax
je 0x1800078ac
cmp ecx, eax
je 0x1800078ac
mov dword [rbx + 0x3138], edi
test ecx, ecx
jne 0x1800078be
mov qword [rbx + 0x1d80], rdi
mov qword [rbx + 0x1d88], rdi
mov eax, dword [rbx + 0x2144]
mov r8d, 0x800
mov dword [rbx + 0x2148], eax
mov eax, edi
mov qword [rbx + 0x2140], 0x7f7fffff
mov word [rbx + 0x20d5], di
mov dword [rbx + 0x2150], 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 [0x1800d78c0]
lea rdx, [rbx + 0x141]
lea rax, [rbx + 0x49c]
mov r8d, 0x80
cmp byte [rdx - 1], dil
je 0x180007974
movss xmm0, dword [rax - 4]
comiss xmm8, xmm0
jbe 0x18000796d
movaps xmm0, xmm8
jmp 0x180007977
addss xmm0, dword [rbx + 0x18]
jmp 0x180007977
movaps xmm0, xmm1
movss dword [rax - 4], xmm0
cmp byte [rdx], dil
je 0x180007998
movss xmm0, dword [rax]
comiss xmm8, xmm0
jbe 0x180007991
movaps xmm0, xmm8
jmp 0x18000799b
addss xmm0, dword [rbx + 0x18]
jmp 0x18000799b
movaps xmm0, xmm1
movss dword [rax], xmm0
cmp byte [rdx + 1], dil
je 0x1800079bd
movss xmm0, dword [rax + 4]
comiss xmm8, xmm0
jbe 0x1800079b6
movaps xmm0, xmm8
jmp 0x1800079c0
addss xmm0, dword [rbx + 0x18]
jmp 0x1800079c0
movaps xmm0, xmm1
movss dword [rax + 4], xmm0
cmp byte [rdx + 2], dil
je 0x1800079e3
movss xmm0, dword [rax + 8]
comiss xmm8, xmm0
jbe 0x1800079dc
movaps xmm0, xmm8
jmp 0x1800079e6
addss xmm0, dword [rbx + 0x18]
jmp 0x1800079e6
movaps xmm0, xmm1
movss dword [rax + 8], xmm0
add rdx, 4
add rax, 0x10
sub r8, 1
jne 0x180007956
call fcn.1800137f0
call fcn.180006580
test byte [rbx + 8], 0x40
jne 0x180007a34
cmp dword [rbx + 0x31c0], edi
jg 0x180007a21
cmp dword [rbx + 0x31d0], edi
jle 0x180007b13
mov dl, 1
call fcn.180020750
xor ecx, ecx
call fcn.180020270
jmp 0x180007b13
cmp byte [rbx + 0xc8], dil
je 0x180007a82
mov ebp, edi
cmp dword [rbx + 0x31c0], edi
jle 0x180007a82
mov rsi, rdi
nop word [rax + rax]
mov rax, qword [rbx + 0x31c8]
mov rcx, qword [rsi + rax + 8]
test rcx, rcx
je 0x180007a74
cmp qword [rcx + 0x10], rdi
jne 0x180007a74
cmp qword [rcx + 0x18], rdi
je 0x180007a74
mov ecx, dword [rcx]
call fcn.180020270
inc ebp
add rsi, 0x10
cmp ebp, dword [rbx + 0x31c0]
jl 0x180007a50
cmp byte [rbx + 0x31f0], dil
je 0x180007ac5
xor ecx, ecx
call fcn.180017070
xor edx, edx
call fcn.180020750
xor ecx, ecx
call fcn.180020270
mov r8d, dword [rbx + 0x31e0]
mov rcx, rbx
mov rdx, qword [rbx + 0x31e8]
call fcn.18001a1f0
mov rcx, rbx
call fcn.18001a430
mov byte [rbx + 0x31f0], dil
mov ebp, edi
cmp dword [rbx + 0x31d0], edi
jle 0x180007b13
mov rsi, rdi
mov rax, qword [rbx + 0x31d8]
cmp dword [rsi + rax], 2
jne 0x180007b05
mov rdx, qword [rsi + rax + 0x30]
test rdx, rdx
je 0x180007af3
mov r8b, 1
call fcn.18001a960
jmp 0x180007b05
mov rdx, qword [rsi + rax + 0x38]
test rdx, rdx
je 0x180007b05
mov rcx, rbx
call fcn.18001aac0
inc ebp
add rsi, 0x40
cmp ebp, dword [rbx + 0x31d0]
jl 0x180007ad2
call fcn.180006e10
call fcn.180005e60
mov r8, qword [0x18015da60]
mov eax, dword [r8 + 0x1ed0]
sub eax, 1
js 0x180007b6b
mov r8, qword [r8 + 0x1ed8]
movsxd rdx, eax
add r8, 8
lea rcx, [rdx + rdx*2]
shl rcx, 4
add r8, rcx
nop dword [rax]
mov rax, qword [r8]
test rax, rax
je 0x180007b61
test dword [rax + 0xc], 0x8000000
jne 0x180007b82
sub r8, 0x30
sub rdx, 1
jns 0x180007b50
cmp qword [rbx + 0x2080], rdi
je 0x180007b9e
movss xmm0, dword [rbx + 0x209c]
comiss xmm0, xmm8
jbe 0x180007b9e
movss xmm1, dword [rbx + 0x18]
mulss xmm1, dword [0x1800d780c]
addss xmm1, dword [rbx + 0x20cc]
minss xmm1, xmm9
jmp 0x180007bbc
movss xmm0, dword [rbx + 0x18]
mulss xmm0, dword [0x1800d7818]
movss xmm1, dword [rbx + 0x20cc]
subss xmm1, xmm0
maxss xmm1, xmm8
movss dword [rbx + 0x20cc], xmm1
mov dword [rbx + 0x20d0], edi
mov qword [rbx + 0x34a0], 0xffffffffffffffff
mov dword [rbx + 0x349c], r14d
mov dword [rbx + 0x31a0], 0x3f800000
mov dword [rbx + 0x31a4], 0x3f800000
mov qword [rbx + 0x31b0], rdi
call fcn.180006940
mov r11, qword [0x18015da60]
movaps xmm9, xmmword [rsp + 0x30]
mov r8, qword [r11 + 0x1f50]
test r8, r8
je 0x180007c46
cmp byte [r8 + 0xcf], dil
je 0x180007c46
test dword [r8 + 0xc], 0x40000
jne 0x180007c46
cmp byte [r11 + 0x13c], dil
jne 0x180007c46
mov ecx, dword [r11 + 0x3c]
test ecx, ecx
js 0x180007c46
call fcn.18000a760
test al, al
je 0x180007c46
mov al, 1
jmp 0x180007c48
xor al, al
mov byte [r11 + 0x20c8], al
cmp dword [r11 + 0x1d6c], edi
jne 0x180007ca9
test al, al
je 0x180007ca9
mov qword [r11 + 0x20b0], r8
mov dword [r11 + 0x20c0], 0x7fffffff
cmp dword [r11 + 0x1f58], edi
je 0x180007c96
mov edx, dword [r11 + 0x1fa0]
cmp edx, 0x7fffffff
je 0x180007c96
movzx eax, byte [r11 + 0x13d]
neg al
sbb ecx, ecx
add ecx, edx
jmp 0x180007ca2
movzx eax, byte [r11 + 0x13d]
neg al
sbb ecx, ecx
mov dword [r11 + 0x20c4], ecx
mov r8, qword [r11 + 0x20b0]
mov qword [r11 + 0x20a8], rdi
mov dword [r11 + 0x20bc], 0x7fffffff
mov dword [r11 + 0x20b8], 0x7fffffff
test r8, r8
je 0x180007d46
mov eax, dword [r11 + 0x20c0]
mov qword [r11 + 0x20a8], r8
cmp eax, 0x7fffffff
je 0x180007d01
mov ecx, dword [r8 + 0x1fc]
cmp ecx, r14d
je 0x180007d01
inc ecx
add eax, ecx
cdq
idiv ecx
mov dword [r11 + 0x20b8], edx
mov eax, dword [r11 + 0x20c4]
cmp eax, 0x7fffffff
je 0x180007d29
mov ecx, dword [r8 + 0x200]
cmp ecx, r14d
je 0x180007d29
inc ecx
add eax, ecx
cdq
idiv ecx
mov dword [r11 + 0x20bc], edx
mov qword [r11 + 0x20b0], rdi
mov dword [r11 + 0x20c4], 0x7fffffff
mov dword [r11 + 0x20c0], 0x7fffffff
mov dword [r11 + 0x1fa0], 0x7fffffff
cmp byte [rbx + 0x1ca3], dil
jne 0x180007d7b
movss xmm0, dword [rbx + 0xd8]
comiss xmm8, xmm0
ja 0x180007d7b
movsd xmm10, qword [rbx + 0x1c88]
cvtpd2ps xmm10, xmm10
subss xmm10, xmm0
mov ebp, edi
cmp dword [rbx + 0x1cb8], edi
je 0x180007ee6
mov r14, rdi
nop dword [rax]
mov rax, qword [rbx + 0x1cc0]
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 0x180007ed4
cmp byte [rsi + 0x428], dil
jne 0x180007ed4
comiss xmm10, dword [rsi + 0x2c0]
jbe 0x180007ed4
mov rcx, qword [rsi + 0x2f8]
mov byte [rsi + 0x428], 1
mov eax, dword [rcx + 0x14]
mov dword [rsi + 0x420], eax
mov eax, dword [rcx + 0x24]
mov dword [rsi + 0x424], eax
mov rcx, qword [rsi + 0x110]
test rcx, rcx
je 0x180007e32
mov rax, qword [0x18015da60]
mov qword [rsi + 0x108], rdi
test rax, rax
je 0x180007e25
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 + 0x2f8]
call fcn.18002b4b0
mov rcx, qword [rsi + 0x1d8]
test rcx, rcx
je 0x180007e70
mov rax, qword [0x18015da60]
mov qword [rsi + 0x1d0], rdi
test rax, rax
je 0x180007e63
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi + 0x1d8], rdi
mov rcx, qword [rsi + 0x218]
test rcx, rcx
je 0x180007ea2
mov rax, qword [0x18015da60]
mov qword [rsi + 0x210], rdi
test rax, rax
je 0x180007e95
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi + 0x218], rdi
mov rcx, qword [rsi + 0x228]
test rcx, rcx
je 0x180007ed4
mov rax, qword [0x18015da60]
mov qword [rsi + 0x220], rdi
test rax, rax
je 0x180007ec7
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi + 0x228], rdi
inc ebp
add r14, 8
cmp ebp, dword [rbx + 0x1cb8]
jne 0x180007d90
mov ebp, edi
cmp dword [rbx + 0x21b8], edi
jle 0x18000803c
mov r15, rdi
mov qword [rsp + 0x80], r13
mov r14, rdi
movabs r12, 0x6d3a06d3a06d3a07
nop dword [rax]
mov rax, qword [rbx + 0x21c0]
movss xmm0, dword [r14 + rax]
comiss xmm0, xmm8
jb 0x180008013
comiss xmm10, xmm0
jbe 0x180008013
mov rsi, qword [rbx + 0x2188]
mov r13, qword [0x18015da60]
add rsi, r15
lea rcx, [rsi + 0x1e8]
call fcn.18002e960
mov rcx, qword [rsi + 0x218]
test rcx, rcx
je 0x180007f80
mov rax, qword [0x18015da60]
mov qword [rsi + 0x210], rdi
test rax, rax
je 0x180007f73
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 + 0x24c], 1
mov rcx, qword [rsi + 0x1e0]
test rcx, rcx
je 0x180007fc0
mov rax, qword [0x18015da60]
mov qword [rsi + 0x1d8], rdi
test rax, rax
je 0x180007fb3
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 + 0x256], 1
cmp dword [rsi + 0x6c], edi
jle 0x180007fe7
mov rcx, rdi
mov rax, qword [rsi + 0x10]
lea rcx, [rcx + 0x68]
inc edx
mov word [rax + rcx - 0x18], 0xffff
cmp edx, dword [rsi + 0x6c]
jl 0x180007fd1
sub rsi, qword [r13 + 0x2188]
mov rax, r12
imul rsi
sar rdx, 8
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, qword [r13 + 0x21c0]
movsxd rcx, edx
mov dword [rax + rcx*4], 0xbf800000
inc ebp
add r14, 4
add r15, 0x258
cmp ebp, dword [rbx + 0x21b8]
jl 0x180007f10
mov r13, qword [rsp + 0x80]
mov r12, qword [rsp + 0xb8]
movaps xmm10, xmmword [rsp + 0x20]
mov r15, qword [rsp + 0x70]
cmp byte [rbx + 0x1ca3], dil
je 0x1800080b9
mov rsi, qword [0x18015da60]
mov rcx, qword [rsi + 0x1eb8]
test rcx, rcx
je 0x180008082
mov qword [rsi + 0x1eb0], rdi
test rsi, rsi
je 0x180008075
dec dword [rsi + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi + 0x1eb8], rdi
mov rcx, qword [rsi + 0x1ec8]
test rcx, rcx
je 0x1800080b4
mov rax, qword [0x18015da60]
mov qword [rsi + 0x1ec0], rdi
test rax, rax
je 0x1800080a7
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi + 0x1ec8], rdi
call fcn.180038230
mov rax, qword [rbx + 0x1f50]
mov byte [rbx + 0x1ca3], dil
test rax, rax
je 0x1800080dc
cmp byte [rax + 0xd0], dil
jne 0x1800080dc
xor ecx, ecx
call fcn.180010a60
lea rcx, [rbx + 0x1ce8]
call fcn.180022bd0
mov ecx, dword [rbx + 0x1ee4]
test ecx, ecx
jns 0x18000810e
mov eax, ecx
cdq
sub eax, edx
mov edx, edi
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x1ee0]
test eax, eax
cmovg edx, eax
call fcn.180023240
lea rsi, [rbx + 0x1eb0]
mov dword [rbx + 0x1ee0], edi
mov ecx, dword [rsi + 4]
test ecx, ecx
jns 0x18000813a
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.1800232e0
mov dword [rsi], edi
cmp dword [rsi + 4], edi
jne 0x18000814e
mov edx, 8
mov rcx, rsi
call fcn.1800232e0
movsxd rcx, dword [rsi]
xor edx, edx
mov rax, qword [rsi + 8]
mov dword [rax + rcx*4], edi
lea rcx, [rbx + 0x1ec0]
inc dword [rsi]
call fcn.1800225d0
mov r11, qword [0x18015da60]
mov rsi, qword [rbx + 0x1f50]
movsxd rbp, dword [r11 + 0x1ed0]
test ebp, ebp
je 0x180008204
mov r9d, edi
test rsi, rsi
je 0x1800081f5
test ebp, ebp
jle 0x1800081f5
mov r11, qword [r11 + 0x1ed8]
mov r14, rdi
add r11, 8
nop
mov rcx, qword [r11]
test rcx, rcx
je 0x1800081e6
test dword [rcx + 0xc], 0x1000000
jne 0x1800081e6
mov r8, r14
cmp r9d, ebp
jge 0x180008204
mov rdx, r11
nop dword [rax]
test rcx, rcx
je 0x1800081d5
mov rax, qword [rsi + 0x3d8]
cmp qword [rcx + 0x3d8], rax
je 0x1800081e6
inc r8
add rdx, 0x30
cmp r8, rbp
jge 0x1800081fa
mov rcx, qword [rdx]
jmp 0x1800081c0
inc r9d
inc r14
add r11, 0x30
cmp r9d, ebp
jl 0x1800081a0
cmp r9d, ebp
jge 0x180008204
xor edx, edx
mov ecx, r9d
call fcn.180011e30
test byte [rbx + 8], 0x40
je 0x180008313
mov rax, qword [rbx + 0x1d28]
mov qword [rbx + 0x1d30], rdi
test rax, rax
je 0x18000825c
mov rcx, qword [rax + 0x450]
test rcx, rcx
je 0x180008242
mov rdx, qword [rbx + 0x120]
call fcn.1800200a0
mov qword [rbx + 0x1d30], rax
jmp 0x18000825c
mov rax, qword [rax + 0x3d0]
mov rcx, qword [rax + 0x448]
test rcx, rcx
je 0x18000825c
mov qword [rbx + 0x1d30], rcx
mov esi, edi
cmp dword [rbx + 0x31d0], edi
jle 0x18000829d
mov rbp, rdi
nop dword [rax]
mov rax, qword [rbx + 0x31d8]
cmp dword [rax + rbp], 1
jne 0x18000828f
movsxd rdx, esi
mov rcx, rbx
shl rdx, 6
add rdx, rax
call fcn.18001a520
inc esi
add rbp, 0x40
cmp esi, dword [rbx + 0x31d0]
jl 0x180008270
mov ecx, dword [rbx + 0x31d4]
test ecx, ecx
jns 0x1800082c3
mov eax, ecx
cdq
sub eax, edx
mov edx, edi
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x31d0]
test eax, eax
cmovg edx, eax
call fcn.180023370
mov dword [rbx + 0x31d0], edi
mov esi, edi
cmp dword [rbx + 0x31c0], edi
jle 0x180008313
mov rbp, rdi
nop word [rax + rax]
mov rax, qword [rbx + 0x31c8]
mov rcx, qword [rax + rbp + 8]
test rcx, rcx
je 0x180008305
cmp qword [rcx + 0x10], rdi
jne 0x180008305
test dword [rcx + 8], 0x400
jne 0x180008305
call fcn.18001b8f0
inc esi
add rbp, 0x10
cmp esi, dword [rbx + 0x31c0]
jl 0x1800082e0
mov r8, qword [0x18015da60]
mov r14, qword [rsp + 0x78]
mov rbp, qword [rsp + 0xc0]
mov dword [r8 + 0x32a0], edi
cmp byte [r8 + 0x329c], dil
je 0x1800083f0
mov esi, dword [r8 + 0x1d5c]
mov dword [r8 + 0x20d0], 7
mov ecx, dword [r8 + 0x74]
test ecx, ecx
js 0x180008365
call fcn.18000a760
test al, al
je 0x180008365
mov byte [r8 + 0x329c], dil
movss xmm0, dword [r8 + 0x434]
ucomiss xmm0, xmm8
jp 0x180008388
jne 0x180008388
test esi, esi
je 0x180008388
mov dword [r8 + 0x32a0], esi
mov byte [r8 + 0x329c], dil
mov rax, qword [0x18015da60]
xor edx, edx
or dword [rax + 0x1dc0], 0x40
mov dword [rax + 0x1e20], 0x3f19999a
call fcn.180011970
mov edx, esi
lea rcx, str.HoveredId:_0x_08X
call fcn.180039410
lea rcx, str.Press_ESC_to_abort_picking.
call fcn.180039410
mov eax, reloc.WS2_32.dll_recv
lea rdx, str.Click_to_break_in_debugger_
test esi, esi
mov rcx, rdi
cmove rcx, rax
mov rax, qword [0x18015da60]
add rax, 0x16fc
add rcx, rax
call fcn.180039510
call fcn.1800104e0
mov rax, qword [0x18015da60]
lea rcx, str.DebugDefault
mov byte [rbx + 0x1ca1], 1
xor r8d, r8d
xor edx, edx
or dword [rax + 0x1dc0], 2
mov dword [rax + 0x1de4], 0x43c80000
mov dword [rax + 0x1de8], 0x43c80000
mov dword [rax + 0x1dc8], 4
call fcn.18000d410
movaps xmm8, xmmword [rsp + 0x40]
cmp dword [rbx + 0x3240], edi
jle 0x18000846f
mov rsi, rdi
mov rax, qword [r12]
cmp dword [rax + rsi + 4], 1
jne 0x180008461
movsxd rdx, edi
mov rcx, rbx
shl rdx, 5
add rdx, rax
call qword [rax + rsi + reloc.WS2_32.dll_recv]
inc edi
add rsi, 0x20
cmp edi, dword [rbx + 0x3240]
jl 0x180008445
add rsp, 0x88
pop r12
pop rdi
pop rsi
pop rbx
ret