Function at 0x4d64e0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov dword [ebp - 0x23c], ecx
mov eax, dword [ebp + 0x18]
mov byte [eax], 0
mov ecx, dword [ebp + 0x1c]
mov byte [ecx], 0
mov edx, dword [ebp + 0x14]
mov byte [edx], 0
mov eax, dword [ebp - 0x23c]
cmp dword [eax + 0xa4], 0xffffffff
jne 0x4d652f
push 0x61b7c8
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp + 0x1c]
mov byte [ecx], 1
xor al, al
jmp 0x4d6800
cmp dword [ebp + 8], 0
jne 0x4d653c
mov dword [ebp + 8], 0x1499700
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 - 0xc], eax
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x3e8
mov dword [ebp - 0x224], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x22c], edx
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x234], 0
jmp 0x4d65a5
mov ecx, dword [ebp - 0x234]
add ecx, 1
mov dword [ebp - 0x234], ecx
mov edx, dword [ebp - 0x234]
cmp edx, dword [ebp - 0x220]
jae 0x4d65d2
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x23c]
mov edx, dword [ebp + eax*4 - 0x21c]
cmp edx, dword [ecx + 0xa4]
jne 0x4d65d0
jmp 0x4d65d2
jmp 0x4d6596
mov eax, dword [ebp - 0x234]
cmp eax, dword [ebp - 0x220]
jne 0x4d6611
cmp dword [ebp - 0x220], 0x40
jae 0x4d6611
mov ecx, dword [ebp - 0x234]
mov edx, dword [ebp - 0x23c]
mov eax, dword [edx + 0xa4]
mov dword [ebp + ecx*4 - 0x21c], eax
mov ecx, dword [ebp - 0x220]
add ecx, 1
mov dword [ebp - 0x220], ecx
xor edx, edx
jne 0x4d658a
mov dword [ebp - 0x230], 0
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x4d66d4
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x238], 0
jmp 0x4d6654
mov ecx, dword [ebp - 0x238]
add ecx, 1
mov dword [ebp - 0x238], ecx
mov edx, dword [ebp - 0x238]
cmp edx, dword [ebp - 0x118]
jae 0x4d6681
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x23c]
mov edx, dword [ebp + eax*4 - 0x114]
cmp edx, dword [ecx + 0xa4]
jne 0x4d667f
jmp 0x4d6681
jmp 0x4d6645
mov eax, dword [ebp - 0x238]
cmp eax, dword [ebp - 0x118]
jne 0x4d66c0
cmp dword [ebp - 0x118], 0x40
jae 0x4d66c0
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x23c]
mov eax, dword [edx + 0xa4]
mov dword [ebp + ecx*4 - 0x114], eax
mov ecx, dword [ebp - 0x118]
add ecx, 1
mov dword [ebp - 0x118], ecx
xor edx, edx
jne 0x4d6639
lea eax, [ebp - 0x118]
mov dword [ebp - 0x230], eax
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x22c]
push ecx
mov edx, dword [ebp - 0x230]
push edx
lea eax, [ebp - 0x220]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4d670b
cmp dword [ebp - 4], 0
jge 0x4d672f
push 0x61b7f0
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x10]
mov edx, dword [eax + 0x14]
call edx
mov eax, dword [ebp + 0x1c]
mov byte [eax], 1
xor al, al
jmp 0x4d6800
cmp dword [ebp - 4], 0
jle 0x4d67a5
lea ecx, [ebp - 0x220]
push ecx
mov edx, dword [ebp - 0x23c]
mov eax, dword [edx + 0xa4]
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4d675b
mov al, 1
jmp 0x4d6800
cmp dword [ebp - 0x230], 0
je 0x4d678d
mov ecx, dword [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x23c]
mov eax, dword [edx + 0xa4]
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4d678d
mov ecx, dword [ebp + 0x14]
mov byte [ecx], 1
xor al, al
jmp 0x4d6800
push str.Socket_select_after_connect_returned_0
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x10]
mov edx, dword [eax + 0x18]
call edx
xor al, al
jmp 0x4d6800
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x4d67e6
push str.timeout_waiting_for_connect_to_complete
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp - 0x10]
push ecx
push str.numSec
mov ecx, dword [ebp + 0x10]
call fcn.00444010
mov edx, dword [ebp - 0x224]
push edx
push str.numMicroSec
mov ecx, dword [ebp + 0x10]
call fcn.00444010
jmp 0x4d67f8
push str.socket_is_not_ready_for_writing
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp + 0x18]
mov byte [ecx], 1
xor al, al
mov esp, ebp
pop ebp
ret 0x18