Function at 0x461af5
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x4f0
cmp dword [ebp + 8], 0x40
jle 0x461b0d
mov dword [ebp + 8], 0x40
cmp dword [ebp + 0x18], 0
jne 0x461b1c
mov dword [ebp - 0xc], 0xffffffff
jmp 0x461b73
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
imul ebx, eax, 0x3e8
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 4]
mov edx, 0x10624dd3
mov eax, ecx
imul edx
sar edx, 6
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
add eax, ebx
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x461b73
cmp dword [ebp + 0x10], 0
jne 0x461b73
cmp dword [ebp + 0x14], 0
jne 0x461b73
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov eax, 0
jmp 0x462ab2
mov eax, dword [0x6e53c8]
test eax, eax
jne 0x461baa
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventA]
call eax
sub esp, 0x10
mov dword [0x6e53c8], eax
mov eax, dword [0x6e53c8]
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], 0
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x48c]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x49c]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x4ac]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [esp + 8], 8
mov dword [esp + 4], 0
lea eax, [ebp - 0x4b4]
mov dword [esp], eax
call sub.msvcrt.dll_memset
cmp dword [ebp + 0xc], 0
je 0x461d15
mov dword [ebp - 0x18], 0
jmp 0x461d03
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x18]
mov eax, dword [eax + edx*4 + 4]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call fcn.0044f694
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call fcn.004615f4
test eax, eax
je 0x461c9b
lea eax, [ebp - 0x4b8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetNumberOfConsoleInputEvents]
call eax
sub esp, 8
test eax, eax
jne 0x461c9b
jmp 0x461cff
mov eax, dword [ebp - 0x58]
lea edx, [eax + 7]
test eax, eax
cmovs eax, edx
sar eax, 3
movzx edx, byte [ebp + eax - 0x48c]
mov ebx, edx
mov edx, dword [ebp - 0x58]
and edx, 7
mov esi, 1
mov ecx, edx
shl esi, cl
mov edx, esi
or edx, ebx
mov byte [ebp + eax - 0x48c], dl
mov eax, dword [ebp - 0x58]
lea edx, [eax + 7]
test eax, eax
cmovs eax, edx
sar eax, 3
movzx edx, byte [ebp + eax - 0x4b4]
mov ebx, edx
mov edx, dword [ebp - 0x58]
and edx, 7
mov esi, 1
mov ecx, edx
shl esi, cl
mov edx, esi
or edx, ebx
mov byte [ebp + eax - 0x4b4], dl
add dword [ebp - 0x18], 1
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp edx, eax
jb 0x461c51
jmp 0x461d48
mov eax, 0x10
sub eax, 1
add eax, 0x113
mov ebx, 0x10
mov edx, 0
div ebx
imul eax, eax, 0x10
call fcn.00620f20
sub esp, eax
lea eax, [esp + 0x14]
add eax, 0xf
shr eax, 4
shl eax, 4
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0x10], 0
je 0x461e22
mov dword [ebp - 0x18], 0
jmp 0x461e10
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x18]
mov eax, dword [eax + edx*4 + 4]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call fcn.0044f694
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call fcn.004615f4
test eax, eax
je 0x461da8
lea eax, [ebp - 0x4b8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetNumberOfConsoleInputEvents]
call eax
sub esp, 8
test eax, eax
je 0x461da8
jmp 0x461e0c
mov eax, dword [ebp - 0x58]
lea edx, [eax + 7]
test eax, eax
cmovs eax, edx
sar eax, 3
movzx edx, byte [ebp + eax - 0x49c]
mov ebx, edx
mov edx, dword [ebp - 0x58]
and edx, 7
mov esi, 1
mov ecx, edx
shl esi, cl
mov edx, esi
or edx, ebx
mov byte [ebp + eax - 0x49c], dl
mov eax, dword [ebp - 0x58]
lea edx, [eax + 7]
test eax, eax
cmovs eax, edx
sar eax, 3
movzx edx, byte [ebp + eax - 0x4b4]
mov ebx, edx
mov edx, dword [ebp - 0x58]
and edx, 7
mov esi, 1
mov ecx, edx
shl esi, cl
mov edx, esi
or edx, ebx
mov byte [ebp + eax - 0x4b4], dl
add dword [ebp - 0x18], 1
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp edx, eax
jb 0x461d5e
jmp 0x461e55
mov eax, 0x10
sub eax, 1
add eax, 0x113
mov ebx, 0x10
mov edx, 0
div ebx
imul eax, eax, 0x10
call fcn.00620f20
sub esp, eax
lea eax, [esp + 0x14]
add eax, 0xf
shr eax, 4
shl eax, 4
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x14], 0
je 0x461eef
mov dword [ebp - 0x18], 0
jmp 0x461edd
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
mov eax, dword [eax + edx*4 + 4]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
lea edx, [eax + 7]
test eax, eax
cmovs eax, edx
sar eax, 3
movzx edx, byte [ebp + eax - 0x4ac]
mov ebx, edx
mov edx, dword [ebp - 0x58]
and edx, 7
mov esi, 1
mov ecx, edx
shl esi, cl
mov edx, esi
or edx, ebx
mov byte [ebp + eax - 0x4ac], dl
mov eax, dword [ebp - 0x58]
lea edx, [eax + 7]
test eax, eax
cmovs eax, edx
sar eax, 3
movzx edx, byte [ebp + eax - 0x4b4]
mov ebx, edx
mov edx, dword [ebp - 0x58]
and edx, 7
mov esi, 1
mov ecx, edx
shl esi, cl
mov edx, esi
or edx, ebx
mov byte [ebp + eax - 0x4b4], dl
add dword [ebp - 0x18], 1
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp edx, eax
jb 0x461e68
jmp 0x461f22
mov eax, 0x10
sub eax, 1
add eax, 0x113
mov ebx, 0x10
mov edx, 0
div ebx
imul eax, eax, 0x10
call fcn.00620f20
sub esp, eax
lea eax, [esp + 0x14]
add eax, 0xf
shr eax, 4
shl eax, 4
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x378], 0
mov dword [ebp - 0x47c], 0
mov dword [ebp - 0x18], 0
jmp 0x462317
mov eax, dword [ebp - 0x18]
lea edx, [eax + 7]
test eax, eax
cmovs eax, edx
sar eax, 3
movzx eax, byte [ebp + eax - 0x4b4]
movzx edx, al
mov eax, dword [ebp - 0x18]
and eax, 7
mov ecx, eax
sar edx, cl
mov eax, edx
and eax, 1
test eax, eax
jne 0x461f98
jmp 0x462313
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.0044f694
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x461fc3
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov dword [eax], 9
mov eax, 0xffffffff
jmp 0x462ab2
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call fcn.0046161b
test eax, eax
je 0x4622bf
mov dword [ebp - 0x24], 0x20
mov eax, dword [ebp - 0x18]
lea edx, [eax + 7]
test eax, eax
cmovs eax, edx
sar eax, 3
movzx eax, byte [ebp + eax - 0x48c]
movzx edx, al
mov eax, dword [ebp - 0x18]
and eax, 7
mov ecx, eax
sar edx, cl
mov eax, edx
and eax, 1
test eax, eax
je 0x4620c6
or dword [ebp - 0x24], 9
mov dword [ebp - 0x28], 0
jmp 0x462031
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x28]
mov edx, dword [eax + edx*4 + 4]
mov eax, dword [ebp - 0x5c]
cmp edx, eax
jne 0x46202d
jmp 0x46203b
add dword [ebp - 0x28], 1
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x28]
ja 0x46201a
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x28]
jne 0x462069
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp eax, 0x3f
ja 0x462069
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x28]
mov dword [eax + edx*4 + 4], ecx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea edx, [eax + 1]
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov dword [ebp - 0x2c], 0
jmp 0x462089
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp + eax*4 - 0x270]
mov eax, dword [ebp - 0x5c]
cmp edx, eax
jne 0x462085
jmp 0x462094
add dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x274]
cmp eax, dword [ebp - 0x2c]
ja 0x462072
mov eax, dword [ebp - 0x274]
cmp eax, dword [ebp - 0x2c]
jne 0x4620c6
mov eax, dword [ebp - 0x274]
cmp eax, 0x3f
ja 0x4620c6
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x2c]
mov dword [ebp + eax*4 - 0x270], edx
mov eax, dword [ebp - 0x274]
add eax, 1
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x18]
lea edx, [eax + 7]
test eax, eax
cmovs eax, edx
sar eax, 3
movzx eax, byte [ebp + eax - 0x49c]
movzx edx, al
mov eax, dword [ebp - 0x18]
and eax, 7
mov ecx, eax
sar edx, cl
mov eax, edx
and eax, 1
test eax, eax
je 0x4621af
or dword [ebp - 0x24], 0x12
mov dword [ebp - 0x30], 0
jmp 0x46211a
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x30]
mov edx, dword [eax + edx*4 + 4]
mov eax, dword [ebp - 0x5c]
cmp edx, eax
jne 0x462116
jmp 0x462124
add dword [ebp - 0x30], 1
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x30]
ja 0x462103
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x30]
jne 0x462152
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, 0x3f
ja 0x462152
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x30]
mov dword [eax + edx*4 + 4], ecx
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
lea edx, [eax + 1]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov dword [ebp - 0x34], 0
jmp 0x462172
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp + eax*4 - 0x374]
mov eax, dword [ebp - 0x5c]
cmp edx, eax
jne 0x46216e
jmp 0x46217d
add dword [ebp - 0x34], 1
mov eax, dword [ebp - 0x378]
cmp eax, dword [ebp - 0x34]
ja 0x46215b
mov eax, dword [ebp - 0x378]
cmp eax, dword [ebp - 0x34]
jne 0x4621af
mov eax, dword [ebp - 0x378]
cmp eax, 0x3f
ja 0x4621af
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x34]
mov dword [ebp + eax*4 - 0x374], edx
mov eax, dword [ebp - 0x378]
add eax, 1
mov dword [ebp - 0x378], eax
mov eax, dword [ebp - 0x18]
lea edx, [eax + 7]
test eax, eax
cmovs eax, edx
sar eax, 3
movzx eax, byte [ebp + eax - 0x4ac]
movzx edx, al
mov eax, dword [ebp - 0x18]
and eax, 7
mov ecx, eax
sar edx, cl
mov eax, edx
and eax, 1
test eax, eax
je 0x462298
or dword [ebp - 0x24], 4
mov dword [ebp - 0x38], 0
jmp 0x462203
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x38]
mov edx, dword [eax + edx*4 + 4]
mov eax, dword [ebp - 0x5c]
cmp edx, eax
jne 0x4621ff
jmp 0x46220d
add dword [ebp - 0x38], 1
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x38]
ja 0x4621ec
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x38]
jne 0x46223b
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp eax, 0x3f
ja 0x46223b
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x38]
mov dword [eax + edx*4 + 4], ecx
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
lea edx, [eax + 1]
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
mov dword [ebp - 0x3c], 0
jmp 0x46225b
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp + eax*4 - 0x478]
mov eax, dword [ebp - 0x5c]
cmp edx, eax
jne 0x462257
jmp 0x462266
add dword [ebp - 0x3c], 1
mov eax, dword [ebp - 0x47c]
cmp eax, dword [ebp - 0x3c]
ja 0x462244
mov eax, dword [ebp - 0x47c]
cmp eax, dword [ebp - 0x3c]
jne 0x462298
mov eax, dword [ebp - 0x47c]
cmp eax, 0x3f
ja 0x462298
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x3c]
mov dword [ebp + eax*4 - 0x478], edx
mov eax, dword [ebp - 0x47c]
add eax, 1
mov dword [ebp - 0x47c], eax
mov edx, dword [0x6e53c8]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x24]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_WSAEventSelect]
call eax
sub esp, 0xc
add dword [ebp - 0x14], 1
jmp 0x462313
mov eax, dword [ebp - 0x10]
lea edx, [eax + 1]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x5c]
mov dword [ebp + eax*4 - 0x170], edx
cmp dword [ebp - 0xc], 0
je 0x462313
lea eax, [ebp - 0x4ac]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x49c]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x48c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call fcn.0046166d
test eax, eax
je 0x462313
mov dword [ebp - 0xc], 0
add dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 8]
jl 0x461f67
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x170], 0
cmp dword [ebp - 0xc], 0xffffffff
je 0x462346
call sub.msvcrt.dll_clock
mov edx, eax
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0xc], 0
je 0x462352
cmp dword [ebp - 0x14], 0
jne 0x46235e
mov dword [ebp - 0x1c], 0
jmp 0x4623fe
mov dword [esp + 0x10], 0x6e53cc
lea eax, [ebp - 0x47c]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x378]
mov dword [esp + 8], eax
lea eax, [ebp - 0x274]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.WS2_32.dll_select]
call eax
sub esp, 0x14
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4623f7
mov dword [esp + 8], 0x104
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x274]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov dword [esp + 8], 0x104
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
lea eax, [ebp - 0x378]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov dword [esp + 8], 0x104
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
lea eax, [ebp - 0x47c]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
jmp 0x4623fe
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0xffffffff
je 0x462426
call sub.msvcrt.dll_clock
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x60]
jl 0x46241f
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x60]
mov dword [ebp - 0xc], eax
jmp 0x462426
mov dword [ebp - 0xc], 0
mov dword [esp + 0x10], 0x4ff
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
lea eax, [ebp - 0x170]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
call eax
sub esp, 0x14
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
cmp eax, dword [ebp - 0x10]
jne 0x4624c8
jmp 0x46248a
lea eax, [ebp - 0x4d4]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_TranslateMessage]
call eax
sub esp, 4
lea eax, [ebp - 0x4d4]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_DispatchMessageA]
call eax
sub esp, 4
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
lea eax, [ebp - 0x4d4]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_PeekMessageA]
call eax
sub esp, 0x14
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jne 0x462464
jmp 0x4624d1
nop
cmp dword [ebp - 0x1c], 0
jne 0x462516
jmp 0x4624d6
jmp 0x462426
cmp dword [ebp - 0x14], 0
je 0x462516
mov dword [esp + 0x10], 0x6e53cc
lea eax, [ebp - 0x47c]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x378]
mov dword [esp + 8], eax
lea eax, [ebp - 0x274]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.WS2_32.dll_select]
call eax
sub esp, 0x14
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x10], 1
jbe 0x462709
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x18], 0
jmp 0x462645
mov eax, dword [ebp - 0x18]
lea edx, [eax + 7]
test eax, eax
cmovs eax, edx
sar eax, 3
movzx eax, byte [ebp + eax - 0x4b4]
movzx edx, al
mov eax, dword [ebp - 0x18]
and eax, 7
mov ecx, eax
sar edx, cl
mov eax, edx
and eax, 1
test eax, eax
jne 0x462564
jmp 0x462641
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.0044f694
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x170]
cmp eax, dword [ebp - 0x5c]
jne 0x462641
add dword [ebp - 0x10], 1
lea eax, [ebp - 0x4ac]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x49c]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x48c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call fcn.0046166d
mov eax, dword [ebp - 0x18]
lea edx, [eax + 7]
test eax, eax
cmovs eax, edx
sar eax, 3
movzx eax, byte [ebp + eax - 0x484]
movzx edx, al
mov eax, dword [ebp - 0x18]
and eax, 7
mov ecx, eax
sar edx, cl
mov eax, edx
and eax, 1
test eax, eax
jne 0x46263d
mov eax, dword [ebp - 0x18]
lea edx, [eax + 7]
test eax, eax
cmovs eax, edx
sar eax, 3
movzx eax, byte [ebp + eax - 0x494]
movzx edx, al
mov eax, dword [ebp - 0x18]
and eax, 7
mov ecx, eax
sar edx, cl
mov eax, edx
and eax, 1
test eax, eax
jne 0x46263d
mov eax, dword [ebp - 0x18]
lea edx, [eax + 7]
test eax, eax
cmovs eax, edx
sar eax, 3
movzx eax, byte [ebp + eax - 0x4a4]
movzx edx, al
mov eax, dword [ebp - 0x18]
and eax, 7
mov ecx, eax
sar edx, cl
mov eax, edx
and eax, 1
test eax, eax
je 0x462641
add dword [ebp - 0x1c], 1
add dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 8]
jl 0x462533
cmp dword [ebp - 0x1c], 0
jne 0x4626e2
cmp dword [ebp - 0xc], 0xffffffff
je 0x46266d
cmp dword [ebp - 0xc], 0
je 0x4626e2
cmp dword [ebp - 0x10], 1
jbe 0x4626e2
mov dword [esp + 8], 0x104
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x274]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov dword [esp + 8], 0x104
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
lea eax, [ebp - 0x378]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov dword [esp + 8], 0x104
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
lea eax, [ebp - 0x47c]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov dword [esp + 4], 1
mov dword [esp], 1
mov eax, dword [sym.imp.KERNEL32.dll_SleepEx]
call eax
sub esp, 8
jmp 0x462346
cmp dword [ebp + 0x18], 0
je 0x462709
cmp dword [ebp - 0xc], 0
jne 0x462709
cmp dword [ebp - 0x1c], 0
jne 0x462709
mov eax, dword [ebp + 0x18]
mov dword [eax + 4], 0
mov eax, dword [ebp + 0x18]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x18], 0
jmp 0x462aa3
mov eax, dword [ebp - 0x18]
lea edx, [eax + 7]
test eax, eax
cmovs eax, edx
sar eax, 3
movzx eax, byte [ebp + eax - 0x4b4]
movzx edx, al
mov eax, dword [ebp - 0x18]
and eax, 7
mov ecx, eax
sar edx, cl
mov eax, edx
and eax, 1
test eax, eax
jne 0x462768
jmp 0x462a9f
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.0044f694
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x170]
cmp eax, dword [ebp - 0x5c]
je 0x46290f
mov eax, dword [ebp - 0x5c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_WSAEventSelect]
call eax
sub esp, 0xc
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x274]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.dll___WSAFDIsSet
sub esp, 8
test eax, eax
je 0x46281d
mov dword [ebp - 0x40], 0
jmp 0x4627e5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x40]
mov edx, dword [eax + edx*4 + 4]
mov eax, dword [ebp - 0x18]
cmp edx, eax
jne 0x4627e1
jmp 0x4627ef
add dword [ebp - 0x40], 1
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x40]
ja 0x4627ce
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x40]
jne 0x46281d
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp eax, 0x3f
ja 0x46281d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x40]
mov dword [eax + edx*4 + 4], ecx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea edx, [eax + 1]
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x378]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.dll___WSAFDIsSet
sub esp, 8
test eax, eax
je 0x462891
mov dword [ebp - 0x44], 0
jmp 0x462859
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x44]
mov edx, dword [eax + edx*4 + 4]
mov eax, dword [ebp - 0x18]
cmp edx, eax
jne 0x462855
jmp 0x462863
add dword [ebp - 0x44], 1
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x44]
ja 0x462842
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x44]
jne 0x462891
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, 0x3f
ja 0x462891
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x44]
mov dword [eax + edx*4 + 4], ecx
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
lea edx, [eax + 1]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x47c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.dll___WSAFDIsSet
sub esp, 8
test eax, eax
je 0x46290a
mov dword [ebp - 0x48], 0
jmp 0x4628cd
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x48]
mov edx, dword [eax + edx*4 + 4]
mov eax, dword [ebp - 0x18]
cmp edx, eax
jne 0x4628c9
jmp 0x4628d7
add dword [ebp - 0x48], 1
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x48]
ja 0x4628b6
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x48]
jne 0x46290a
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp eax, 0x3f
ja 0x46290a
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x48]
mov dword [eax + edx*4 + 4], ecx
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
lea edx, [eax + 1]
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
jmp 0x462a9f
jmp 0x462a9f
add dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x18]
lea edx, [eax + 7]
test eax, eax
cmovs eax, edx
sar eax, 3
movzx eax, byte [ebp + eax - 0x484]
movzx edx, al
mov eax, dword [ebp - 0x18]
and eax, 7
mov ecx, eax
sar edx, cl
mov eax, edx
and eax, 1
test eax, eax
je 0x462997
mov dword [ebp - 0x4c], 0
jmp 0x46295f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x4c]
mov edx, dword [eax + edx*4 + 4]
mov eax, dword [ebp - 0x18]
cmp edx, eax
jne 0x46295b
jmp 0x462969
add dword [ebp - 0x4c], 1
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x4c]
ja 0x462948
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x4c]
jne 0x462997
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp eax, 0x3f
ja 0x462997
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x4c]
mov dword [eax + edx*4 + 4], ecx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea edx, [eax + 1]
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 0x18]
lea edx, [eax + 7]
test eax, eax
cmovs eax, edx
sar eax, 3
movzx eax, byte [ebp + eax - 0x494]
movzx edx, al
mov eax, dword [ebp - 0x18]
and eax, 7
mov ecx, eax
sar edx, cl
mov eax, edx
and eax, 1
test eax, eax
je 0x462a1b
mov dword [ebp - 0x50], 0
jmp 0x4629e3
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x50]
mov edx, dword [eax + edx*4 + 4]
mov eax, dword [ebp - 0x18]
cmp edx, eax
jne 0x4629df
jmp 0x4629ed
add dword [ebp - 0x50], 1
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x50]
ja 0x4629cc
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x50]
jne 0x462a1b
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, 0x3f
ja 0x462a1b
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x50]
mov dword [eax + edx*4 + 4], ecx
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
lea edx, [eax + 1]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov eax, dword [ebp - 0x18]
lea edx, [eax + 7]
test eax, eax
cmovs eax, edx
sar eax, 3
movzx eax, byte [ebp + eax - 0x4a4]
movzx edx, al
mov eax, dword [ebp - 0x18]
and eax, 7
mov ecx, eax
sar edx, cl
mov eax, edx
and eax, 1
test eax, eax
je 0x462a9f
mov dword [ebp - 0x54], 0
jmp 0x462a67
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x54]
mov edx, dword [eax + edx*4 + 4]
mov eax, dword [ebp - 0x18]
cmp edx, eax
jne 0x462a63
jmp 0x462a71
add dword [ebp - 0x54], 1
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x54]
ja 0x462a50
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x54]
jne 0x462a9f
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp eax, 0x3f
ja 0x462a9f
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x54]
mov dword [eax + edx*4 + 4], ecx
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
lea edx, [eax + 1]
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
add dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 8]
jl 0x462737
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret