Function at 0x526420
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 0x52646f
push 0x6779a0
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 0x526740
cmp dword [ebp + 8], 0
jne 0x52647c
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 0x5264e5
mov ecx, dword [ebp - 0x234]
add ecx, 1
mov dword [ebp - 0x234], ecx
mov edx, dword [ebp - 0x234]
cmp edx, dword [ebp - 0x220]
jae 0x526512
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x23c]
mov edx, dword [ebp + eax*4 - 0x21c]
cmp edx, dword [ecx + 0xa4]
jne 0x526510
jmp 0x526512
jmp 0x5264d6
mov eax, dword [ebp - 0x234]
cmp eax, dword [ebp - 0x220]
jne 0x526551
cmp dword [ebp - 0x220], 0x40
jae 0x526551
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 0x5264ca
mov dword [ebp - 0x230], 0
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x526614
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x238], 0
jmp 0x526594
mov ecx, dword [ebp - 0x238]
add ecx, 1
mov dword [ebp - 0x238], ecx
mov edx, dword [ebp - 0x238]
cmp edx, dword [ebp - 0x118]
jae 0x5265c1
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x23c]
mov edx, dword [ebp + eax*4 - 0x114]
cmp edx, dword [ecx + 0xa4]
jne 0x5265bf
jmp 0x5265c1
jmp 0x526585
mov eax, dword [ebp - 0x238]
cmp eax, dword [ebp - 0x118]
jne 0x526600
cmp dword [ebp - 0x118], 0x40
jae 0x526600
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 0x526579
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.WSOCK32.dll_select]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x52664b
cmp dword [ebp - 4], 0
jge 0x52666f
push 0x6779c8
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 0x526740
cmp dword [ebp - 4], 0
jle 0x5266e5
lea ecx, [ebp - 0x220]
push ecx
mov edx, dword [ebp - 0x23c]
mov eax, dword [edx + 0xa4]
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x52669b
mov al, 1
jmp 0x526740
cmp dword [ebp - 0x230], 0
je 0x5266cd
mov ecx, dword [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x23c]
mov eax, dword [edx + 0xa4]
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x5266cd
mov ecx, dword [ebp + 0x14]
mov byte [ecx], 1
xor al, al
jmp 0x526740
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 0x526740
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x526726
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.00493f60
mov edx, dword [ebp - 0x224]
push edx
push str.numMicroSec
mov ecx, dword [ebp + 0x10]
call fcn.00493f60
jmp 0x526738
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