Function at 0x474fd0
Capabilities:
Connect socket
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x541a34]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x210], ecx
cmp dword [ebp + 0xc], 0
jge 0x47502a
push 0x10
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx + 0x30]
push edx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x475015
mov dword [ebp - 0x21c], 1
jmp 0x47501f
mov dword [ebp - 0x21c], 0
mov eax, dword [ebp - 0x21c]
jmp 0x475291
push 1
mov ecx, dword [ebp - 0x210]
call fcn.0047a930
test eax, eax
jne 0x475042
xor eax, eax
jmp 0x475291
push 0x10
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx + 0x30]
push edx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x47507e
push 0
mov ecx, dword [ebp - 0x210]
call fcn.0047a930
mov eax, 1
jmp 0x475291
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x220], 0xffffffff
jne 0x4750b3
cmp dword [ebp - 0x224], 0x2733
je 0x4750b3
push 0
mov ecx, dword [ebp - 0x210]
call fcn.0047a930
xor eax, eax
jmp 0x475291
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x214], 0
jmp 0x4750e2
mov eax, dword [ebp - 0x214]
add eax, 1
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x214]
cmp ecx, dword [ebp - 0x20c]
jae 0x47510c
mov edx, dword [ebp - 0x214]
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp + edx*4 - 0x208]
cmp ecx, dword [eax + 0x30]
jne 0x47510a
jmp 0x47510c
jmp 0x4750d3
mov edx, dword [ebp - 0x214]
cmp edx, dword [ebp - 0x20c]
jne 0x475148
cmp dword [ebp - 0x20c], 0x40
jae 0x475148
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx + 0x30]
mov dword [ebp + eax*4 - 0x208], edx
mov eax, dword [ebp - 0x20c]
add eax, 1
mov dword [ebp - 0x20c], eax
xor ecx, ecx
jne 0x4750c7
mov dword [ebp - 0x218], 0
jmp 0x47516b
mov edx, dword [ebp - 0x218]
add edx, 1
mov dword [ebp - 0x218], edx
mov eax, dword [ebp - 0x218]
cmp eax, dword [ebp - 0x108]
jae 0x475195
mov ecx, dword [ebp - 0x218]
mov edx, dword [ebp - 0x210]
mov eax, dword [ebp + ecx*4 - 0x104]
cmp eax, dword [edx + 0x30]
jne 0x475193
jmp 0x475195
jmp 0x47515c
mov ecx, dword [ebp - 0x218]
cmp ecx, dword [ebp - 0x108]
jne 0x4751d1
cmp dword [ebp - 0x108], 0x40
jae 0x4751d1
mov edx, dword [ebp - 0x218]
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax + 0x30]
mov dword [ebp + edx*4 - 0x104], ecx
mov edx, dword [ebp - 0x108]
add edx, 1
mov dword [ebp - 0x108], edx
xor eax, eax
jne 0x475150
mov eax, dword [ebp + 0xc]
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [ebp - 0x230], eax
mov eax, dword [ebp + 0xc]
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [ebp - 0x22c], edx
lea edx, [ebp - 0x230]
push edx
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push 0
mov edx, dword [ebp - 0x210]
mov eax, dword [edx + 0x30]
add eax, 1
push eax
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
jg 0x475243
mov ecx, dword [ebp - 0x210]
call fcn.00474870
xor eax, eax
jmp 0x475291
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx + 0x30]
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47526c
mov ecx, dword [ebp - 0x210]
call fcn.00474870
xor eax, eax
jmp 0x475291
push 0
mov ecx, dword [ebp - 0x210]
call fcn.0047a930
test eax, eax
jne 0x47528c
mov ecx, dword [ebp - 0x210]
call fcn.00474870
xor eax, eax
jmp 0x475291
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d1fac
mov esp, ebp
pop ebp
ret 8