Function at 0x1004d340
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101db340
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x10284f40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x444], ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x440], eax
lea eax, [ebx + 0x18]
push eax
mov dword [ebp - 0x454], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x450], 1
mov dword [ebp - 4], 0
cmp byte [ebx + 0xd0], 0
jne 0x1004d92f
mov eax, dword [ebx + 0xa8]
lea ecx, [ebx + 0xc0]
mov dword [ebp - 0x44c], ecx
mov dword [eax], 0
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0xb0], 0xffffffff
mov dword [eax], 0
mov dword [ebx + 0xbc], 0xffffffff
mov eax, dword [ecx]
mov dword [eax], 0
mov dword [ecx + 8], 0xffffffff
xor ecx, ecx
mov esi, dword [ebx + 0xa8]
mov edi, dword [ebx + 0x30]
mov edx, dword [esi]
test edx, edx
je 0x1004d415
lea eax, [esi + 4]
cmp dword [eax], edi
je 0x1004d4a2
inc ecx
add eax, 4
cmp ecx, edx
jb 0x1004d405
lea ecx, [edx + 1]
mov edx, dword [ebx + 0xac]
cmp ecx, edx
jbe 0x1004d494
mov eax, edx
shr eax, 1
add eax, edx
cmp eax, ecx
cmovae ecx, eax
mov dword [ebp - 0x414], ecx
lea eax, [ecx*4 + 4]
push eax
call fcn.100e430a
mov ecx, dword [ebx + 0xa8]
mov esi, eax
add esp, 4
mov ecx, dword [ecx]
mov dword [esi], ecx
xor ecx, ecx
mov eax, dword [ebx + 0xa8]
cmp dword [eax], ecx
jbe 0x1004d479
nop dword [eax + eax]
mov eax, dword [ebx + 0xa8]
mov eax, dword [eax + ecx*4 + 4]
mov dword [esi + ecx*4 + 4], eax
inc ecx
mov eax, dword [ebx + 0xa8]
cmp ecx, dword [eax]
jb 0x1004d460
push eax
call fcn.100e4769
mov eax, dword [ebp - 0x414]
add esp, 4
mov dword [ebx + 0xa8], esi
mov dword [ebx + 0xac], eax
mov eax, dword [esi]
mov dword [esi + eax*4 + 4], edi
mov eax, dword [ebx + 0xa8]
inc dword [eax]
mov esi, dword [ebx + 0xcc]
xor edi, edi
test esi, esi
je 0x1004d4c4
nop
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x1004d4c4
mov esi, dword [esi + 4]
test esi, esi
jne 0x1004d4b0
lea eax, [ebx + 0x38]
mov dword [ebp - 0x414], 3
lea esi, [ebx + 0xb0]
mov ebx, eax
nop dword [eax]
push ecx
push ebx
lea ecx, [esi - 8]
call fcn.1004bd70
cmp dword [esi], edi
cmova edi, dword [esi]
add ebx, 0x1c
sub dword [ebp - 0x414], 1
lea esi, [esi + 0xc]
jne 0x1004d4e0
mov ebx, dword [ebp - 0x444]
push ecx
lea esi, [ebx + 0x8c]
push esi
lea ecx, [ebx + 0xb4]
call fcn.1004bd70
mov eax, dword [ebx + 0xbc]
cmp eax, edi
push ecx
push esi
lea ecx, [ebx + 0xc0]
cmova edi, eax
call fcn.1004bd70
mov eax, dword [ebx + 0xc8]
mov ecx, 1
mov esi, dword [ebx + 0xcc]
cmp eax, edi
cmovbe eax, edi
mov dword [ebp - 0x414], eax
test esi, esi
je 0x1004d561
nop
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0xc]
mov esi, dword [esi + 4]
mov ecx, eax
test esi, esi
jne 0x1004d550
mov eax, 0x431bde83
imul ecx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x420], eax
imul eax, eax, 0xf4240
sub ecx, eax
lea eax, [ebx + 0x18]
push eax
mov dword [ebp - 0x41c], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [ebx + 0xa8]
xorps xmm0, xmm0
mov ecx, dword [ebx + 0xc0]
mov edx, dword [ebx + 0xb4]
mov dword [ebp - 0x424], 0
movq qword [ebp - 0x42c], xmm0
mov dword [ebp - 0x424], 0x1026c678
test edi, edi
jne 0x1004d602
test edx, edx
jne 0x1004d602
test ecx, ecx
jne 0x1004d602
mov eax, 0x10624dd3
imul dword [ebp - 0x41c]
imul eax, dword [ebp - 0x420], 0x3e8
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, eax
mov eax, 1
cmove ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1004d8a1
cmp dword [ebp - 0x420], 0
jne 0x1004d631
mov eax, dword [ebp - 0x41c]
test eax, eax
jle 0x1004d631
cmp eax, 0x3e8
mov dword [ebp - 0x418], 0x3e8
cmovl eax, dword [ebp - 0x418]
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x414]
push ecx
push edx
push edi
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edi, eax
lea ecx, [ebp - 0x42c]
test edi, edi
sets dl
call fcn.1004bf30
test edi, edi
jle 0x1004d8a1
push dword [ebx + 0xa8]
push dword [ebx + 0x30]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1004d8a1
lea eax, [ebp - 0x410]
mov dword [ebp - 0x428], 0x400
mov dword [ebp - 0x424], eax
push 0
push 0
lea eax, [ebp - 0x418]
mov dword [ebp - 0x414], 0
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], 0
push eax
push 1
lea eax, [ebp - 0x428]
push eax
push dword [ebx + 0x30]
call dword [sym.imp.WS2_32.dll_WSARecv]
mov dword [ebp - 0x448], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [ebp - 0x460], eax
setne byte [ebp - 0x45c]
movq xmm0, qword [ebp - 0x460]
movq qword [ebp - 0x438], xmm0
cmp eax, 0x40
jne 0x1004d71b
mov dword [ebp - 0x46c], 0x2746
mov byte [ebp - 0x468], 1
movq xmm0, qword [ebp - 0x46c]
movq qword [ebp - 0x438], xmm0
jmp 0x1004d753
cmp eax, 0x4d2
jne 0x1004d745
mov dword [ebp - 0x478], 0x274d
mov byte [ebp - 0x474], 1
movq xmm0, qword [ebp - 0x478]
movq qword [ebp - 0x438], xmm0
jmp 0x1004d753
cmp eax, 0x2738
je 0x1004d760
cmp eax, 0xea
je 0x1004d760
cmp dword [ebp - 0x448], 0
jne 0x1004d895
mov ecx, dword [0x1026c680]
xor edx, edx
mov eax, dword [0x1026c684]
cmp ecx, 0x25c5e09b
jne 0x1004d77c
cmp eax, 0x8fafd21e
je 0x1004d79c
cmp ecx, 0x257edf0d
jne 0x1004d78b
cmp eax, 0xb2ab117a
je 0x1004d79c
mov eax, dword [0x1026c678]
mov ecx, 0x1026c678
push 0
call dword [eax + 0x18]
xor edx, edx
mov eax, dword [ebp - 0x414]
cmp eax, 0x400
je 0x1004d690
test eax, eax
jg 0x1004d8a0
je 0x1004d7ff
cmp edx, 0x2733
jne 0x1004d7db
cmp dword [0x1026c680], 0x25c5e09b
jne 0x1004d7db
cmp dword [0x1026c684], 0x8fafd21e
je 0x1004d8a0
cmp edx, 0x4d5
jne 0x1004d7ff
cmp dword [0x1026c680], 0x25c5e09b
jne 0x1004d7ff
cmp dword [0x1026c684], 0x8fafd21e
je 0x1004d8a0
lea eax, [ebx + 0x18]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call eax
mov ecx, dword [ebx + 0x30]
lea eax, [ebx + 0x30]
mov dword [ebp - 0x424], 0
xorps xmm0, xmm0
mov byte [ebp - 0x450], 1
movq qword [ebp - 0x42c], xmm0
mov dword [ebp - 0x424], 0x1026c678
mov byte [ebp - 0x439], 2
cmp ecx, 0xffffffff
je 0x1004d85c
lea eax, [ebp - 0x42c]
push eax
push 1
lea edx, [ebp - 0x439]
call fcn.1004bfc0
add esp, 8
lea eax, [ebx + 0x30]
mov ecx, dword [eax + 4]
cmp ecx, 0xffffffff
je 0x1004d87e
lea eax, [ebp - 0x42c]
push eax
push 1
lea edx, [ebp - 0x439]
call fcn.1004bfc0
add esp, 8
lea eax, [ebx + 0x30]
mov ecx, eax
mov dword [eax + 4], 0xffffffff
mov dword [eax], 0xffffffff
call fcn.1004c970
dec edi
jmp 0x1004d8b3
mov edx, dword [ebp - 0x438]
jmp 0x1004d7b7
dec edi
lea eax, [ebx + 0x18]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call eax
mov byte [ebp - 0x450], 1
test edi, edi
jle 0x1004d910
mov edi, dword [ebp - 0x440]
lea eax, [ebx + 0x8c]
push edi
push eax
lea ecx, [ebx + 0xc0]
call fcn.1004be30
push edi
lea eax, [ebx + 0x8c]
push eax
lea ecx, [ebx + 0xb4]
call fcn.1004be30
lea edi, [ebx + 0x70]
mov esi, 2
mov ebx, dword [ebp - 0x44c]
push dword [ebp - 0x440]
mov ecx, ebx
push edi
call fcn.1004be30
sub edi, 0x1c
sub ebx, 0xc
sub esi, 1
jns 0x1004d8f1
mov ebx, dword [ebp - 0x444]
mov esi, dword [ebx + 0xcc]
test esi, esi
je 0x1004d92f
mov edi, dword [ebp - 0x440]
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0x10]
mov esi, dword [esi + 4]
test esi, esi
jne 0x1004d920
lea eax, [ebx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100e40d6
mov esp, ebp
pop ebp
ret 8