Function at 0x5327d0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [0x6a60f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0x64
mov dword [ebp - 8], 0
mov dword [ebp - 0x334], 0
xor eax, eax
mov dword [ebp - 0x330], eax
mov eax, dword [ebp - 0xc]
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [ebp - 0x334], eax
mov eax, dword [ebp - 0xc]
xor edx, edx
mov ecx, 0x3e8
div ecx
imul edx, edx, 0x3e8
mov dword [ebp - 0x330], edx
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x328], 0
mov dword [ebp - 0x338], 0
jmp 0x53286d
mov edx, dword [ebp - 0x338]
add edx, 1
mov dword [ebp - 0x338], edx
mov eax, dword [ebp - 0x338]
cmp eax, dword [ebp - 0x118]
jae 0x532891
mov ecx, dword [ebp - 0x338]
mov edx, dword [ebp + ecx*4 - 0x114]
cmp edx, dword [ebp + 8]
jne 0x53288f
jmp 0x532891
jmp 0x53285e
mov eax, dword [ebp - 0x338]
cmp eax, dword [ebp - 0x118]
jne 0x5328c7
cmp dword [ebp - 0x118], 0x40
jae 0x5328c7
mov ecx, dword [ebp - 0x338]
mov edx, dword [ebp + 8]
mov dword [ebp + ecx*4 - 0x114], edx
mov eax, dword [ebp - 0x118]
add eax, 1
mov dword [ebp - 0x118], eax
xor ecx, ecx
jne 0x532852
mov dword [ebp - 0x33c], 0
jmp 0x5328e6
mov edx, dword [ebp - 0x33c]
add edx, 1
mov dword [ebp - 0x33c], edx
mov eax, dword [ebp - 0x33c]
cmp eax, dword [ebp - 0x220]
jae 0x53290a
mov ecx, dword [ebp - 0x33c]
mov edx, dword [ebp + ecx*4 - 0x21c]
cmp edx, dword [ebp + 8]
jne 0x532908
jmp 0x53290a
jmp 0x5328d7
mov eax, dword [ebp - 0x33c]
cmp eax, dword [ebp - 0x220]
jne 0x532940
cmp dword [ebp - 0x220], 0x40
jae 0x532940
mov ecx, dword [ebp - 0x33c]
mov edx, dword [ebp + 8]
mov dword [ebp + ecx*4 - 0x21c], edx
mov eax, dword [ebp - 0x220]
add eax, 1
mov dword [ebp - 0x220], eax
xor ecx, ecx
jne 0x5328cb
lea edx, [ebp - 0x334]
push edx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x118]
push ecx
lea edx, [ebp - 0x328]
push edx
mov eax, dword [ebp + 8]
add eax, 1
push eax
call dword [sym.imp.WSOCK32.dll_select]
mov dword [ebp - 0x32c], eax
cmp dword [ebp - 0x32c], 0
jle 0x532a16
lea ecx, [ebp - 0x118]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x5329a2
mov dword [ebp - 4], 0xffffffff
jmp 0x532a8b
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x5329d6
mov edx, dword [ebp + 8]
push edx
call fcn.00532aa0
add esp, 4
push eax
push str.Exception_on_socket_fd:_Connection_failed__SO_ERROR_d
mov eax, dword [ebp + 0xc]
push eax
call fcn.00532580
add esp, 0xc
jmp 0x532a14
cmp dword [ebp + 0xc], 0
je 0x532a0a
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 8], 0
je 0x532a0a
push 0xa3
push 0x6a4c48
push 0xd
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
call edx
add esp, 0x10
mov dword [ebp - 0x340], eax
jmp 0x532a14
mov dword [ebp - 0x340], 0xd
jmp 0x532a77
cmp dword [ebp - 0x32c], 0
jne 0x532a5f
cmp dword [ebp + 0xc], 0
je 0x532a53
mov eax, dword [ebp + 0xc]
cmp dword [eax + 8], 0
je 0x532a53
push 0xa9
push str.Timed_out_waiting_for_socket_to_connect
push 0xd
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
call ecx
add esp, 0x10
mov dword [ebp - 0x344], eax
jmp 0x532a5d
mov dword [ebp - 0x344], 0xd
jmp 0x532a77
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push 0x6a4c98
mov edx, dword [ebp + 0xc]
push edx
call fcn.00532580
add esp, 0xc
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
test eax, eax
jne 0x5327f8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00532ffe
mov esp, ebp
pop ebp
ret