Function at 0x42f330
Capabilities:
Check for time delay via queryperformancecounter
Get socket status
Receive data
Receive data on socket
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x1170
call fcn.004ab980
mov eax, dword [0x4e2204]
xor eax, esp
mov dword [esp + 0x1168], eax
push ebx
push ebp
push esi
lea esi, [esp + 0x10]
call fcn.0044a610
lea esi, [esp + 0x20]
call fcn.0044a610
xor ebx, ebx
cmp byte [edi + 4], bl
jne 0x42f59b
mov eax, dword [edi + 0x28]
lea ecx, [esp + 0x40]
push ecx
push ebx
push ebx
lea edx, [esp + 0x74]
mov dword [esp + 0x78], eax
mov eax, 1
push edx
push eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ebx
call dword [sym.imp.WSOCK32.dll_select]
test eax, eax
je 0x42f3e2
push 0xfff
lea eax, [esp + 0x175]
push ebx
push eax
mov byte [esp + 0x17c], bl
call fcn.004a16b0
mov edx, dword [edi + 0x28]
add esp, 0xc
push ebx
push 0xfff
lea ecx, [esp + 0x178]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
je 0x42f59b
push edi
lea ecx, [esp + 0x174]
call fcn.0042f120
lea esi, [esp + 0x10]
call fcn.0044a720
fld qword [0x4d33f8]
fxch st(1)
fcompi st(1)
fstp st(0)
jbe 0x42f498
mov esi, edi
call fcn.0042e770
mov eax, dword [0x566ad8]
or eax, dword [0x566adc]
jne 0x42f46b
call dword [sym.imp.WINMM.dll_timeGetTime]
lea ecx, [esp + 0x48]
push ecx
mov dword [0x566ad8], eax
mov dword [0x566adc], ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
movsd xmm0, qword [0x4d3448]
lea ecx, [esp + 0x58]
push ecx
mov dword [0x566ae0], edx
mov dword [0x566ae4], eax
movsd qword [0x566ae8], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
fild qword [esp + 0x58]
fdivr qword [0x4bab50]
fstp qword [0x566af0]
cmp byte [esp + 0x18], bl
je 0x42f48a
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], ecx
jmp 0x42f494
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
lea esi, [esp + 0x20]
call fcn.0044a720
fld qword [0x4c3fb8]
fxch st(1)
fcompi st(1)
fstp st(0)
jbe 0x42f592
cmp byte [edi + 0x40], bl
je 0x42f592
xor esi, esi
test dword [edi + 0x4c], 0xfffffffe
jbe 0x42f4f6
xor ebp, ebp
lea esp, [esp]
mov edx, dword [edi + 0x48]
fld qword [edi + 0x30]
movsd xmm0, qword [edi + 0x38]
sub esp, 8
add edx, ebp
fstp qword [esp]
push edx
call fcn.0042ea30
mov eax, dword [edi + 0x4c]
inc esi
shr eax, 1
add ebp, 0x38
cmp esi, eax
jb 0x42f4d0
mov ecx, dword [0x566ad8]
or ecx, dword [0x566adc]
mov byte [edi + 0x40], bl
jne 0x42f561
call dword [sym.imp.WINMM.dll_timeGetTime]
lea edx, [esp + 0x30]
push edx
mov dword [0x566ad8], eax
mov dword [0x566adc], ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
movsd xmm0, qword [0x4d3448]
lea edx, [esp + 0x60]
push edx
mov dword [0x566ae0], eax
mov dword [0x566ae4], ecx
movsd qword [0x566ae8], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
fild qword [esp + 0x60]
fdivr qword [0x4bab50]
fstp qword [0x566af0]
cmp byte [esp + 0x28], bl
je 0x42f584
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
jmp 0x42f592
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
cmp byte [edi + 4], bl
je 0x42f368
mov ecx, dword [esp + 0x1174]
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0049ca20
add esp, 0x1170
ret