Function at 0x140016ff0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rdi, qword [0x14014a270]
xor esi, esi
mov qword [rax + 0x10], rbp
mov ebx, esi
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
cmp dword [rdi + 0x3128], esi
jle 0x14001705e
mov ebp, esi
nop dword [rax]
mov r8, qword [rdi + 0x3130]
cmp dword [r8 + rbp], esi
jne 0x140017050
movsxd rax, ebx
lea rcx, [rax + rax*2]
lea rdx, [r8 + rcx*8]
mov rcx, rdi
call qword [rreloc.WS2_32.dll_htonl + rbp + 8]
inc ebx
add rbp, 0x18
cmp ebx, dword [rdi + 0x3128]
jl 0x140017030
mov rbx, qword [0x14014a270]
cmp byte [rbx + 0xcb], sil
je 0x14001707b
test byte [rbx + 0xc], 2
jne 0x14001707b
mov byte [rbx + 0xcb], sil
cmp byte [rbx + 0x30e1], sil
jne 0x1400170e2
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1400170db
lea r8, [rsp + 0xa0]
mov qword [rsp + 0xa0], rsi
call fcn.140013a80
mov rbp, rax
test rax, rax
je 0x1400170db
mov rdx, qword [rsp + 0xa0]
mov rcx, rax
call fcn.140025370
mov rcx, qword [0x14014a270]
test rcx, rcx
je 0x1400170cc
dec dword [rcx + 0x3b4]
mov rdx, qword [0x14014a260]
mov rcx, rbp
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov byte [rbx + 0x30e1], 1
movss xmm0, dword [rbx + 0x30e4]
xorps xmm6, xmm6
comiss xmm0, xmm6
jbe 0x14001717e
subss xmm0, dword [rbx + 0x18]
comiss xmm6, xmm0
movss dword [rbx + 0x30e4], xmm0
jb 0x14001717e
mov rbp, qword [rbx + 0x20]
test rbp, rbp
je 0x140017171
mov rax, qword [0x14014a270]
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0xa0], rsi
mov dword [rax + 0x30e4], esi
call fcn.1400256d0
lea rdx, [0x14011de8c]
mov rcx, rbp
mov r14, rax
call fcn.140013950
mov rbp, rax
test rax, rax
je 0x140017178
mov r8, qword [rsp + 0xa0]
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 0x140017178
mov byte [rbx + 0x39c], 1
mov dword [rbx + 0x30e4], esi
inc dword [rdi + 0x1a68]
movss xmm1, dword [rdi + 0x18]
cvtps2pd xmm0, xmm1
mov byte [rdi + 0x1a74], 1
mov dword [rdi + 0x30a8], esi
mov dword [rdi + 0x1ad8], esi
addsd xmm0, qword [rdi + 0x1a60]
movsd qword [rdi + 0x1a60], xmm0
mov ecx, dword [rdi + 0x30c4]
test ecx, ecx
jns 0x1400171da
mov eax, ecx
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, ecx
lea rcx, [rdi + 0x30c0]
test eax, eax
cmovg edx, eax
call fcn.140026e50
movss xmm1, dword [rdi + 0x18]
movss xmm9, dword [0x14011e944]
movaps xmm0, xmm1
movss xmm8, dword [0x14011e7d0]
mov dword [rdi + 0x30c0], esi
movsxd rax, dword [rdi + 0x3364]
subss xmm0, dword [rdi + rax*4 + 0x3184]
addss xmm0, dword [rdi + 0x3368]
movss dword [rdi + 0x3368], xmm0
movss dword [rdi + rax*4 + 0x3184], xmm1
mov eax, 0x88888889
mov ecx, dword [rdi + 0x3364]
movss xmm1, dword [rdi + 0x3368]
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 + 0x3364], ecx
jbe 0x140017263
divss xmm1, dword [0x14011e8d4]
movaps xmm0, xmm8
divss xmm0, xmm1
jmp 0x140017267
movaps xmm0, xmm9
mov rax, qword [rdi + 0xa8]
movss dword [rdi + 0x3a0], xmm0
mov byte [rax], 1
mov rax, qword [0x14014a270]
mov rcx, qword [rax + 0xb8]
test rcx, rcx
jne 0x14001729a
mov rax, qword [rax + 0xa8]
mov rcx, qword [rax + 0x48]
mov rcx, qword [rcx]
call fcn.14001ebc0
movss xmm0, dword [rdi + 0x14]
movss xmm2, dword [rdi + 0x10]
mov eax, dword [rdi + 0x161c]
mov qword [rsp + 0x20], rsi
movups xmm1, xmmword [rsp + 0x20]
mov dword [rdi + 0x199c], eax
shufps xmm1, xmm1, 0xd2
movss xmm1, xmm2
shufps xmm1, xmm1, 0x27
movss xmm1, xmm0
shufps xmm1, xmm1, 0x39
movups xmmword [rdi + 0x19a4], xmm1
movss xmm1, dword [rdi + 0x1620]
movss xmm0, dword [rdi + 0x19a0]
ucomiss xmm0, xmm1
jp 0x1400172f5
je 0x14001737b
movaps xmmword [rsp + 0x50], xmm7
lea r14, [rdi + 0x1a18]
movss xmm7, dword [0x14011e878]
mov ebx, esi
movss dword [rdi + 0x19a0], xmm1
mov ebp, 0x200
nop dword [rax + rax]
movd xmm1, ebx
cvtdq2ps xmm1, xmm1
addss xmm1, xmm8
movaps xmm0, xmm1
subss xmm0, dword [rdi + 0x19a0]
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 0x140017357
mov edx, listen
jmp 0x14001735c
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 0x140017320
movaps xmm7, xmmword [rsp + 0x50]
mov r8d, esi
mov dword [rdi + 0x19b4], esi
cmp byte [rdi + 0x1618], sil
je 0x14001739d
mov dword [rdi + 0x19b4], 1
mov r8d, 1
mov edx, r8d
cmp byte [rdi + 0x1619], sil
je 0x1400173c3
mov rax, qword [rdi + 0x1978]
mov rcx, qword [rax + 0x40]
test byte [rcx + 4], 4
jne 0x1400173c3
or edx, 2
mov dword [rdi + 0x19b4], edx
cmp byte [rdi + 0x161a], sil
je 0x1400173d5
or edx, 4
mov dword [rdi + 0x19b4], edx
test byte [rdi + 0xc], 8
je 0x1400173e4
or edx, 8
mov dword [rdi + 0x19b4], edx
lea rcx, [rdi + 0x1e70]
call fcn.14002e520
mov rdx, qword [rdi + 0xa8]
lea rcx, [rdi + 0x1e70]
mov rdx, qword [rdx + 8]
call fcn.14002eb40
mov rax, qword [rdi + 0x1ea8]
lea rcx, [rdi + 0x1e70]
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.14002ea20
lea rcx, [rdi + 0x1f38]
call fcn.14002e520
mov rdx, qword [rdi + 0xa8]
lea rcx, [rdi + 0x1f38]
mov rdx, qword [rdx + 8]
call fcn.14002eb40
mov rax, qword [rdi + 0x1f70]
lea rcx, [rdi + 0x1f38]
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.14002ea20
mov r8, qword [0x14014a270]
mov byte [rdi + 0x1e10], sil
mov qword [rdi + 0x1e18], rsi
mov qword [rdi + 0x1e24], rsi
mov dword [rdi + 0x1e20], esi
mov qword [rdi + 0x1e3c], rsi
mov qword [rdi + 0x1e34], rsi
mov qword [rdi + 0x1e2c], rsi
cmp byte [rdi + 0x2004], sil
je 0x14001750d
mov eax, dword [rdi + 0x2024]
cmp eax, dword [rdi + 0x1b30]
jne 0x14001750d
cmp dword [r8 + 0x1b30], eax
jne 0x1400174fc
mov dword [r8 + 0x1b34], eax
cmp dword [r8 + 0x1b70], eax
jne 0x14001750d
mov byte [r8 + 0x1b74], 1
mov eax, dword [rdi + 0x1b1c]
cmp dword [rdi + 0x1b20], esi
jne 0x140017523
mov dword [rdi + 0x1b28], esi
jmp 0x140017531
mov edx, eax
test eax, eax
je 0x140017539
cmp dword [rdi + 0x1b30], eax
jne 0x140017539
mov dword [rdi + 0x1b2c], esi
mov edx, eax
movss xmm2, dword [rdi + 0x18]
mov ecx, dword [rdi + 0x1b30]
test edx, edx
je 0x140017572
movaps xmm0, xmm2
addss xmm0, dword [rdi + 0x1b28]
movss dword [rdi + 0x1b28], xmm0
cmp ecx, edx
je 0x140017572
movaps xmm0, xmm2
addss xmm0, dword [rdi + 0x1b2c]
movss dword [rdi + 0x1b2c], xmm0
movaps xmm1, xmm2
movzx eax, byte [rdi + 0x1b25]
mov dword [rdi + 0x1b20], edx
mov edx, ecx
mov byte [rdi + 0x1b26], al
mov dword [rdi + 0x1b1c], esi
mov word [rdi + 0x1b24], si
mov byte [rdi + 0x1b27], sil
cmp dword [rdi + 0x1b34], ecx
je 0x14001760f
cmp dword [rdi + 0x1b70], ecx
jne 0x14001760f
test ecx, ecx
je 0x14001760f
mov ecx, dword [r8 + 0x1b30]
test ecx, ecx
setne al
mov byte [r8 + 0x1b3c], al
test ecx, ecx
je 0x1400175d8
mov dword [r8 + 0x1b38], esi
mov word [r8 + 0x1b3f], si
mov dword [r8 + 0x1b30], esi
mov word [r8 + 0x1b3d], si
mov qword [r8 + 0x1b60], rsi
mov word [r8 + 0x1b41], si
mov qword [r8 + 0x1b44], rsi
mov qword [r8 + 0x1b50], rsi
mov edx, dword [rdi + 0x1b30]
movss xmm1, dword [rdi + 0x18]
test edx, edx
je 0x140017626
movaps xmm0, xmm1
addss xmm0, dword [rdi + 0x1b38]
movss dword [rdi + 0x1b38], xmm0
mov rax, qword [rdi + 0x1b60]
addss xmm1, dword [rdi + 0x1b84]
mov qword [rdi + 0x1b78], rax
movzx eax, byte [rdi + 0x1b40]
mov byte [rdi + 0x1b75], al
mov eax, dword [rdi + 0x3068]
movss dword [rdi + 0x1b84], xmm1
mov dword [rdi + 0x1b70], edx
mov dword [rdi + 0x1b34], esi
mov byte [rdi + 0x1b41], sil
mov byte [rdi + 0x1b74], sil
mov byte [rdi + 0x1b3c], sil
test eax, eax
je 0x140017686
cmp edx, eax
je 0x140017686
mov dword [rdi + 0x3068], esi
test edx, edx
jne 0x140017698
mov qword [rdi + 0x1b44], rsi
mov qword [rdi + 0x1b50], rsi
mov eax, dword [rdi + 0x2074]
mov dword [rdi + 0x2078], eax
mov eax, esi
mov qword [rdi + 0x2070], 0x7f7fffff
mov word [rdi + 0x2005], si
mov dword [rdi + 0x2080], esi
cmp byte [r8 + 0x140], sil
setne al
mov ecx, eax
or ecx, 2
cmp byte [r8 + 0x141], sil
cmove ecx, eax
mov edx, ecx
or edx, 4
cmp byte [r8 + 0x142], sil
cmove edx, ecx
lea rcx, [rdi + 0xca0]
mov eax, edx
or eax, 8
cmp byte [r8 + 0x143], sil
mov r8d, 0x800
cmove eax, edx
lea rdx, [rdi + 0x4a0]
mov dword [rdi + 0x3c0], eax
call sub.VCRUNTIME140.dll_memcpy
movss xmm1, dword [0x14011e964]
lea rcx, [rdi + 0x145]
lea rax, [rdi + 0x4a4]
mov edx, 0x80
nop
cmp byte [rcx - 1], sil
je 0x14001774c
movss xmm0, dword [rax - 4]
comiss xmm6, xmm0
jbe 0x140017745
movaps xmm0, xmm6
jmp 0x14001774f
addss xmm0, dword [rdi + 0x18]
jmp 0x14001774f
movaps xmm0, xmm1
movss dword [rax - 4], xmm0
cmp byte [rcx], sil
je 0x14001776e
movss xmm0, dword [rax]
comiss xmm6, xmm0
jbe 0x140017767
movaps xmm0, xmm6
jmp 0x140017771
addss xmm0, dword [rdi + 0x18]
jmp 0x140017771
movaps xmm0, xmm1
movss dword [rax], xmm0
cmp byte [rcx + 1], sil
je 0x140017791
movss xmm0, dword [rax + 4]
comiss xmm6, xmm0
jbe 0x14001778a
movaps xmm0, xmm6
jmp 0x140017794
addss xmm0, dword [rdi + 0x18]
jmp 0x140017794
movaps xmm0, xmm1
movss dword [rax + 4], xmm0
cmp byte [rcx + 2], sil
je 0x1400177b5
movss xmm0, dword [rax + 8]
comiss xmm6, xmm0
jbe 0x1400177ae
movaps xmm0, xmm6
jmp 0x1400177b8
addss xmm0, dword [rdi + 0x18]
jmp 0x1400177b8
movaps xmm0, xmm1
movss dword [rax + 8], xmm0
add rcx, 4
add rax, 0x10
sub rdx, 1
jne 0x140017730
call fcn.1400220a0
call fcn.140016380
call fcn.140016cb0
call fcn.140015eb0
mov rbp, qword [0x14014a270]
mov eax, dword [rbp + 0x1c70]
sub eax, 1
js 0x14001782b
mov r8, qword [rbp + 0x1c78]
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 0x140017821
test dword [rax + 0xc], 0x8000000
jne 0x140017841
sub r8, 0x30
sub rdx, 1
jns 0x140017810
cmp qword [rdi + 0x1dc0], rsi
je 0x14001785d
movss xmm0, dword [rdi + 0x1ddc]
comiss xmm0, xmm6
jbe 0x14001785d
movss xmm1, dword [rdi + 0x18]
mulss xmm1, dword [0x14011e874]
addss xmm1, dword [rdi + 0x1e68]
minss xmm1, xmm8
jmp 0x14001787a
movss xmm0, dword [rdi + 0x18]
mulss xmm0, dword [0x14011e880]
movss xmm1, dword [rdi + 0x1e68]
subss xmm1, xmm0
maxss xmm1, xmm6
mov r13d, 0xffffffff
movss dword [rdi + 0x1e68], xmm1
mov dword [rdi + 0x336c], r13d
mov dword [rdi + 0x2000], esi
mov qword [rdi + 0x3370], 0xffffffffffffffff
mov dword [rdi + 0x30d0], 0x3f800000
mov dword [rdi + 0x30d4], 0x3f800000
call fcn.140016730
mov r8, qword [rbp + 0x1c90]
movaps xmm8, xmmword [rsp + 0x40]
test r8, r8
je 0x1400178fb
cmp byte [r8 + 0x86], sil
je 0x1400178fb
test dword [r8 + 0xc], 0x40000
jne 0x1400178fb
cmp byte [rbp + 0x140], sil
jne 0x1400178fb
mov ecx, dword [rbp + 0x3c]
test ecx, ecx
js 0x1400178fb
call fcn.1400197b0
test al, al
je 0x1400178fb
mov al, 1
jmp 0x1400178fd
xor al, al
mov byte [rbp + 0x1e08], al
cmp dword [rbp + 0x1b30], esi
jne 0x140017960
test al, al
je 0x140017960
mov qword [rbp + 0x1df0], r8
mov dword [rbp + 0x1e00], 0x7fffffff
cmp dword [rbp + 0x1c98], esi
je 0x14001794f
mov ecx, dword [rbp + 0x1ce0]
cmp ecx, 0x7fffffff
je 0x14001794f
cmp byte [rbp + 0x141], sil
mov eax, 2
cmovne eax, esi
add eax, ecx
mov dword [rbp + 0x1e04], eax
jmp 0x140017960
movzx eax, byte [rbp + 0x141]
neg al
sbb ecx, ecx
mov dword [rbp + 0x1e04], ecx
mov r8, qword [rbp + 0x1df0]
mov qword [rbp + 0x1de8], rsi
mov dword [rbp + 0x1dfc], 0x7fffffff
mov dword [rbp + 0x1df8], 0x7fffffff
test r8, r8
je 0x1400179f5
mov eax, dword [rbp + 0x1e00]
mov qword [rbp + 0x1de8], r8
cmp eax, 0x7fffffff
je 0x1400179b4
mov ecx, dword [r8 + 0x1b4]
cmp ecx, r13d
je 0x1400179b4
inc ecx
add eax, ecx
cdq
idiv ecx
mov dword [rbp + 0x1df8], edx
mov eax, dword [rbp + 0x1e04]
cmp eax, 0x7fffffff
je 0x1400179da
mov ecx, dword [r8 + 0x1b8]
cmp ecx, r13d
je 0x1400179da
inc ecx
add eax, ecx
cdq
idiv ecx
mov dword [rbp + 0x1dfc], edx
mov qword [rbp + 0x1df0], rsi
mov dword [rbp + 0x1e04], 0x7fffffff
mov dword [rbp + 0x1e00], 0x7fffffff
mov dword [rbp + 0x1ce0], 0x7fffffff
cmp byte [rdi + 0x1a77], sil
jne 0x140017a28
movss xmm0, dword [rdi + 0xd0]
comiss xmm6, xmm0
ja 0x140017a28
movsd xmm9, qword [rdi + 0x1a60]
cvtpd2ps xmm9, xmm9
subss xmm9, xmm0
mov r14d, esi
mov qword [rsp + 0x70], r15
cmp dword [rdi + 0x1a88], esi
je 0x140017bb0
mov r15, rsi
nop
mov rax, qword [rdi + 0x1a90]
mov rbx, qword [r15 + rax]
movzx eax, byte [rbx + 0x86]
mov byte [rbx + 0x87], al
mov word [rbx + 0x92], si
mov byte [rbx + 0x86], sil
mov byte [rbx + 0x88], sil
test al, al
jne 0x140017b9c
cmp byte [rbx + 0x3d0], sil
jne 0x140017b9c
comiss xmm9, dword [rbx + 0x274]
jbe 0x140017b9c
mov rcx, qword [rbx + 0x2a8]
mov byte [rbx + 0x3d0], 1
mov eax, dword [rcx + 0x14]
mov dword [rbx + 0x3c8], eax
mov eax, dword [rcx + 0x24]
mov dword [rbx + 0x3cc], eax
mov rcx, qword [rbx + 0xc8]
test rcx, rcx
je 0x140017ae1
mov qword [rbx + 0xc0], rsi
test rbp, rbp
je 0x140017ace
dec dword [rbp + 0x3b4]
mov rdx, qword [0x14014a260]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0xc8], rsi
mov rcx, qword [rbx + 0x2a8]
call fcn.14002e6c0
mov rcx, qword [rbx + 0x190]
test rcx, rcx
je 0x140017b25
mov rax, qword [0x14014a270]
mov qword [rbx + 0x188], rsi
test rax, rax
je 0x140017b12
dec dword [rax + 0x3b4]
mov rdx, qword [0x14014a260]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x190], rsi
mov rcx, qword [rbx + 0x1d0]
test rcx, rcx
je 0x140017b5d
mov rax, qword [0x14014a270]
mov qword [rbx + 0x1c8], rsi
test rax, rax
je 0x140017b4a
dec dword [rax + 0x3b4]
mov rdx, qword [0x14014a260]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1d0], rsi
mov rcx, qword [rbx + 0x1e0]
test rcx, rcx
je 0x140017b95
mov rax, qword [0x14014a270]
mov qword [rbx + 0x1d8], rsi
test rax, rax
je 0x140017b82
dec dword [rax + 0x3b4]
mov rdx, qword [0x14014a260]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1e0], rsi
mov rbp, qword [0x14014a270]
inc r14d
add r15, 8
cmp r14d, dword [rdi + 0x1a88]
jne 0x140017a40
mov r14d, esi
cmp dword [rdi + 0x20e8], esi
jle 0x140017d12
mov qword [rsp + 0xb0], r12
mov r15, rsi
mov r12, rsi
nop dword [rax]
mov rax, qword [rdi + 0x20f0]
movss xmm0, dword [r15 + rax]
comiss xmm0, xmm6
jb 0x140017cef
comiss xmm9, xmm0
jbe 0x140017cef
mov rbx, qword [rdi + 0x20b8]
add rbx, r12
lea rcx, [rbx + 0x1e0]
call fcn.140031910
mov rcx, qword [rbx + 0x210]
test rcx, rcx
je 0x140017c3e
mov rax, qword [0x14014a270]
mov qword [rbx + 0x208], rsi
test rax, rax
je 0x140017c2b
dec dword [rax + 0x3b4]
mov rdx, qword [0x14014a260]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x210], rsi
mov qword [rbx + 0x218], rsi
mov byte [rbx + 0x243], 1
mov rcx, qword [rbx + 0x1d8]
test rcx, rcx
je 0x140017c84
mov rax, qword [0x14014a270]
mov qword [rbx + 0x1d0], rsi
test rax, rax
je 0x140017c71
dec dword [rax + 0x3b4]
mov rdx, qword [0x14014a260]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1d8], rsi
mov edx, esi
mov byte [rbx + 0x24d], 1
cmp dword [rbx + 0x6c], esi
jle 0x140017cb5
mov rcx, rsi
nop word [rax + rax]
mov rax, qword [rbx + 0x10]
lea rcx, [rcx + 0x68]
inc edx
mov word [rcx + rax - 0x18], r13w
cmp edx, dword [rbx + 0x6c]
jl 0x140017ca0
sub rbx, qword [rbp + 0x20b8]
movabs rax, 0x3759f22983759f23
imul rbx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, qword [rbp + 0x20f0]
mov rbp, qword [0x14014a270]
movsxd rcx, edx
mov dword [rax + rcx*4], 0xbf800000
inc r14d
add r15, 4
add r12, 0x250
cmp r14d, dword [rdi + 0x20e8]
jl 0x140017bd0
mov r12, qword [rsp + 0xb0]
movaps xmm9, xmmword [rsp + 0x30]
mov r15, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
mov r13, qword [rsp + 0xb8]
cmp byte [rdi + 0x1a77], sil
je 0x140017dab
mov rcx, qword [rbp + 0x1c58]
mov rbx, rbp
test rcx, rcx
je 0x140017d6e
mov qword [rbp + 0x1c50], rsi
test rbx, rbx
je 0x140017d54
dec dword [rbp + 0x3b4]
mov rdx, qword [0x14014a260]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbp + 0x1c58], rsi
mov rbp, qword [0x14014a270]
mov rcx, qword [rbx + 0x1c68]
test rcx, rcx
je 0x140017d9f
mov qword [rbx + 0x1c60], rsi
test rbp, rbp
je 0x140017d8c
dec dword [rbp + 0x3b4]
mov rdx, qword [0x14014a260]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1c68], rsi
call fcn.140038a70
mov rbp, qword [0x14014a270]
mov rax, qword [rdi + 0x1c90]
mov byte [rdi + 0x1a77], sil
test rax, rax
je 0x140017e24
cmp byte [rax + 0x87], sil
jne 0x140017e24
mov eax, dword [rbp + 0x1a98]
sub eax, 1
js 0x140017e1d
movsxd r9, eax
mov rax, qword [rbp + 0x1aa0]
lea r10, [rax + r9*8]
mov r8, qword [r10]
test r8, r8
je 0x140017e13
cmp byte [r8 + 0x87], sil
je 0x140017e13
mov eax, dword [r8 + 0xc]
and eax, 0x40200
cmp eax, 0x40200
setne cl
bt dword [r8 + 0xc], 0x18
setae al
test al, cl
jne 0x14001804a
sub r10, 8
sub r9, 1
jns 0x140017de0
xor ecx, ecx
call fcn.14001e8a0
mov ecx, dword [rdi + 0x1abc]
mov rbp, qword [rsp + 0xa8]
test ecx, ecx
jns 0x140017e52
mov eax, ecx
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, ecx
lea rcx, [rdi + 0x1ab8]
test eax, eax
cmovg edx, eax
call fcn.140026860
mov dword [rdi + 0x1ab8], esi
mov ecx, dword [rdi + 0x1c84]
test ecx, ecx
jns 0x140017e7e
mov eax, ecx
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, ecx
lea rcx, [rdi + 0x1c80]
test eax, eax
cmovg edx, eax
call fcn.140026db0
lea rbx, [rdi + 0x1c50]
mov dword [rdi + 0x1c80], esi
mov ecx, dword [rbx + 4]
test ecx, ecx
jns 0x140017ead
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.140026e50
mov ecx, dword [rbx + 4]
mov dword [rbx], esi
mov eax, esi
test ecx, ecx
jne 0x140017ec2
lea edx, [rcx + 8]
mov rcx, rbx
call fcn.140026e50
mov eax, dword [rbx]
movsxd rcx, eax
xor edx, edx
mov rax, qword [rbx + 8]
mov dword [rax + rcx*4], esi
lea rcx, [rdi + 0x1c60]
inc dword [rbx]
call fcn.140026560
mov rcx, qword [rdi + 0x1c90]
xor edx, edx
call fcn.1400206e0
mov r8, qword [0x14014a270]
mov dword [r8 + 0x3170], esi
cmp byte [r8 + 0x316c], sil
je 0x140017fbb
mov ebx, dword [r8 + 0x1b20]
mov dword [r8 + 0x2000], 7
mov ecx, dword [r8 + 0x74]
test ecx, ecx
js 0x140017f2f
call fcn.1400197b0
test al, al
je 0x140017f2f
mov byte [r8 + 0x316c], sil
movss xmm0, dword [r8 + 0x43c]
ucomiss xmm0, xmm6
jp 0x140017f51
jne 0x140017f51
test ebx, ebx
je 0x140017f51
mov dword [r8 + 0x3170], ebx
mov byte [r8 + 0x316c], sil
or dword [r8 + 0x1b88], 0x40
xor edx, edx
mov dword [r8 + 0x1be8], 0x3f19999a
call fcn.140020270
mov edx, ebx
lea rcx, str.HoveredId:_0x_08X
call fcn.140039d40
lea rcx, str.Press_ESC_to_abort_picking.
call fcn.140039d40
mov eax, reloc.WS2_32.dll_recv
lea rdx, str.Click_to_break_in_debugger_
test ebx, ebx
mov rcx, rsi
cmove rcx, rax
mov rax, qword [0x14014a270]
add rax, 0x1624
add rcx, rax
call fcn.140039dd0
call fcn.14001e800
mov r8, qword [0x14014a270]
mov byte [rdi + 0x1a75], 1
lea rcx, str.DebugDefault
or dword [r8 + 0x1b88], 2
xor edx, edx
mov dword [r8 + 0x1ba8], 0x43c80000
mov dword [r8 + 0x1bac], 0x43c80000
mov dword [r8 + 0x1b90], 4
xor r8d, r8d
call fcn.14001c540
movaps xmm6, xmmword [rsp + 0x60]
cmp dword [rdi + 0x3128], esi
jle 0x14001803f
mov rbx, rsi
nop dword [rax]
mov r8, qword [rdi + 0x3130]
cmp dword [r8 + rbx], 1
jne 0x140018031
movsxd rax, esi
lea rcx, [rax + rax*2]
lea rdx, [r8 + rcx*8]
mov rcx, rdi
call qword [rreloc.WS2_32.dll_htonl + rbx + 8]
inc esi
add rbx, 0x18
cmp esi, dword [rdi + 0x3128]
jl 0x140018010
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
mov rcx, qword [r8 + 0x398]
test rcx, rcx
je 0x140018063
cmp byte [rcx + 0x87], sil
jne 0x140017e1f
mov rcx, r8
jmp 0x140017e1f