Function at 0x4357b0
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
sub esp, 0x328
mov eax, dword [0x4b8914]
xor eax, esp
mov dword [esp + 0x324], eax
mov eax, dword [esp + 0x338]
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], esi
cmp eax, 0x7fffffff
jl 0x4357f4
mov dword [esp + 0x10], accept
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x33c]
mov ebp, dword [esp + 0x340]
or ebx, 0xffffffff
cmp edi, ebx
jne 0x43583c
cmp ebp, ebx
jne 0x43583c
cmp dword [esp + 0x344], ebx
jne 0x43583c
cmp eax, esi
je 0x435835
jge 0x43582e
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, ebx
jmp 0x435af2
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
jmp 0x435af2
cmp eax, esi
jle 0x435851
mov dword [esp + 0x14], eax
call fcn.00441350
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
xor edx, edx
mov dword [esp + 0x230], edx
mov dword [esp + 0x28], esi
cmp edi, 0xffffffff
je 0x435882
mov esi, 1
mov edx, esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x234], edi
mov dword [esp + 0x230], edx
mov ebx, edi
cmp ebp, 0xffffffff
je 0x4358ea
xor eax, eax
test esi, esi
je 0x43589b
lea ecx, [ecx]
cmp dword [esp + eax*4 + 0x2c], ebp
je 0x43589b
inc eax
cmp eax, esi
jb 0x435890
cmp eax, esi
jne 0x4358b1
cmp esi, 0x40
jae 0x4358b1
mov dword [esp + eax*4 + 0x2c], ebp
mov esi, dword [esp + 0x28]
inc esi
mov dword [esp + 0x28], esi
xor eax, eax
test edx, edx
je 0x4358c5
cmp dword [esp + eax*4 + 0x234], ebp
je 0x4358c5
inc eax
cmp eax, edx
jb 0x4358b7
cmp eax, edx
jne 0x4358e4
cmp edx, 0x40
jae 0x4358e4
mov dword [esp + eax*4 + 0x234], ebp
mov edx, dword [esp + 0x230]
inc edx
mov dword [esp + 0x230], edx
cmp ebp, ebx
jbe 0x4358ea
mov ebx, ebp
mov edi, dword [esp + 0x344]
xor ecx, ecx
mov dword [esp + 0x12c], ecx
cmp edi, 0xffffffff
je 0x43594c
mov ecx, 1
xor eax, eax
mov dword [esp + 0x130], edi
mov dword [esp + 0x12c], ecx
test edx, edx
je 0x43592f
jmp 0x435920
cmp dword [esp + eax*4 + 0x234], edi
je 0x43592f
add eax, ecx
cmp eax, edx
jb 0x435920
cmp eax, edx
jne 0x435946
cmp edx, 0x40
jae 0x435946
mov dword [esp + eax*4 + 0x234], edi
add dword [esp + 0x230], ecx
cmp edi, ebx
jbe 0x43594c
mov ebx, edi
mov ebp, dword [sym.imp.WS2_32.dll_select]
xor eax, eax
cmp dword [esp + 0x10], eax
lea edx, [esp + 0x20]
setl al
lea edi, [eax - 1]
and edi, edx
inc ebx
jmp 0x435980
mov ecx, dword [esp + 0x12c]
mov esi, dword [esp + 0x28]
jmp 0x435980
mov eax, dword [esp + 0x10]
xor edx, edx
cmp eax, edx
jle 0x4359b5
mov eax, 0x10624dd3
imul dword [esp + 0x14]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
imul eax, eax, 0x3e8
sub edx, eax
imul edx, edx, 0x3e8
jmp 0x4359bb
jne 0x4359bf
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
neg ecx
sbb ecx, ecx
push edi
lea edx, [esp + 0x130]
and ecx, edx
lea eax, [esp + 0x234]
push eax
neg esi
sbb esi, esi
lea eax, [esp + 0x30]
push ecx
and esi, eax
push esi
push ebx
call ebp
cmp eax, 0xffffffff
jne 0x435a3e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x435a03
cmp dword [0x4bb460], 0
jne 0x435a42
cmp eax, 0x2714
jne 0x435a42
cmp dword [esp + 0x10], 0
jle 0x435970
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
call fcn.00441350
push edx
push eax
call fcn.00441380
mov ecx, dword [esp + 0x20]
sub ecx, eax
add esp, 0x10
mov dword [esp + 0x14], ecx
test ecx, ecx
jle 0x435835
jmp 0x435970
test eax, eax
jns 0x435a4a
or eax, 0xffffffff
jmp 0x435af2
je 0x435835
mov edi, dword [esp + 0x33c]
xor esi, esi
cmp edi, 0xffffffff
je 0x435a87
lea eax, [esp + 0x28]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x435a72
mov esi, 1
lea ecx, [esp + 0x230]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x435a87
or esi, 4
mov edi, dword [esp + 0x340]
cmp edi, 0xffffffff
je 0x435aba
lea edx, [esp + 0x28]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x435aa5
or esi, 8
lea eax, [esp + 0x230]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x435aba
or esi, 4
mov edi, dword [esp + 0x344]
cmp edi, 0xffffffff
je 0x435af0
lea ecx, [esp + 0x12c]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x435adb
or esi, 2
lea edx, [esp + 0x230]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x435af0
or esi, 4
mov eax, esi
mov ecx, dword [esp + 0x334]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00471528
add esp, 0x328
ret