Function at 0x407d00
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 [0x452004]
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 0x407de1
xorps xmm0, xmm0
movups xmmword [ebp - 0x38], xmm0
movups xmmword [ebp - 0x48], xmm0
movsd xmm0, qword [0x454918]
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jp 0x407d8f
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.004427e0
movsd xmm1, qword [0x44f7c8]
divsd xmm1, xmm0
ucomisd xmm1, qword [0x44f790]
movsd qword [0x454918], xmm1
lahf
test ah, 0x44
jnp 0x407ddb
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.004427e0
mulsd xmm0, qword [0x454918]
movsd qword [ebp - 0x10], xmm0
call fcn.00442730
mov ecx, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
call fcn.00442840
movsd xmm1, qword [ebp - 0x10]
subsd xmm1, xmm0
mulsd xmm1, qword [0x44f7d8]
cvttsd2si eax, xmm1
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
test ebx, ebx
je 0x407e26
mov ebx, dword [ebp + 0x14]
jmp 0x407df3
mov esi, dword [ebp - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ecx, ecx
je 0x407e3a
push ebx
push edx
push ecx
call dword [0x452afc]
mov esi, eax
add esp, 0xc
test esi, esi
jg 0x407e73
push esi
push dword [ebp - 0x14]
call dword [0x452b04]
add esp, 8
cmp eax, 5
jne 0x407e26
cmp esi, 0xffffffff
je 0x407e71
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422702
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x407e5e
push esi
push ebx
push 1
push edx
call fcn.0042c784
push dword [ebp - 0x1c]
mov esi, eax
call fcn.00428e57
add esp, 0x14
test eax, eax
je 0x407e73
or esi, 0xffffffff
jmp 0x407e71
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 0x407e73
call edi
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0
jne 0x407e26
test esi, esi
jg 0x407fc6
je 0x407fbe
js 0x407e26
movsd xmm0, qword [ebp + 0x18]
xorps xmm1, xmm1
comisd xmm0, xmm1
jbe 0x407f3f
xorps xmm0, xmm0
movups xmmword [ebp - 0x38], xmm0
movsd xmm0, qword [0x454918]
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jp 0x407eed
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.004427e0
movsd xmm1, qword [0x44f7c8]
divsd xmm1, xmm0
ucomisd xmm1, qword [0x44f790]
movsd qword [0x454918], xmm1
lahf
test ah, 0x44
jnp 0x407f3f
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.004427e0
mulsd xmm0, qword [0x454918]
movsd qword [ebp - 0x28], xmm0
call fcn.00442730
mov esi, eax
mov edi, edx
mov ecx, esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], edi
call fcn.00442840
movsd xmm1, qword [ebp - 0x28]
subsd xmm1, xmm0
mulsd xmm1, qword [0x44f7d8]
cvttsd2si eax, xmm1
mov dword [ebp - 0x30], eax
jmp 0x407f48
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 0x407df0
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 [0x44f7a8]
movsd qword [ebp - 0x28], xmm0
call fcn.00442840
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 0x407df9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422702
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x407e26
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00422702
mov esp, ebp
pop ebp
ret