Function at 0x4c7d00
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 0x4c7d4f
push 0x63d850
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 0x4c8020
cmp dword [ebp + 8], 0
jne 0x4c7d5c
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 0x4c7dc5
mov ecx, dword [ebp - 0x234]
add ecx, 1
mov dword [ebp - 0x234], ecx
mov edx, dword [ebp - 0x234]
cmp edx, dword [ebp - 0x220]
jae 0x4c7df2
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x23c]
mov edx, dword [ebp + eax*4 - 0x21c]
cmp edx, dword [ecx + 0xa4]
jne 0x4c7df0
jmp 0x4c7df2
jmp 0x4c7db6
mov eax, dword [ebp - 0x234]
cmp eax, dword [ebp - 0x220]
jne 0x4c7e31
cmp dword [ebp - 0x220], 0x40
jae 0x4c7e31
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 0x4c7daa
mov dword [ebp - 0x230], 0
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x4c7ef4
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x238], 0
jmp 0x4c7e74
mov ecx, dword [ebp - 0x238]
add ecx, 1
mov dword [ebp - 0x238], ecx
mov edx, dword [ebp - 0x238]
cmp edx, dword [ebp - 0x118]
jae 0x4c7ea1
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x23c]
mov edx, dword [ebp + eax*4 - 0x114]
cmp edx, dword [ecx + 0xa4]
jne 0x4c7e9f
jmp 0x4c7ea1
jmp 0x4c7e65
mov eax, dword [ebp - 0x238]
cmp eax, dword [ebp - 0x118]
jne 0x4c7ee0
cmp dword [ebp - 0x118], 0x40
jae 0x4c7ee0
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 0x4c7e59
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 0x4c7f2b
cmp dword [ebp - 4], 0
jge 0x4c7f4f
push 0x63d878
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 0x4c8020
cmp dword [ebp - 4], 0
jle 0x4c7fc5
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 0x4c7f7b
mov al, 1
jmp 0x4c8020
cmp dword [ebp - 0x230], 0
je 0x4c7fad
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 0x4c7fad
mov ecx, dword [ebp + 0x14]
mov byte [ecx], 1
xor al, al
jmp 0x4c8020
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 0x4c8020
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x4c8006
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.004357c0
mov edx, dword [ebp - 0x224]
push edx
push str.numMicroSec
mov ecx, dword [ebp + 0x10]
call fcn.004357c0
jmp 0x4c8018
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