Function at 0x14007a530
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
sub rsp, 0x90
mov rsi, qword [0x1412d40b8]
mov qword [rax + 0x10], rbp
mov rbx, rsi
mov qword [rax - 0x20], r14
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
mov eax, dword [rsi + 0x30a8]
lea ebp, [rax - 1]
test ebp, ebp
js 0x14007a5d9
movsxd rdi, ebp
shl rdi, 5
mov r14, rdi
nop dword [rax]
mov rdx, qword [rsi + 0x30b0]
cmp dword [rdx + rdi + 4], 7
jne 0x14007a5c6
movsxd r8, dword [rsi + 0x30a8]
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 [rsi + 0x30a8]
mov eax, dword [rsi + 0x30a8]
sub r14, 0x20
sub rdi, 0x20
sub ebp, 1
jns 0x14007a580
xor edi, edi
mov ebp, edi
test eax, eax
jle 0x14007a616
mov esi, edi
mov rax, qword [rbx + 0x30b0]
cmp dword [rax + rsi + 4], edi
jne 0x14007a601
movsxd rdx, ebp
mov rcx, rbx
shl rdx, 5
add rdx, rax
call qword [rax + rsi + reloc.WS2_32.dll_recv]
inc ebp
add rsi, 0x20
cmp ebp, dword [rbx + 0x30a8]
jl 0x14007a5e3
mov rsi, qword [0x1412d40b8]
cmp byte [rsi + 0xcc], dil
je 0x14007a62c
test byte [rsi + 0xc], 2
jne 0x14007a62c
mov byte [rsi + 0xcc], dil
mov rbp, rsi
cmp byte [rsi + 0x3061], dil
jne 0x14007a69d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14007a696
lea r8, [rsp + 0xb0]
mov qword [rsp + 0xb0], rdi
call fcn.140076830
mov rsi, rax
test rax, rax
je 0x14007a68f
mov rdx, qword [rsp + 0xb0]
mov rcx, rax
call fcn.140088a10
mov rcx, qword [0x1412d40b8]
test rcx, rcx
je 0x14007a680
dec dword [rcx + 0x3b4]
mov rdx, qword [0x1412d40c0]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rsi, qword [0x1412d40b8]
mov byte [rbp + 0x3061], 1
movss xmm0, dword [rbp + 0x3064]
xorps xmm6, xmm6
comiss xmm0, xmm6
mov qword [rsp + 0x80], r15
jbe 0x14007a741
subss xmm0, dword [rbp + 0x18]
comiss xmm6, xmm0
movss dword [rbp + 0x3064], xmm0
jb 0x14007a741
mov r14, qword [rbp + 0x20]
test r14, r14
je 0x14007a734
lea rcx, [rsp + 0xb0]
mov dword [rsi + 0x3064], edi
mov qword [rsp + 0xb0], rdi
call fcn.140088d70
lea rdx, [0x140cc9db4]
mov rcx, r14
mov r15, rax
call fcn.140076700
mov rsi, rax
test rax, rax
je 0x14007a72b
mov r8, qword [rsp + 0xb0]
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, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rsi, qword [0x1412d40b8]
jmp 0x14007a73b
mov byte [rbp + 0x39c], 1
mov dword [rbp + 0x3064], edi
inc dword [rbx + 0x1b90]
movss xmm1, dword [rbx + 0x18]
cvtps2pd xmm0, xmm1
mov byte [rbx + 0x1b9c], 1
mov dword [rbx + 0x3028], edi
mov dword [rbx + 0x1c00], edi
addsd xmm0, qword [rbx + 0x1b88]
movsd qword [rbx + 0x1b88], xmm0
mov ecx, dword [rbx + 0x3044]
test ecx, ecx
jns 0x14007a7a4
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.14008a550
movss xmm1, dword [rbx + 0x18]
mov rsi, qword [0x1412d40b8]
movss xmm10, dword [0x140cccf4c]
movaps xmm0, xmm1
movss xmm9, dword [0x140ccccc0]
mov dword [rbx + 0x3040], edi
movsxd rax, dword [rbx + 0x32fc]
subss xmm0, dword [rbx + rax*4 + 0x311c]
addss xmm0, dword [rbx + 0x3300]
movss dword [rbx + 0x3300], xmm0
movss dword [rbx + rax*4 + 0x311c], xmm1
mov eax, 0x88888889
mov ecx, dword [rbx + 0x32fc]
movss xmm1, dword [rbx + 0x3300]
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 [rbx + 0x32fc], ecx
jbe 0x14007a82d
divss xmm1, dword [0x140ccce40]
movaps xmm0, xmm9
divss xmm0, xmm1
jmp 0x14007a831
movaps xmm0, xmm10
movss dword [rbx + 0x3a0], xmm0
mov r8d, edi
mov rax, qword [rsi + 0x1df8]
mov rcx, qword [rax]
mov qword [rcx], 5
mov dword [rcx + 8], edi
movsd xmm0, qword [rsi + 0x10]
movsd qword [rcx + 0xc], xmm0
cmp dword [rsi + 0x1df0], edi
jle 0x14007a91f
mov rdx, rdi
nop dword [rax]
mov rax, qword [rsi + 0x1df8]
inc r8d
mov rcx, qword [rdx + rax]
add rdx, 8
movsd xmm2, qword [rcx + 0xa0]
movsd xmm3, qword [rcx + 0xa8]
movss xmm1, dword [rcx + 4]
addss xmm1, xmm2
movsd qword [rcx + 0x90], xmm2
mov qword [rcx + 0xa8], rdi
movsd xmm0, qword [rcx + 0xa8]
movsd qword [rcx + 0xa0], xmm0
movaps xmm0, xmm2
shufps xmm0, xmm0, 0x55
addss xmm0, dword [rcx + 8]
movss dword [rcx + 0x14], xmm1
movaps xmm1, xmm6
movsd qword [rcx + 0x98], xmm3
movss dword [rcx + 0x18], xmm0
movss xmm0, dword [rcx + 0xc]
subss xmm0, xmm2
movaps xmm2, xmm6
addss xmm0, xmm3
maxss xmm2, xmm0
movss xmm0, dword [rcx + 0x10]
subss xmm0, dword [rcx + 0x94]
addss xmm0, dword [rcx + 0x9c]
movss dword [rcx + 0x1c], xmm2
maxss xmm1, xmm0
movss dword [rcx + 0x20], xmm1
cmp r8d, dword [rsi + 0x1df0]
jl 0x14007a870
mov rax, qword [rbx + 0xa8]
mov byte [rax + 0x18], 1
mov rcx, qword [rsi + 0xb8]
test rcx, rcx
jne 0x14007a944
mov rax, qword [rsi + 0xa8]
mov rcx, qword [rax + 0x50]
mov rcx, qword [rcx]
call fcn.1400820b0
mov eax, dword [rbx + 0x1df0]
movaps xmm0, xmm10
movss xmm5, dword [0x140cccfc0]
movaps xmm8, xmm10
movaps xmm7, xmm5
test eax, eax
jle 0x14007a9b9
mov rcx, qword [rbx + 0x1df8]
mov edx, eax
nop
mov rax, qword [rcx]
movss xmm4, dword [rax + 4]
comiss xmm0, xmm4
movss xmm3, dword [rax + 8]
movaps xmm1, xmm4
addss xmm1, dword [rax + 0xc]
movaps xmm2, xmm3
addss xmm2, dword [rax + 0x10]
jbe 0x14007a995
movaps xmm0, xmm4
comiss xmm8, xmm3
jbe 0x14007a99f
movaps xmm8, xmm3
comiss xmm1, xmm5
jbe 0x14007a9a7
movaps xmm5, xmm1
comiss xmm2, xmm7
jbe 0x14007a9af
movaps xmm7, xmm2
add rcx, 8
sub rdx, 1
jne 0x14007a970
mov eax, dword [rbx + 0x161c]
movss xmm1, dword [rbx + 0x1620]
shufps xmm0, xmm0, 0xe1
movss xmm0, xmm8
mov dword [rbx + 0x199c], eax
movaps xmm8, xmmword [rsp + 0x50]
shufps xmm0, xmm0, 0xc6
movss xmm0, xmm5
shufps xmm0, xmm0, 0x27
movss xmm0, xmm7
shufps xmm0, xmm0, 0x39
movups xmmword [rbx + 0x19a4], xmm0
movss xmm0, dword [rbx + 0x19a0]
ucomiss xmm0, xmm1
jp 0x14007aa0a
je 0x14007aac1
movss xmm7, dword [0x140cccd48]
lea r14, [rbx + 0x1b3c]
movss dword [rbx + 0x19a0], xmm1
mov ebp, edi
mov r15d, 0x200
nop dword [rax]
movd xmm0, ebp
cvtdq2ps xmm0, xmm0
test ebp, ebp
je 0x14007aa89
movss xmm1, dword [rbx + 0x19a0]
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, xmm7
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 0x14007aa80
mov eax, 4
jmp 0x14007aa8b
cmp eax, r15d
cmovg eax, r15d
jmp 0x14007aa8b
mov eax, edi
mov byte [r14], al
inc ebp
inc r14
cmp ebp, 0x40
jl 0x14007aa30
movss xmm0, dword [0x140cccc44]
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
movss xmm1, dword [rbx + 0x19a0]
movaps xmm2, xmm9
subss xmm2, xmm0
divss xmm1, xmm2
movss dword [rbx + 0x1b38], xmm1
mov r8d, edi
movaps xmm7, xmmword [rsp + 0x60]
mov dword [rbx + 0x19b4], edi
cmp byte [rbx + 0x1618], dil
je 0x14007aae8
mov dword [rbx + 0x19b4], 1
mov r8d, 1
mov edx, r8d
cmp byte [rbx + 0x1619], dil
je 0x14007ab0d
mov rax, qword [rbx + 0x1978]
mov rcx, qword [rax + 0x40]
test byte [rcx], 4
jne 0x14007ab0d
or edx, 2
mov dword [rbx + 0x19b4], edx
cmp byte [rbx + 0x161a], dil
je 0x14007ab1f
or edx, 4
mov dword [rbx + 0x19b4], edx
test byte [rbx + 0xc], 8
je 0x14007ab2e
or edx, 8
mov dword [rbx + 0x19b4], edx
mov r8d, edi
cmp dword [rbx + 0x1df0], edi
jle 0x14007ab6b
mov rdx, rdi
nop dword [rax]
mov rax, qword [rbx + 0x1df8]
lea rdx, [rdx + 8]
xorps xmm0, xmm0
inc r8d
mov rcx, qword [rdx + rax - 8]
movups xmmword [rcx + 0x40], xmm0
movups xmmword [rcx + 0x50], xmm0
movups xmmword [rcx + 0x60], xmm0
cmp r8d, dword [rbx + 0x1df0]
jl 0x14007ab40
cmp byte [rbx + 0x1f84], dil
je 0x14007ab9f
mov eax, dword [rbx + 0x1fa4]
cmp eax, dword [rbx + 0x1c94]
jne 0x14007ab9f
cmp dword [rsi + 0x1c94], eax
jne 0x14007ab90
mov dword [rsi + 0x1c98], eax
cmp dword [rsi + 0x1cd0], eax
jne 0x14007ab9f
mov byte [rsi + 0x1cd4], 1
mov eax, dword [rbx + 0x1c80]
cmp dword [rbx + 0x1c84], edi
jne 0x14007abb5
mov dword [rbx + 0x1c8c], edi
jmp 0x14007abc3
mov edx, eax
test eax, eax
je 0x14007abcb
cmp dword [rbx + 0x1c94], eax
jne 0x14007abcb
mov dword [rbx + 0x1c90], edi
mov edx, eax
movss xmm2, dword [rbx + 0x18]
mov ecx, dword [rbx + 0x1c94]
test edx, edx
je 0x14007ac04
movaps xmm0, xmm2
addss xmm0, dword [rbx + 0x1c8c]
movss dword [rbx + 0x1c8c], xmm0
cmp ecx, edx
je 0x14007ac04
movaps xmm0, xmm2
addss xmm0, dword [rbx + 0x1c90]
movss dword [rbx + 0x1c90], xmm0
movaps xmm1, xmm2
movzx eax, byte [rbx + 0x1c89]
mov ebp, 0xffffffff
mov dword [rbx + 0x1c84], edx
mov edx, ecx
mov byte [rbx + 0x1c8a], al
mov dword [rbx + 0x1c80], edi
mov word [rbx + 0x1c88], di
mov byte [rbx + 0x1c8b], dil
cmp dword [rbx + 0x1c98], ecx
je 0x14007aca5
cmp dword [rbx + 0x1cd0], ecx
jne 0x14007aca5
test ecx, ecx
je 0x14007aca5
mov ecx, dword [rsi + 0x1c94]
test ecx, ecx
setne al
mov byte [rsi + 0x1ca0], al
test ecx, ecx
je 0x14007ac71
mov dword [rsi + 0x1c9c], edi
mov word [rsi + 0x1ca3], di
mov dword [rsi + 0x1ccc], ebp
mov dword [rsi + 0x1c94], edi
mov word [rsi + 0x1ca1], di
mov qword [rsi + 0x1cc0], rdi
mov word [rsi + 0x1ca5], di
mov qword [rsi + 0x1ca8], rdi
mov qword [rsi + 0x1cb0], rdi
mov edx, dword [rbx + 0x1c94]
movss xmm1, dword [rbx + 0x18]
test edx, edx
je 0x14007acbc
movaps xmm0, xmm1
addss xmm0, dword [rbx + 0x1c9c]
movss dword [rbx + 0x1c9c], xmm0
mov rax, qword [rbx + 0x1cc0]
addss xmm1, dword [rbx + 0x1ce4]
mov qword [rbx + 0x1cd8], rax
movzx eax, byte [rbx + 0x1ca4]
mov byte [rbx + 0x1cd5], al
mov eax, dword [rbx + 0x2fe8]
movss dword [rbx + 0x1ce4], xmm1
mov dword [rbx + 0x1cd0], edx
mov dword [rbx + 0x1c98], edi
mov byte [rbx + 0x1ca5], dil
mov byte [rbx + 0x1cd4], dil
mov byte [rbx + 0x1ca0], dil
test eax, eax
je 0x14007ad1c
cmp edx, eax
je 0x14007ad1c
mov dword [rbx + 0x2fe8], edi
test edx, edx
jne 0x14007ad2e
mov qword [rbx + 0x1ca8], rdi
mov qword [rbx + 0x1cb0], 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 [rsi + 0x140], dil
setne al
mov ecx, eax
or ecx, 2
cmp byte [rsi + 0x141], dil
cmove ecx, eax
mov edx, ecx
or edx, 4
cmp byte [rsi + 0x142], dil
cmove edx, ecx
lea rcx, [rbx + 0xca0]
mov eax, edx
or eax, 8
cmp byte [rsi + 0x143], dil
cmove eax, edx
lea rdx, [rbx + 0x4a0]
mov dword [rbx + 0x3c0], eax
call sub.VCRUNTIME140.dll_memcpy
movss xmm1, dword [0x140cccf78]
lea rcx, [rbx + 0x145]
lea rax, [rbx + 0x4a4]
mov edx, 0x80
cmp byte [rcx - 1], dil
je 0x14007ade1
movss xmm0, dword [rax - 4]
comiss xmm6, xmm0
jbe 0x14007adda
movaps xmm0, xmm6
jmp 0x14007ade4
addss xmm0, dword [rbx + 0x18]
jmp 0x14007ade4
movaps xmm0, xmm1
movss dword [rax - 4], xmm0
cmp byte [rcx], dil
je 0x14007ae03
movss xmm0, dword [rax]
comiss xmm6, xmm0
jbe 0x14007adfc
movaps xmm0, xmm6
jmp 0x14007ae06
addss xmm0, dword [rbx + 0x18]
jmp 0x14007ae06
movaps xmm0, xmm1
movss dword [rax], xmm0
cmp byte [rcx + 1], dil
je 0x14007ae26
movss xmm0, dword [rax + 4]
comiss xmm6, xmm0
jbe 0x14007ae1f
movaps xmm0, xmm6
jmp 0x14007ae29
addss xmm0, dword [rbx + 0x18]
jmp 0x14007ae29
movaps xmm0, xmm1
movss dword [rax + 4], xmm0
cmp byte [rcx + 2], dil
je 0x14007ae4a
movss xmm0, dword [rax + 8]
comiss xmm6, xmm0
jbe 0x14007ae43
movaps xmm0, xmm6
jmp 0x14007ae4d
addss xmm0, dword [rbx + 0x18]
jmp 0x14007ae4d
movaps xmm0, xmm1
movss dword [rax + 8], xmm0
add rcx, 4
add rax, 0x10
sub rdx, 1
jne 0x14007adc5
call fcn.140085650
call fcn.140079960
call fcn.14007a1c0
mov r9, qword [0x1412d40b8]
mov rcx, qword [r9 + 0x1c28]
test rcx, rcx
je 0x14007af7f
mov eax, dword [r9 + 0x1c94]
mov dword [r9 + 0x1c98], eax
cmp dword [r9 + 0x1cd0], eax
jne 0x14007aea9
mov byte [r9 + 0x1cd4], 1
mov r10, qword [rcx + 0x3a8]
cmp byte [r9 + 0x130], dil
je 0x14007af71
movss xmm2, dword [r9 + 0x128]
movss xmm0, dword [0x140cccfbc]
comiss xmm2, xmm0
movss xmm1, dword [r9 + 0x12c]
jb 0x14007af71
comiss xmm1, xmm0
jb 0x14007af71
subss xmm2, dword [r9 + 0x1cb8]
subss xmm1, dword [r9 + 0x1cbc]
movss xmm0, dword [r10 + 0x20]
ucomiss xmm0, xmm2
movss dword [rsp + 0xb0], xmm2
movss dword [rsp + 0xb4], xmm1
jp 0x14007af27
jne 0x14007af27
movss xmm0, dword [r10 + 0x24]
ucomiss xmm0, xmm1
jp 0x14007af27
je 0x14007af63
test dword [r10 + 0x1c], 0x100
jne 0x14007af46
comiss xmm6, dword [r9 + 0x3064]
jb 0x14007af46
mov eax, dword [r9 + 0x1c]
mov dword [r9 + 0x3064], eax
mov r8d, 1
lea rdx, [rsp + 0xb0]
mov rcx, r10
call fcn.140082390
mov rcx, qword [r9 + 0x1c28]
call fcn.140081e10
mov r9, qword [0x1412d40b8]
jmp 0x14007afbd
call fcn.1400790f0
mov qword [r9 + 0x1c28], rdi
jmp 0x14007afbd
mov rcx, qword [r9 + 0x1cc0]
test rcx, rcx
je 0x14007afbd
mov eax, dword [r9 + 0x1c94]
cmp dword [rcx + 0x64], eax
jne 0x14007afbd
mov dword [r9 + 0x1c98], eax
cmp dword [r9 + 0x1cd0], eax
jne 0x14007afaf
mov byte [r9 + 0x1cd4], 1
cmp byte [r9 + 0x130], dil
jne 0x14007afbd
call fcn.1400790f0
mov eax, dword [r9 + 0x1dd0]
sub eax, 1
js 0x14007affd
mov r8, qword [r9 + 0x1dd8]
movsxd rdx, eax
add r8, 8
lea rcx, [rdx + rdx*2]
shl rcx, 4
add r8, rcx
mov rax, qword [r8]
test rax, rax
je 0x14007aff3
test dword [rax + 0x1c], 0x8000000
jne 0x14007b013
sub r8, 0x30
sub rdx, 1
jns 0x14007afe2
cmp qword [rbx + 0x1f30], rdi
je 0x14007b02f
movss xmm0, dword [rbx + 0x1f4c]
comiss xmm0, xmm6
jbe 0x14007b02f
movss xmm1, dword [rbx + 0x18]
mulss xmm1, dword [0x140cccd88]
addss xmm1, dword [rbx + 0x1f7c]
minss xmm1, xmm9
jmp 0x14007b04c
movss xmm0, dword [rbx + 0x18]
mulss xmm0, dword [0x140cccda0]
movss xmm1, dword [rbx + 0x1f7c]
subss xmm1, xmm0
maxss xmm1, xmm6
movss dword [rbx + 0x1f7c], xmm1
mov dword [rbx + 0x1f80], edi
mov qword [rbx + 0x3308], 0xffffffffffffffff
mov dword [rbx + 0x3304], ebp
mov dword [rbx + 0x3050], 0x3f800000
mov dword [rbx + 0x3054], 0x3f800000
call fcn.140079d10
mov rbp, qword [0x1412d40b8]
movaps xmm9, xmmword [rsp + 0x40]
mov r8, qword [rbp + 0x1e00]
test r8, r8
je 0x14007b0cd
cmp byte [r8 + 0x9e], dil
je 0x14007b0cd
test dword [r8 + 0x1c], 0x40000
jne 0x14007b0cd
cmp byte [rbp + 0x140], dil
jne 0x14007b0cd
mov ecx, dword [rbp + 0x3c]
test ecx, ecx
js 0x14007b0cd
call fcn.14007cb60
test al, al
je 0x14007b0cd
mov al, 1
jmp 0x14007b0cf
xor al, al
mov byte [rbp + 0x1f78], al
cmp dword [rbp + 0x1c94], edi
jne 0x14007b132
test al, al
je 0x14007b132
mov qword [rbp + 0x1f60], r8
mov dword [rbp + 0x1f70], 0x7fffffff
cmp dword [rbp + 0x1e08], edi
je 0x14007b121
mov ecx, dword [rbp + 0x1e50]
cmp ecx, 0x7fffffff
je 0x14007b121
cmp byte [rbp + 0x141], dil
mov eax, 2
cmovne eax, edi
add eax, ecx
mov dword [rbp + 0x1f74], eax
jmp 0x14007b132
movzx eax, byte [rbp + 0x141]
neg al
sbb ecx, ecx
mov dword [rbp + 0x1f74], ecx
mov r8, qword [rbp + 0x1f60]
mov qword [rbp + 0x1f58], rdi
mov dword [rbp + 0x1f6c], 0x7fffffff
mov dword [rbp + 0x1f68], 0x7fffffff
test r8, r8
je 0x14007b1c7
mov eax, dword [rbp + 0x1f70]
mov qword [rbp + 0x1f58], r8
cmp eax, 0x7fffffff
je 0x14007b186
mov ecx, dword [r8 + 0x1d4]
cmp ecx, 0xffffffff
je 0x14007b186
inc ecx
add eax, ecx
cdq
idiv ecx
mov dword [rbp + 0x1f68], edx
mov eax, dword [rbp + 0x1f74]
cmp eax, 0x7fffffff
je 0x14007b1ac
mov ecx, dword [r8 + 0x1d8]
cmp ecx, 0xffffffff
je 0x14007b1ac
inc ecx
add eax, ecx
cdq
idiv ecx
mov dword [rbp + 0x1f6c], edx
mov qword [rbp + 0x1f60], rdi
mov dword [rbp + 0x1f74], 0x7fffffff
mov dword [rbp + 0x1f70], 0x7fffffff
mov dword [rbp + 0x1e50], 0x7fffffff
cmp byte [rbx + 0x1b9f], dil
jne 0x14007b1fa
movss xmm0, dword [rbx + 0xd0]
comiss xmm6, xmm0
ja 0x14007b1fa
movsd xmm10, qword [rbx + 0x1b88]
cvtpd2ps xmm10, xmm10
subss xmm10, xmm0
mov r14d, edi
cmp dword [rbx + 0x1bb0], edi
je 0x14007b380
mov r15, rdi
nop dword [rax]
mov rax, qword [rbx + 0x1bb8]
mov rsi, qword [r15 + rax]
movzx eax, byte [rsi + 0x9e]
mov byte [rsi + 0x9f], al
mov word [rsi + 0xaa], di
mov byte [rsi + 0x9e], dil
mov byte [rsi + 0xa0], dil
test al, al
jne 0x14007b36c
cmp byte [rsi + 0x3f8], dil
jne 0x14007b36c
comiss xmm10, dword [rsi + 0x29c]
jbe 0x14007b36c
mov rcx, qword [rsi + 0x2d0]
mov byte [rsi + 0x3f8], 1
mov eax, dword [rcx + 0x14]
mov dword [rsi + 0x3f0], eax
mov eax, dword [rcx + 0x24]
mov dword [rsi + 0x3f4], eax
mov rcx, qword [rsi + 0xe0]
test rcx, rcx
je 0x14007b2b1
mov qword [rsi + 0xd8], rdi
test rbp, rbp
je 0x14007b29e
dec dword [rbp + 0x3b4]
mov rdx, qword [0x1412d40c0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rsi + 0xe0], rdi
mov rcx, qword [rsi + 0x2d0]
call fcn.140091a00
mov rcx, qword [rsi + 0x1b0]
test rcx, rcx
je 0x14007b2f5
mov rax, qword [0x1412d40b8]
mov qword [rsi + 0x1a8], rdi
test rax, rax
je 0x14007b2e2
dec dword [rax + 0x3b4]
mov rdx, qword [0x1412d40c0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rsi + 0x1b0], rdi
mov rcx, qword [rsi + 0x1f8]
test rcx, rcx
je 0x14007b32d
mov rax, qword [0x1412d40b8]
mov qword [rsi + 0x1f0], rdi
test rax, rax
je 0x14007b31a
dec dword [rax + 0x3b4]
mov rdx, qword [0x1412d40c0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rsi + 0x1f8], rdi
mov rcx, qword [rsi + 0x208]
test rcx, rcx
je 0x14007b365
mov rax, qword [0x1412d40b8]
mov qword [rsi + 0x200], rdi
test rax, rax
je 0x14007b352
dec dword [rax + 0x3b4]
mov rdx, qword [0x1412d40c0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rsi + 0x208], rdi
mov rbp, qword [0x1412d40b8]
inc r14d
add r15, 8
cmp r14d, dword [rbx + 0x1bb0]
jne 0x14007b210
mov r14d, edi
cmp dword [rbx + 0x2068], edi
jle 0x14007b4f3
mov qword [rsp + 0xc0], r12
mov r15, rdi
mov qword [rsp + 0xc8], r13
mov r12, rdi
movabs r13, 0x6d3a06d3a06d3a07
nop
mov rax, qword [rbx + 0x2070]
movss xmm0, dword [r15 + rax]
comiss xmm0, xmm6
jb 0x14007b4c8
comiss xmm10, xmm0
jbe 0x14007b4c8
mov rsi, qword [rbx + 0x2038]
add rsi, r12
lea rcx, [rsi + 0x1e8]
call fcn.140095480
mov rcx, qword [rsi + 0x218]
test rcx, rcx
je 0x14007b41e
mov rax, qword [0x1412d40b8]
mov qword [rsi + 0x210], rdi
test rax, rax
je 0x14007b40b
dec dword [rax + 0x3b4]
mov rdx, qword [0x1412d40c0]
call sub.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 0x14007b464
mov rax, qword [0x1412d40b8]
mov qword [rsi + 0x1d8], rdi
test rax, rax
je 0x14007b451
dec dword [rax + 0x3b4]
mov rdx, qword [0x1412d40c0]
call sub.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 0x14007b495
mov rcx, rdi
mov r8d, 0xffffffff
nop dword [rax + rax]
mov rax, qword [rsi + 0x10]
lea rcx, [rcx + 0x68]
inc edx
mov word [rax + rcx - 0x18], r8w
cmp edx, dword [rsi + 0x6c]
jl 0x14007b480
sub rsi, qword [rbp + 0x2038]
mov rax, r13
imul rsi
sar rdx, 8
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, qword [rbp + 0x2070]
mov rbp, qword [0x1412d40b8]
movsxd rcx, edx
mov dword [rax + rcx*4], 0xbf800000
inc r14d
add r15, 4
add r12, 0x258
cmp r14d, dword [rbx + 0x2068]
jl 0x14007b3b0
mov r13, qword [rsp + 0xc8]
mov r12, qword [rsp + 0xc0]
movaps xmm10, xmmword [rsp + 0x30]
mov r15, qword [rsp + 0x80]
mov r14, qword [rsp + 0x88]
cmp byte [rbx + 0x1b9f], dil
je 0x14007b58a
mov rcx, qword [rbp + 0x1db8]
mov rsi, rbp
test rcx, rcx
je 0x14007b54d
mov qword [rbp + 0x1db0], rdi
test rbp, rbp
je 0x14007b533
dec dword [rbp + 0x3b4]
mov rdx, qword [0x1412d40c0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbp + 0x1db8], rdi
mov rbp, qword [0x1412d40b8]
mov rcx, qword [rsi + 0x1dc8]
test rcx, rcx
je 0x14007b57e
mov qword [rsi + 0x1dc0], rdi
test rbp, rbp
je 0x14007b56b
dec dword [rbp + 0x3b4]
mov rdx, qword [0x1412d40c0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rsi + 0x1dc8], rdi
call fcn.1400a4220
mov rbp, qword [0x1412d40b8]
mov rax, qword [rbx + 0x1e00]
mov byte [rbx + 0x1b9f], dil
test rax, rax
je 0x14007b604
cmp byte [rax + 0x9f], dil
jne 0x14007b604
mov eax, dword [rbp + 0x1bc0]
sub eax, 1
js 0x14007b5fd
movsxd r9, eax
mov rax, qword [rbp + 0x1bc8]
lea r10, [rax + r9*8]
nop
mov r8, qword [r10]
test r8, r8
je 0x14007b5f3
cmp byte [r8 + 0x9f], dil
je 0x14007b5f3
mov eax, dword [r8 + 0x1c]
and eax, 0x40200
cmp eax, 0x40200
setne cl
bt dword [r8 + 0x1c], 0x18
setae al
test al, cl
jne 0x14007b828
sub r10, 8
sub r9, 1
jns 0x14007b5c0
xor ecx, ecx
call fcn.140081e10
mov ecx, dword [rbx + 0x1be4]
mov rbp, qword [rsp + 0xb8]
test ecx, ecx
jns 0x14007b632
mov eax, ecx
cdq
sub eax, edx
mov edx, edi
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x1be0]
test eax, eax
cmovg edx, eax
call fcn.140089f60
mov dword [rbx + 0x1be0], edi
mov ecx, dword [rbx + 0x1de4]
test ecx, ecx
jns 0x14007b65e
mov eax, ecx
cdq
sub eax, edx
mov edx, edi
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x1de0]
test eax, eax
cmovg edx, eax
call fcn.14008a4b0
lea rsi, [rbx + 0x1db0]
mov dword [rbx + 0x1de0], edi
mov ecx, dword [rsi + 4]
test ecx, ecx
jns 0x14007b68d
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.14008a550
mov ecx, dword [rsi + 4]
mov dword [rsi], edi
mov eax, edi
test ecx, ecx
jne 0x14007b6a2
lea edx, [rcx + 8]
mov rcx, rsi
call fcn.14008a550
mov eax, dword [rsi]
movsxd rcx, eax
xor edx, edx
mov rax, qword [rsi + 8]
mov dword [rax + rcx*4], edi
lea rcx, [rbx + 0x1dc0]
inc dword [rsi]
call fcn.140089c60
mov rcx, qword [rbx + 0x1e00]
xor edx, edx
call fcn.140083c20
mov r8, qword [0x1412d40b8]
mov dword [r8 + 0x3108], edi
cmp byte [r8 + 0x3104], dil
je 0x14007b79b
mov esi, dword [r8 + 0x1c84]
mov dword [r8 + 0x1f80], 7
mov ecx, dword [r8 + 0x74]
test ecx, ecx
js 0x14007b70f
call fcn.14007cb60
test al, al
je 0x14007b70f
mov byte [r8 + 0x3104], dil
movss xmm0, dword [r8 + 0x43c]
ucomiss xmm0, xmm6
jp 0x14007b731
jne 0x14007b731
test esi, esi
je 0x14007b731
mov dword [r8 + 0x3108], esi
mov byte [r8 + 0x3104], dil
or dword [r8 + 0x1ce8], 0x40
xor edx, edx
mov dword [r8 + 0x1d48], 0x3f19999a
call fcn.1400837c0
mov edx, esi
lea rcx, [0x140cc9c90]
call fcn.1400a6230
lea rcx, [0x140cc9cd8]
call fcn.1400a6230
mov eax, reloc.WS2_32.dll_recv
lea rdx, [0x140cc9cb8]
test esi, esi
mov rcx, rdi
cmove rcx, rax
mov rax, qword [0x1412d40b8]
add rax, 0x1624
add rcx, rax
call fcn.1400a62c0
call fcn.140081d70
mov r8, qword [0x1412d40b8]
mov byte [rbx + 0x1b9d], 1
lea rcx, [0x140cc9ca8]
or dword [r8 + 0x1ce8], 2
xor edx, edx
mov dword [r8 + 0x1d08], 0x43c80000
mov dword [r8 + 0x1d0c], 0x43c80000
mov dword [r8 + 0x1cf0], 4
xor r8d, r8d
call fcn.14007f9a0
movaps xmm6, xmmword [rsp + 0x70]
cmp dword [rbx + 0x30a8], edi
jle 0x14007b81d
mov rsi, rdi
nop dword [rax]
mov rax, qword [rbx + 0x30b0]
cmp dword [rax + rsi + 4], 1
jne 0x14007b80f
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 + 0x30a8]
jl 0x14007b7f0
add rsp, 0x90
pop rdi
pop rsi
pop rbx
ret
mov rcx, qword [r8 + 0x3c0]
test rcx, rcx
je 0x14007b841
cmp byte [rcx + 0x9f], dil
jne 0x14007b5ff
mov rcx, r8
jmp 0x14007b5ff