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

Disassembly:
sub esp, 0x328
mov eax, dword [0x4bcad4]
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 0x438804
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 0x43884c
cmp ebp, ebx
jne 0x43884c
cmp dword [esp + 0x344], ebx
jne 0x43884c
cmp eax, esi
je 0x438845
jge 0x43883e
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, ebx
jmp 0x438b02
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
jmp 0x438b02
cmp eax, esi
jle 0x438861
mov dword [esp + 0x14], eax
call fcn.00444380
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 0x438892
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 0x4388fa
xor eax, eax
test esi, esi
je 0x4388ab
lea ecx, [ecx]
cmp dword [esp + eax*4 + 0x2c], ebp
je 0x4388ab
inc eax
cmp eax, esi
jb 0x4388a0
cmp eax, esi
jne 0x4388c1
cmp esi, 0x40
jae 0x4388c1
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 0x4388d5
cmp dword [esp + eax*4 + 0x234], ebp
je 0x4388d5
inc eax
cmp eax, edx
jb 0x4388c7
cmp eax, edx
jne 0x4388f4
cmp edx, 0x40
jae 0x4388f4
mov dword [esp + eax*4 + 0x234], ebp
mov edx, dword [esp + 0x230]
inc edx
mov dword [esp + 0x230], edx
cmp ebp, ebx
jbe 0x4388fa
mov ebx, ebp
mov edi, dword [esp + 0x344]
xor ecx, ecx
mov dword [esp + 0x12c], ecx
cmp edi, 0xffffffff
je 0x43895c
mov ecx, 1
xor eax, eax
mov dword [esp + 0x130], edi
mov dword [esp + 0x12c], ecx
test edx, edx
je 0x43893f
jmp 0x438930
cmp dword [esp + eax*4 + 0x234], edi
je 0x43893f
add eax, ecx
cmp eax, edx
jb 0x438930
cmp eax, edx
jne 0x438956
cmp edx, 0x40
jae 0x438956
mov dword [esp + eax*4 + 0x234], edi
add dword [esp + 0x230], ecx
cmp edi, ebx
jbe 0x43895c
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 0x438990
mov ecx, dword [esp + 0x12c]
mov esi, dword [esp + 0x28]
jmp 0x438990
mov eax, dword [esp + 0x10]
xor edx, edx
cmp eax, edx
jle 0x4389c5
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 0x4389cb
jne 0x4389cf
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 0x438a4e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x438a13
cmp dword [0x4bf480], 0
jne 0x438a52
cmp eax, 0x2714
jne 0x438a52
cmp dword [esp + 0x10], 0
jle 0x438980
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
call fcn.00444380
push edx
push eax
call fcn.004443b0
mov ecx, dword [esp + 0x20]
sub ecx, eax
add esp, 0x10
mov dword [esp + 0x14], ecx
test ecx, ecx
jle 0x438845
jmp 0x438980
test eax, eax
jns 0x438a5a
or eax, 0xffffffff
jmp 0x438b02
je 0x438845
mov edi, dword [esp + 0x33c]
xor esi, esi
cmp edi, 0xffffffff
je 0x438a97
lea eax, [esp + 0x28]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x438a82
mov esi, 1
lea ecx, [esp + 0x230]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x438a97
or esi, 4
mov edi, dword [esp + 0x340]
cmp edi, 0xffffffff
je 0x438aca
lea edx, [esp + 0x28]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x438ab5
or esi, 8
lea eax, [esp + 0x230]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x438aca
or esi, 4
mov edi, dword [esp + 0x344]
cmp edi, 0xffffffff
je 0x438b00
lea ecx, [esp + 0x12c]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x438aeb
or esi, 2
lea edx, [esp + 0x230]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x438b00
or esi, 4
mov eax, esi
mov ecx, dword [esp + 0x334]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004751f1
add esp, 0x328
ret