Function at 0x52b3d0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp + 0x14]
call fcn.0054b390
mov ecx, dword [ebp + 0x14]
call fcn.0054b3e0
movzx eax, al
test eax, eax
je 0x52b410
mov ecx, dword [ebp + 0x14]
mov byte [ecx + 0xd], 1
push str.Wait_for_writeable_socket_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 0x52b768
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0xa4], 0xffffffff
jne 0x52b43c
push 0x65c124
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 + 0xe], 1
xor al, al
jmp 0x52b768
movzx edx, byte [ebp + 0xc]
test edx, edx
jne 0x52b451
cmp dword [ebp + 8], 0
jne 0x52b451
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 - 0xc], eax
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x3e8
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x250
call fcn.00526fd0
mov dword [ebp - 0x24], 0
jmp 0x52b4a9
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
cmp eax, dword [edx + 0x258]
jae 0x52b4d3
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [edx + ecx*4 + 0x25c]
cmp ecx, dword [eax + 0xa4]
jne 0x52b4d1
jmp 0x52b4d3
jmp 0x52b4a0
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
cmp eax, dword [edx + 0x258]
jne 0x52b51b
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 0x258], 0x200
jae 0x52b51b
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov ecx, dword [ecx + 0xa4]
mov dword [eax + edx*4 + 0x25c], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x258]
add eax, 1
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x258], eax
xor edx, edx
jne 0x52b497
mov dword [ebp - 0x20], 0
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x52b5db
mov ecx, dword [ebp - 0x2c]
add ecx, 0x1a60
call fcn.00526fd0
mov dword [ebp - 0x28], 0
jmp 0x52b556
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
cmp eax, dword [edx + 0x1a68]
jae 0x52b580
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [edx + ecx*4 + 0x1a6c]
cmp ecx, dword [eax + 0xa4]
jne 0x52b57e
jmp 0x52b580
jmp 0x52b54d
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
cmp eax, dword [edx + 0x1a68]
jne 0x52b5c8
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 0x1a68], 0x200
jae 0x52b5c8
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov ecx, dword [ecx + 0xa4]
mov dword [eax + edx*4 + 0x1a6c], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x1a68]
add eax, 1
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x1a68], eax
xor edx, edx
jne 0x52b544
mov eax, dword [ebp - 0x2c]
add eax, 0x1a68
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 0x254], 0x3004bc8d
je 0x52b5f4
push 0
call fcn.00504670
add esp, 4
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x1a5c], 0x3004bc8d
je 0x52b60d
push 0
call fcn.00504670
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x1a64], 0x3004bc8d
je 0x52b626
push 0
call fcn.00504670
add esp, 4
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 0x326c], 0x3004bc8d
je 0x52b63f
push 0
call fcn.00504670
add esp, 4
mov dword [ebp - 8], 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x258
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x52b673
cmp dword [ebp - 4], 0
jge 0x52b6a8
mov ecx, dword [ebp + 0x18]
call fcn.00505610
push str.Socket_select_for_writeability_returned_an_error
mov eax, dword [ebp + 0x18]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp - 0x2c]
call fcn.0052c470
mov ecx, dword [ebp + 0x14]
mov byte [ecx + 0xe], 1
xor al, al
jmp 0x52b768
cmp dword [ebp - 4], 0
jle 0x52b70f
mov edx, dword [ebp - 0x2c]
add edx, 0x258
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0xa4]
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x52b6d4
mov al, 1
jmp 0x52b768
cmp dword [ebp - 0x20], 0
je 0x52b6f7
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0xa4]
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x52b6f7
xor al, al
jmp 0x52b768
push str.Socket_select_after_connect_returned_0
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x18]
mov edx, dword [eax + 0x18]
call edx
xor al, al
jmp 0x52b768
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x52b74d
push str.timeout_waiting_for_connect_to_complete
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 - 0x10]
push ecx
push str.numSec
mov ecx, dword [ebp + 0x18]
call fcn.005054d0
mov edx, dword [ebp - 0x14]
push edx
push str.numMicroSec
mov ecx, dword [ebp + 0x18]
call fcn.005054d0
jmp 0x52b75f
push str.socket_is_not_ready_for_writing
mov eax, dword [ebp + 0x18]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp + 0x14]
mov byte [ecx + 0xc], 1
xor al, al
mov esp, ebp
pop ebp
ret 0x14