Function at 0x441000
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x457664]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, 0x10624dd3
imul ecx
push ebx
sar edx, 6
xor ebx, ebx
mov eax, edx
mov dword [ebp - 0x108], ebx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x324], eax
imul eax, eax, 0x3e8
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x31c], esi
xor edi, edi
sub ecx, eax
mov dword [ebp - 0x20c], edi
imul eax, ecx, 0x3e8
xor esi, esi
mov dword [ebp - 0x310], esi
mov dword [ebp - 0x320], eax
xor eax, eax
mov dword [ebp - 0x314], eax
cmp dword [ebp + 0xc], eax
jbe 0x44124a
mov edx, dword [ebp - 0x31c]
nop dword [eax]
movzx eax, word [edx + eax*8 + 4]
mov ecx, eax
mov dword [ebp - 0x318], ecx
test eax, 0x300
je 0x4410dd
xor ecx, ecx
test ebx, ebx
je 0x4410b1
mov eax, dword [ebp - 0x314]
mov eax, dword [edx + eax*8]
cmp dword [ebp + ecx*4 - 0x104], eax
je 0x4410b1
inc ecx
cmp ecx, ebx
jb 0x4410a3
cmp ecx, ebx
jne 0x4410d7
cmp ebx, 0x40
jae 0x4410d7
mov eax, dword [ebp - 0x314]
mov eax, dword [edx + eax*8]
mov dword [ebp + ecx*4 - 0x104], eax
mov ebx, dword [ebp - 0x108]
inc ebx
mov dword [ebp - 0x108], ebx
mov ecx, dword [ebp - 0x318]
test cl, 0x10
je 0x44112b
xor ecx, ecx
test edi, edi
je 0x4410ff
mov eax, dword [ebp - 0x314]
mov eax, dword [edx + eax*8]
cmp dword [ebp + ecx*4 - 0x208], eax
je 0x4410ff
inc ecx
cmp ecx, edi
jb 0x4410f1
cmp ecx, edi
jne 0x441125
cmp edi, 0x40
jae 0x441125
mov eax, dword [ebp - 0x314]
mov eax, dword [edx + eax*8]
mov dword [ebp + ecx*4 - 0x208], eax
mov edi, dword [ebp - 0x20c]
inc edi
mov dword [ebp - 0x20c], edi
mov ecx, dword [ebp - 0x318]
test cl, 1
je 0x441174
xor eax, eax
test esi, esi
je 0x44114e
mov ecx, dword [ebp - 0x314]
mov ecx, dword [edx + ecx*8]
nop
cmp dword [ebp + eax*4 - 0x30c], ecx
je 0x44114e
inc eax
cmp eax, esi
jb 0x441140
cmp eax, esi
jne 0x441174
cmp esi, 0x40
jae 0x441174
mov ecx, dword [ebp - 0x314]
mov ecx, dword [edx + ecx*8]
mov dword [ebp + eax*4 - 0x30c], ecx
mov esi, dword [ebp - 0x310]
inc esi
mov dword [ebp - 0x310], esi
mov eax, dword [ebp - 0x314]
inc eax
mov dword [ebp - 0x314], eax
cmp eax, dword [ebp + 0xc]
jb 0x441080
test ebx, ebx
jne 0x44119a
test edi, edi
jne 0x44119a
test esi, esi
je 0x44124a
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
mov edi, eax
mov dword [ebp - 0x318], edi
test edi, edi
jle 0x441255
mov esi, dword [ebp - 0x31c]
mov ebx, 0x300
mov edi, dword [ebp + 0xc]
add esi, 6
nop
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x108]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4411fb
or word [esi], bx
lea eax, [ebp - 0x20c]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x441212
or word [esi], 0x10
lea eax, [ebp - 0x310]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x441229
or word [esi], 1
add esi, 8
sub edi, 1
jne 0x4411e0
mov eax, dword [ebp - 0x318]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00441849
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441849
mov esp, ebp
pop ebp
ret 0x10