Function at 0x428870
Capabilities:
Get socket status

Disassembly:
sub esp, 0x330
mov eax, dword [0x46d060]
xor eax, esp
mov dword [esp + 0x32c], eax
xor eax, eax
mov dword [esp + 0x10], 0
push ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x348]
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
push ebp
push edi
test eax, eax
jl 0x4288ca
jg 0x4288bd
mov edi, dword [esp + 0x34c]
cmp edi, 0x7fffffff
jb 0x4288d1
xor eax, eax
mov edi, accept
mov dword [esp + 0xc], eax
jmp 0x4288d1
mov edi, dword [esp + 0x34c]
cmp dword [esp + 0x340], 0xffffffff
mov ebp, dword [esp + 0x344]
jne 0x42893c
cmp ebp, 0xffffffff
jne 0x42893c
cmp dword [esp + 0x348], ebp
jne 0x42893c
test edi, edi
je 0x428922
jns 0x42891b
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
or eax, ebp
pop ebp
pop ebx
mov ecx, dword [esp + 0x32c]
xor ecx, esp
call fcn.00456d98
add esp, 0x330
ret
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x32c]
xor ecx, esp
call fcn.00456d98
add esp, 0x330
ret
test eax, eax
jl 0x428957
jg 0x428946
test edi, edi
je 0x428957
mov dword [esp + 0x10], edi
call fcn.0041e0a0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x340]
push esi
xor esi, esi
mov dword [esp + 0x28], esi
cmp eax, 0xffffffff
je 0x42897e
mov esi, 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x23c], eax
or ecx, 0xffffffff
mov ebx, eax
cmp eax, ecx
mov edx, esi
cmove ebx, ecx
mov ecx, edx
mov dword [esp + 0x238], ecx
cmp ebp, 0xffffffff
je 0x428a09
xor eax, eax
test esi, esi
je 0x4289ab
nop
cmp dword [esp + eax*4 + 0x2c], ebp
je 0x4289ab
inc eax
cmp eax, esi
jb 0x4289a0
cmp eax, esi
jne 0x4289c1
cmp esi, 0x40
jae 0x4289c1
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 0x4289d5
cmp dword [esp + eax*4 + 0x23c], ebp
je 0x4289d5
inc eax
cmp eax, edx
jb 0x4289c7
mov ecx, edx
mov dword [esp + 0x238], ecx
cmp eax, edx
jne 0x428a04
mov dword [esp + 0x238], ecx
cmp edx, 0x40
jae 0x428a04
mov dword [esp + eax*4 + 0x23c], ebp
mov ecx, dword [esp + 0x238]
inc ecx
mov dword [esp + 0x238], ecx
cmp ebp, ebx
cmova ebx, ebp
mov edx, dword [esp + 0x34c]
mov dword [esp + 0x12c], 0
cmp edx, 0xffffffff
je 0x428a6a
xor eax, eax
mov dword [esp + 0x130], edx
mov dword [esp + 0x12c], 1
test ecx, ecx
je 0x428a4e
nop dword [eax + eax]
cmp dword [esp + eax*4 + 0x23c], edx
je 0x428a4e
inc eax
cmp eax, ecx
jb 0x428a40
cmp eax, ecx
jne 0x428a65
cmp ecx, 0x40
jae 0x428a65
mov dword [esp + eax*4 + 0x23c], edx
inc dword [esp + 0x238]
cmp edx, ebx
cmova ebx, edx
mov ecx, dword [esp + 0x10]
test ecx, ecx
jg 0x428a82
jl 0x428a78
test edi, edi
jae 0x428a82
mov dword [esp + 0x18], 0
jmp 0x428a8d
lea eax, [esp + 0x230]
mov dword [esp + 0x18], eax
lea eax, [ebx + 1]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
test ecx, ecx
jl 0x428ad3
jg 0x428aa2
test edi, edi
je 0x428ad3
mov eax, 0x10624dd3
mov ecx, ebx
imul ebx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x230], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [esp + 0x234], eax
jmp 0x428ae7
mov eax, edi
or eax, ecx
jne 0x428ae7
mov dword [esp + 0x230], eax
mov dword [esp + 0x234], eax
push dword [esp + 0x18]
xor ecx, ecx
lea eax, [esp + 0x23c]
cmp dword [esp + 0x130], ecx
push eax
lea eax, [esp + 0x134]
cmove eax, ecx
test esi, esi
push eax
lea eax, [esp + 0x34]
cmove eax, ecx
push eax
push dword [esp + 0x34]
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x428b85
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x428b3a
cmp dword [0x46dc28], 0
jne 0x428b89
cmp eax, 0x2714
jne 0x428b89
mov ecx, dword [esp + 0x10]
test ecx, ecx
jl 0x428b50
jg 0x428b59
test edi, edi
jne 0x428b59
nop dword [eax + eax]
mov esi, dword [esp + 0x28]
jmp 0x428a98
push dword [esp + 0x1c]
push dword [esp + 0x24]
call fcn.0041e0a0
push edx
push eax
call fcn.0041e000
mov ebx, edi
add esp, 0x10
sub ebx, eax
test ebx, ebx
jle 0x428b93
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
jmp 0x428a98
test eax, eax
jns 0x428b91
or eax, 0xffffffff
jmp 0x428c36
jne 0x428b9a
xor eax, eax
jmp 0x428c36
mov ebx, dword [esp + 0x344]
xor esi, esi
cmp ebx, 0xffffffff
je 0x428bd2
lea eax, [esp + 0x28]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
mov ecx, 1
lea eax, [esp + 0x238]
push eax
push ebx
cmovne esi, ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x428bd2
or esi, 4
cmp ebp, 0xffffffff
je 0x428bfe
lea eax, [esp + 0x28]
push eax
push ebp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x428be9
or esi, 8
lea eax, [esp + 0x238]
push eax
push ebp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x428bfe
or esi, 4
mov ebx, dword [esp + 0x34c]
cmp ebx, 0xffffffff
je 0x428c34
lea eax, [esp + 0x12c]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x428c1f
or esi, 2
lea eax, [esp + 0x238]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x428c34
or esi, 4
mov eax, esi
mov ecx, dword [esp + 0x33c]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00456d98
add esp, 0x330
ret