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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x491094]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
mov dword [ebp - 0x320], esi
mov dword [ebp - 0x31c], esi
push edi
mov edi, dword [ebp + 0xc]
cmp eax, 0xffffffff
jne 0x4359ae
cmp edi, 0xffffffff
jne 0x4359ae
push ebx
call fcn.00435bb4
pop ecx
jmp 0x435ba3
test ebx, ebx
jle 0x4359c6
call fcn.0042de09
mov dword [ebp - 0x320], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x31c], edx
xor edx, edx
mov dword [ebp - 0x20c], esi
test ebx, ebx
mov dword [ebp - 0x324], 1
mov ecx, ebx
cmovle ecx, edx
or edx, 0xffffffff
mov dword [ebp - 0x314], ecx
mov ecx, esi
mov dword [ebp - 0x108], ecx
cmp eax, 0xffffffff
je 0x435a15
mov ecx, dword [ebp - 0x324]
mov edx, eax
mov dword [ebp - 0x208], eax
mov dword [ebp - 0x20c], ecx
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x310], esi
cmp edi, 0xffffffff
je 0x435a5f
mov dword [ebp - 0x30c], edi
mov eax, esi
mov dword [ebp - 0x310], 1
test ecx, ecx
je 0x435a44
cmp dword [ebp + eax*4 - 0x104], edi
je 0x435a44
inc eax
cmp eax, ecx
jb 0x435a36
cmp eax, ecx
jne 0x435a5a
cmp ecx, 0x40
jae 0x435a5a
mov dword [ebp + eax*4 - 0x104], edi
inc dword [ebp - 0x108]
cmp edi, edx
cmova edx, edi
xor ecx, ecx
lea eax, [ebp - 0x32c]
test ebx, ebx
cmovs eax, ecx
lea ecx, [edx + 1]
mov dword [ebp - 0x330], ecx
mov ecx, dword [ebp - 0x314]
mov dword [ebp - 0x318], eax
test ebx, ebx
jle 0x435aa9
mov eax, ecx
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [ebp - 0x32c], eax
imul eax, edx, 0x3e8
mov dword [ebp - 0x328], eax
mov eax, dword [ebp - 0x318]
jmp 0x435ab7
jne 0x435ab7
mov dword [ebp - 0x32c], esi
mov dword [ebp - 0x328], esi
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x330]
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x435b33
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x435aef
cmp eax, 0x2714
jne 0x435b37
mov ecx, dword [ebp - 0x314]
mov eax, dword [ebp - 0x318]
test ebx, ebx
jle 0x435aa9
push dword [ebp - 0x31c]
push dword [ebp - 0x320]
call fcn.0042de09
push edx
push eax
call fcn.0042ddb3
mov ecx, ebx
add esp, 0x10
sub ecx, eax
mov dword [ebp - 0x314], ecx
test ecx, ecx
jle 0x435b37
mov eax, dword [ebp - 0x318]
jmp 0x435a81
test eax, eax
jns 0x435b3c
or eax, 0xffffffff
jmp 0x435ba3
jne 0x435b42
xor eax, eax
jmp 0x435ba3
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
je 0x435b74
lea eax, [ebp - 0x20c]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
lea eax, [ebp - 0x108]
push eax
cmovne esi, dword [ebp - 0x324]
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x435b74
or esi, 4
cmp edi, 0xffffffff
je 0x435ba1
lea eax, [ebp - 0x310]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x435b8d
or esi, 2
lea eax, [ebp - 0x108]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x435ba1
or esi, 4
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00449be1
mov esp, ebp
pop ebp
ret