Function at 0x4d7d60
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov dword [ebp - 0x128], ecx
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
cmp dword [ebp + 0x10], 0
je 0x4d7daf
push 0x78
push 0
mov ecx, dword [ebp + 0x10]
call fcn.0045e410
mov ecx, dword [ebp + 0x10]
call fcn.0045e060
movzx ecx, al
test ecx, ecx
je 0x4d7daf
push str.Wait_for_data_aborted_by_app
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x18]
mov edx, dword [eax + 0x14]
call edx
xor al, al
jmp 0x4d7f97
mov eax, dword [ebp - 0x128]
cmp dword [eax + 0xa4], 0xffffffff
jne 0x4d7ddd
push str.Wait_for_data_passed_invalid_socket.
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp + 0x14]
mov byte [ecx], 1
xor al, al
jmp 0x4d7f97
movzx edx, byte [ebp + 0xc]
test edx, edx
jne 0x4d7df2
cmp dword [ebp + 8], 0
jne 0x4d7df2
mov dword [ebp + 8], 0x14
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x3e8
mov eax, dword [ebp + 8]
sub eax, edx
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0x7a120
jbe 0x4d7e22
mov dword [ebp + 8], 0x7a120
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x3e8
mov dword [ebp - 0xc], ecx
movzx edx, byte [ebp + 0xc]
test edx, edx
jne 0x4d7e49
cmp dword [ebp - 0x10], 0
jne 0x4d7e49
cmp dword [ebp - 0xc], 0
jne 0x4d7e49
mov dword [ebp - 0xc], 0x3e8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x124], 0
jmp 0x4d7e80
mov edx, dword [ebp - 0x124]
add edx, 1
mov dword [ebp - 0x124], edx
mov eax, dword [ebp - 0x124]
cmp eax, dword [ebp - 0x118]
jae 0x4d7ead
mov ecx, dword [ebp - 0x124]
mov edx, dword [ebp - 0x128]
mov eax, dword [ebp + ecx*4 - 0x114]
cmp eax, dword [edx + 0xa4]
jne 0x4d7eab
jmp 0x4d7ead
jmp 0x4d7e71
mov ecx, dword [ebp - 0x124]
cmp ecx, dword [ebp - 0x118]
jne 0x4d7eec
cmp dword [ebp - 0x118], 0x40
jae 0x4d7eec
mov edx, dword [ebp - 0x124]
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 0xa4]
mov dword [ebp + edx*4 - 0x114], ecx
mov edx, dword [ebp - 0x118]
add edx, 1
mov dword [ebp - 0x118], edx
xor eax, eax
jne 0x4d7e65
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x120]
push ecx
push 0
push 0
lea edx, [ebp - 0x118]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4d7f26
cmp dword [ebp - 4], 0
jge 0x4d7f89
mov ecx, dword [ebp + 0x14]
mov byte [ecx], 1
push 0x63ec70
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x18]
mov edx, dword [eax + 0x14]
call edx
push 2
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 0xa4]
push ecx
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [ebp - 0x128]
mov eax, dword [edx + 0xa4]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x128]
mov dword [ecx + 0xa4], 0xffffffff
mov edx, dword [ebp - 0x128]
mov byte [edx + 0xa0], 0
xor al, al
jmp 0x4d7f97
cmp dword [ebp - 4], 0
jne 0x4d7f95
xor al, al
jmp 0x4d7f97
mov al, 1
mov esp, ebp
pop ebp
ret 0x18