Function at 0x407e80
Capabilities:
Check for time delay via queryperformancecounter
Send data
Send data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x454004]
xor eax, ebp
mov dword [ebp - 4], eax
movsd xmm2, qword [ebp + 0x18]
xorps xmm1, xmm1
comisd xmm2, xmm1
push ebx
push esi
mov esi, edx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jbe 0x407f61
xorps xmm0, xmm0
movups xmmword [ebp - 0x38], xmm0
movups xmmword [ebp - 0x48], xmm0
movsd xmm0, qword [0x456938]
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jp 0x407f0f
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
call fcn.00443fa0
movsd xmm1, qword [0x451a20]
divsd xmm1, xmm0
ucomisd xmm1, qword [0x4519e8]
movsd qword [0x456938], xmm1
lahf
test ah, 0x44
jnp 0x407f5b
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
call fcn.00443fa0
mulsd xmm0, qword [0x456938]
movsd qword [ebp - 0x10], xmm0
call fcn.00443ef0
mov ecx, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
call fcn.00444000
movsd xmm1, qword [ebp - 0x10]
subsd xmm1, xmm0
mulsd xmm1, qword [0x451a30]
cvttsd2si eax, xmm1
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
test ebx, ebx
je 0x407fa6
mov ebx, dword [ebp + 0x14]
jmp 0x407f73
mov esi, dword [ebp - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ecx, ecx
je 0x407fba
push ebx
push edx
push ecx
call dword [0x454afc]
mov esi, eax
add esp, 0xc
test esi, esi
jg 0x407ff3
push esi
push dword [ebp - 0x14]
call dword [0x454b04]
add esp, 8
cmp eax, 5
jne 0x407fa6
cmp esi, 0xffffffff
je 0x407ff1
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00423c62
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x407fde
push esi
push ebx
push 1
push edx
call fcn.0042de34
push dword [ebp - 0x1c]
mov esi, eax
call fcn.0042a507
add esp, 0x14
test eax, eax
je 0x407ff3
or esi, 0xffffffff
jmp 0x407ff1
push 0
push ebx
push edx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test esi, esi
jns 0x407ff3
call edi
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0
jne 0x407fa6
test esi, esi
jg 0x408146
je 0x40813e
js 0x407fa6
movsd xmm0, qword [ebp + 0x18]
xorps xmm1, xmm1
comisd xmm0, xmm1
jbe 0x4080bf
xorps xmm0, xmm0
movups xmmword [ebp - 0x38], xmm0
movsd xmm0, qword [0x456938]
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jp 0x40806d
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
call fcn.00443fa0
movsd xmm1, qword [0x451a20]
divsd xmm1, xmm0
ucomisd xmm1, qword [0x4519e8]
movsd qword [0x456938], xmm1
lahf
test ah, 0x44
jnp 0x4080bf
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
call fcn.00443fa0
mulsd xmm0, qword [0x456938]
movsd qword [ebp - 0x28], xmm0
call fcn.00443ef0
mov esi, eax
mov edi, edx
mov ecx, esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], edi
call fcn.00444000
movsd xmm1, qword [ebp - 0x28]
subsd xmm1, xmm0
mulsd xmm1, qword [0x451a30]
cvttsd2si eax, xmm1
mov dword [ebp - 0x30], eax
jmp 0x4080c8
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x14]
xorps xmm0, xmm0
comisd xmm0, xmmword [ebp + 0x18]
mov edx, dword [ebp - 0x18]
jae 0x407f70
sub eax, dword [ebp - 0x40]
sub esi, dword [ebp - 0x48]
mov ecx, esi
sbb edi, dword [ebp - 0x44]
movd xmm0, eax
mov edx, edi
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x451a00]
movsd qword [ebp - 0x28], xmm0
call fcn.00444000
movsd xmm1, qword [ebp - 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
addsd xmm1, xmm0
movsd xmm0, qword [ebp + 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
comisd xmm0, xmm1
jae 0x407f79
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00423c62
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x407fa6
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423c62
mov esp, ebp
pop ebp
ret