Function at 0x5a6080
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x703eb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x28]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x2c]
push edi
mov edi, dword [ebp + 0x24]
mov byte [edi], 0
mov dword [ebp - 0x218], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0x20]
mov byte [esi], 0
mov byte [edx], 0
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x230], edx
mov dword [ebp - 0x22c], esi
mov byte [eax], 0
test ebx, ebx
je 0x5a60ef
cmp ebx, 0x32
jae 0x5a60ef
mov ebx, 0x32
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x5a6100
mov dword [ebp + 0x10], 0x1499700
mov edi, dword [ebp + 0x10]
cmp dword [ebp - 0x21c], 0
je 0x5a640a
test ebx, ebx
je 0x5a640a
mov edx, dword [ebp - 0x218]
cmp dword [edx + 0xa4], 0xffffffff
jne 0x5a6148
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
push str.invalid_socket__not_ready_for_writing.
call edx
pop edi
mov byte [esi], 1
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521602
mov esp, ebp
pop ebp
ret 0x28
mov edx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x214], eax
test edx, edx
je 0x5a61b0
mov eax, edx
mov dword [ebp - 0x220], eax
jmp 0x5a6167
mov eax, dword [ebp - 0x220]
mov esi, ebx
cmp ebx, eax
jbe 0x5a616f
mov esi, eax
push esi
call fcn.00550010
mov ecx, dword [ebp - 0x21c]
add esp, 4
push 0x71
push ebx
call fcn.0056d6c0
mov ecx, dword [ebp - 0x21c]
call fcn.0056d4d0
test al, al
jne 0x5a6293
sub dword [ebp - 0x220], esi
jne 0x5a6161
mov ecx, dword [ebp - 0x210]
mov eax, dword [ebp - 0x214]
lea ecx, [ecx]
test edi, edi
je 0x5a61bc
cmp eax, edi
jae 0x5a6385
mov esi, ebx
test edi, edi
je 0x5a61d0
cmp edi, eax
jbe 0x5a61d0
mov esi, edi
sub esi, eax
cmp esi, ebx
jbe 0x5a61d0
mov esi, ebx
mov eax, 0x10624dd3
mul esi
shr edx, 6
mov dword [ebp - 0x224], edx
imul edx, edx, 0x3e8
mov ecx, esi
sub ecx, edx
mov edx, dword [ebp - 0x218]
imul ecx, ecx, 0x3e8
mov eax, dword [edx + 0xa4]
mov dword [ebp - 0x220], ecx
mov ecx, 1
xor edi, edi
cmp byte [ebp + 0x14], 0
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x108], ecx
je 0x5a622d
mov dword [ebp - 0x208], eax
mov dword [ebp - 0x20c], ecx
lea edi, [ebp - 0x20c]
lea eax, [ebp - 0x224]
push eax
push edi
lea ecx, [ebp - 0x108]
push ecx
push 0
push 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x5a62c3
test eax, eax
jg 0x5a62f3
mov eax, dword [ebp + 0x10]
add dword [ebp - 0x214], esi
test eax, eax
je 0x5a626c
cmp dword [ebp - 0x214], eax
jae 0x5a637f
mov esi, dword [ebp - 0x21c]
push 0x72
push ebx
mov ecx, esi
call fcn.0056d6c0
mov ecx, esi
call fcn.0056d4d0
test al, al
jne 0x5a63da
mov edi, dword [ebp + 0x10]
jmp 0x5a61a1
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x210]
mov byte [eax], 1
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push str.socket_operation_aborted_by_application_callback..
call eax
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521602
mov esp, ebp
pop ebp
ret 0x28
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push str.select_returned_a_socket_error
call eax
mov ecx, dword [ebp - 0x22c]
pop edi
pop esi
mov byte [ecx], 1
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521602
mov esp, ebp
pop ebp
ret 0x28
mov esi, dword [ebp - 0x218]
mov eax, dword [esi + 0xa4]
lea edx, [ebp - 0x108]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x5a6325
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521602
mov esp, ebp
pop ebp
ret 0x28
test edi, edi
je 0x5a6358
mov ecx, dword [esi + 0xa4]
push edi
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x5a6358
mov edx, dword [ebp - 0x234]
pop edi
pop esi
mov byte [edx], 1
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521602
mov esp, ebp
pop ebp
ret 0x28
mov ecx, dword [ebp - 0x210]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push str.Socket_select_after_connect_returned_0.
call edx
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521602
mov esp, ebp
pop ebp
ret 0x28
mov ecx, dword [ebp - 0x210]
cmp byte [ebp + 0x14], 0
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
je 0x5a63b5
push str.timeout_waiting_for_connect_to_complete_
call edx
mov eax, dword [ebp - 0x230]
pop edi
pop esi
mov byte [eax], 1
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521602
mov esp, ebp
pop ebp
ret 0x28
push str.socket_is_not_ready_for_writing_
call edx
mov eax, dword [ebp - 0x230]
pop edi
pop esi
mov byte [eax], 1
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521602
mov esp, ebp
pop ebp
ret 0x28
mov ecx, dword [ebp - 0x228]
mov byte [ecx], 1
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push str.socket_operation_aborted_by_application_callback
call eax
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521602
mov esp, ebp
pop ebp
ret 0x28
push esi
push edx
push eax
push ecx
mov ecx, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp - 0x218]
push edi
call fcn.005a5ed0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00521602
mov esp, ebp
pop ebp
ret 0x28