Function at 0x100054d0
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
xor eax, eax
xor eax, eax
xor eax, eax
je 0x100054f4
sub al, 0x2d
pop eax
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
mov edx, 1
test edx, edx
je 0x100057f6
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x124], 0
jmp 0x100055b9
mov eax, dword [ebp - 0x124]
add eax, 1
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
cmp ecx, dword [ebp - 0x104]
jae 0x100055e3
mov edx, dword [ebp - 0x124]
mov eax, dword [ebp - 0x144]
mov ecx, dword [ebp + edx*4 - 0x100]
cmp ecx, dword [eax + 4]
jne 0x100055e1
jmp 0x100055e3
jmp 0x100055aa
mov edx, dword [ebp - 0x124]
cmp edx, dword [ebp - 0x104]
jne 0x1000561f
cmp dword [ebp - 0x104], 0x40
jae 0x1000561f
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 0x1000559e
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 0x10005674
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 0x10005816
cmp dword [ebp - 0x11c], 0
je 0x100056eb
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 0x100056c6
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 0x10005816
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 0x10005816
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 0x10005737
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 0x10005816
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 0x100057b6
mov ecx, dword [ebp - 0x108]
add ecx, dword [ebp - 0x120]
movsx edx, byte [ecx]
cmp edx, 0xa
jne 0x100057b6
mov eax, dword [ebp - 0x108]
add eax, dword [ebp - 0x120]
movsx ecx, byte [eax - 1]
cmp ecx, 0xd
jne 0x100057b6
mov edx, dword [ebp - 0x108]
add edx, dword [ebp - 0x120]
movsx eax, byte [edx - 2]
cmp eax, 0xa
jne 0x100057b6
mov ecx, dword [ebp - 0x108]
add ecx, dword [ebp - 0x120]
movsx edx, byte [ecx - 3]
cmp edx, 0xd
jne 0x100057b6
mov dword [ebp - 0x11c], 1
jmp 0x10005587
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x120]
add ecx, 1
mov dword [ebp - 0x120], ecx
cmp eax, 0x1ffe
jle 0x100057f1
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 0x10005816
jmp 0x10005587
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