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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
push edi
mov dword [ebp - 0x144], ecx
push eax
xor eax, eax
add eax, eax
xor eax, eax
xor eax, eax
je 0x10005514
inc ebx
push edi
je 0x1000556d
pop eax
mov byte [ebp - 0x118], 0
mov dword [ebp - 0x120], 0
push 0x2000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x100]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x110], 0
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x110], 0x50
mov dword [ebp - 0x10c], 0
mov ecx, 0x800
xor eax, eax
mov edi, dword [ebp - 0x108]
rep stosd dword es:[edi], eax
invalid
mov edx, 1
test edx, edx
je 0x10005816
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x124], 0
jmp 0x100055d9
mov eax, dword [ebp - 0x124]
add eax, 1
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
cmp ecx, dword [ebp - 0x104]
jae 0x10005603
mov edx, dword [ebp - 0x124]
mov eax, dword [ebp - 0x144]
mov ecx, dword [ebp + edx*4 - 0x100]
cmp ecx, dword [eax + 4]
jne 0x10005601
jmp 0x10005603
jmp 0x100055ca
mov edx, dword [ebp - 0x124]
cmp edx, dword [ebp - 0x104]
jne 0x1000563f
cmp dword [ebp - 0x104], 0x40
jae 0x1000563f
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x144]
mov edx, dword [ecx + 4]
mov dword [ebp + eax*4 - 0x100], edx
mov eax, dword [ebp - 0x104]
add eax, 1
mov dword [ebp - 0x104], eax
xor ecx, ecx
test ecx, ecx
jne 0x100055be
lea edx, [ebp - 0x110]
push edx
push 0
push 0
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp - 0x144]
mov edx, dword [ecx + 4]
add edx, 1
push edx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x10005694
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
jmp 0x10005836
cmp dword [ebp - 0x11c], 0
je 0x1000570b
push 0
push 8
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x144]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 8
je 0x100056e6
mov edx, dword [ebp - 0x108]
mov dword [ebp - 0x130], edx
mov eax, dword [ebp - 0x130]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
jmp 0x10005836
mov ecx, dword [ebp - 0x108]
mov dword [ebp - 0x134], ecx
mov edx, dword [ebp - 0x134]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 1
jmp 0x10005836
push 0
push 1
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp - 0x144]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jg 0x10005757
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x138]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
jmp 0x10005836
mov edx, dword [ebp - 0x108]
add edx, dword [ebp - 0x120]
mov al, byte [ebp - 0x118]
mov byte [edx], al
cmp dword [ebp - 0x120], 4
jl 0x100057d6
mov ecx, dword [ebp - 0x108]
add ecx, dword [ebp - 0x120]
movsx edx, byte [ecx]
cmp edx, 0xa
jne 0x100057d6
mov eax, dword [ebp - 0x108]
add eax, dword [ebp - 0x120]
movsx ecx, byte [eax - 1]
cmp ecx, 0xd
jne 0x100057d6
mov edx, dword [ebp - 0x108]
add edx, dword [ebp - 0x120]
movsx eax, byte [edx - 2]
cmp eax, 0xa
jne 0x100057d6
mov ecx, dword [ebp - 0x108]
add ecx, dword [ebp - 0x120]
movsx edx, byte [ecx - 3]
cmp edx, 0xd
jne 0x100057d6
mov dword [ebp - 0x11c], 1
jmp 0x100055a7
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x120]
add ecx, 1
mov dword [ebp - 0x120], ecx
cmp eax, 0x1ffe
jle 0x10005811
mov edx, dword [ebp - 0x108]
mov dword [ebp - 0x13c], edx
mov eax, dword [ebp - 0x13c]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
jmp 0x10005836
jmp 0x100055a7
mov ecx, dword [ebp - 0x108]
mov dword [ebp - 0x140], ecx
mov edx, dword [ebp - 0x140]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4