Function at 0x47c168
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x4f0
cmp dword [ebp + 8], 0x40
jle 0x47c180
mov dword [ebp + 8], 0x40
cmp dword [ebp + 0x18], 0
jne 0x47c18f
mov dword [ebp - 0xc], 0xffffffff
jmp 0x47c1fe
mov eax, dword [ebp + 0x18]
mov edx, dword [eax]
mov eax, edx
shl eax, 2
add eax, edx
lea edx, [eax*4]
add eax, edx
lea edx, [eax*4]
add eax, edx
shl eax, 3
mov ebx, eax
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 0x47c1fe
cmp dword [ebp + 0x10], 0
jne 0x47c1fe
cmp dword [ebp + 0x14], 0
jne 0x47c1fe
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 0x47d153
mov eax, dword [0x7b46ac]
test eax, eax
jne 0x47c235
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 [0x7b46ac], eax
mov eax, dword [0x7b46ac]
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 0x47c3a2
mov dword [ebp - 0x18], 0
jmp 0x47c390
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.004696cc
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call fcn.0047bc54
test eax, eax
je 0x47c324
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 0x47c38c
mov eax, dword [ebp - 0x58]
mov edx, eax
sar edx, 0x1f
and edx, 7
add eax, edx
sar eax, 3
mov dl, byte [ebp + eax - 0x48c]
mov bl, dl
mov edx, dword [ebp - 0x58]
and edx, 7
mov esi, 1
mov cl, dl
shl esi, cl
mov edx, esi
or edx, ebx
mov byte [ebp + eax - 0x48c], dl
mov eax, dword [ebp - 0x58]
mov edx, eax
sar edx, 0x1f
and edx, 7
add eax, edx
sar eax, 3
mov dl, byte [ebp + eax - 0x4b4]
mov bl, dl
mov edx, dword [ebp - 0x58]
and edx, 7
mov esi, 1
mov cl, dl
shl esi, cl
mov edx, esi
or edx, ebx
mov byte [ebp + eax - 0x4b4], dl
jmp 0x47c38d
nop
inc dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov eax, dword [ebp - 0x18]
cmp edx, eax
ja 0x47c2dc
jmp 0x47c3d3
mov eax, 0x10
dec eax
add eax, 0x113
mov ebx, 0x10
mov edx, 0
div ebx
imul eax, eax, 0x10
call fcn.006b7700
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 0x47c4af
mov dword [ebp - 0x18], 0
jmp 0x47c49d
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.004696cc
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call fcn.0047bc54
test eax, eax
je 0x47c431
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 0x47c499
mov eax, dword [ebp - 0x58]
mov edx, eax
sar edx, 0x1f
and edx, 7
add eax, edx
sar eax, 3
mov dl, byte [ebp + eax - 0x49c]
mov bl, dl
mov edx, dword [ebp - 0x58]
and edx, 7
mov esi, 1
mov cl, dl
shl esi, cl
mov edx, esi
or edx, ebx
mov byte [ebp + eax - 0x49c], dl
mov eax, dword [ebp - 0x58]
mov edx, eax
sar edx, 0x1f
and edx, 7
add eax, edx
sar eax, 3
mov dl, byte [ebp + eax - 0x4b4]
mov bl, dl
mov edx, dword [ebp - 0x58]
and edx, 7
mov esi, 1
mov cl, dl
shl esi, cl
mov edx, esi
or edx, ebx
mov byte [ebp + eax - 0x4b4], dl
jmp 0x47c49a
nop
inc dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov eax, dword [ebp - 0x18]
cmp edx, eax
ja 0x47c3e9
jmp 0x47c4e0
mov eax, 0x10
dec eax
add eax, 0x113
mov ebx, 0x10
mov edx, 0
div ebx
imul eax, eax, 0x10
call fcn.006b7700
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 0x47c57b
mov dword [ebp - 0x18], 0
jmp 0x47c569
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]
mov edx, eax
sar edx, 0x1f
and edx, 7
add eax, edx
sar eax, 3
mov dl, byte [ebp + eax - 0x4ac]
mov bl, dl
mov edx, dword [ebp - 0x58]
and edx, 7
mov esi, 1
mov cl, dl
shl esi, cl
mov edx, esi
or edx, ebx
mov byte [ebp + eax - 0x4ac], dl
mov eax, dword [ebp - 0x58]
mov edx, eax
sar edx, 0x1f
and edx, 7
add eax, edx
sar eax, 3
mov dl, byte [ebp + eax - 0x4b4]
mov bl, dl
mov edx, dword [ebp - 0x58]
and edx, 7
mov esi, 1
mov cl, dl
shl esi, cl
mov edx, esi
or edx, ebx
mov byte [ebp + eax - 0x4b4], dl
inc dword [ebp - 0x18]
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
mov eax, dword [ebp - 0x18]
cmp edx, eax
ja 0x47c4f3
jmp 0x47c5ac
mov eax, 0x10
dec eax
add eax, 0x113
mov ebx, 0x10
mov edx, 0
div ebx
imul eax, eax, 0x10
call fcn.006b7700
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 0x47c9a3
mov eax, dword [ebp - 0x18]
mov edx, eax
sar edx, 0x1f
and edx, 7
add eax, edx
sar eax, 3
mov al, byte [ebp + eax - 0x4b4]
xor edx, edx
mov dl, al
mov eax, dword [ebp - 0x18]
and eax, 7
mov cl, al
sar edx, cl
mov eax, edx
and eax, 1
test eax, eax
je 0x47c99f
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.004696cc
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x47c64e
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov dword [eax], 9
mov eax, 0xffffffff
jmp 0x47d153
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call fcn.0047bc7d
test eax, eax
je 0x47c949
mov dword [ebp - 0x24], 0x20
mov eax, dword [ebp - 0x18]
mov edx, eax
sar edx, 0x1f
and edx, 7
add eax, edx
sar eax, 3
mov al, byte [ebp + eax - 0x48c]
xor edx, edx
mov dl, al
mov eax, dword [ebp - 0x18]
and eax, 7
mov cl, al
sar edx, cl
mov eax, edx
and eax, 1
test eax, eax
je 0x47c751
or dword [ebp - 0x24], 9
mov dword [ebp - 0x28], 0
jmp 0x47c6bb
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
je 0x47c6c7
inc dword [ebp - 0x28]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp dword [ebp - 0x28], eax
jb 0x47c6a7
jmp 0x47c6c8
nop
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp dword [ebp - 0x28], eax
jne 0x47c6f6
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp eax, 0x3f
ja 0x47c6f6
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 0x47c713
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp + eax*4 - 0x270]
mov eax, dword [ebp - 0x5c]
cmp edx, eax
je 0x47c720
inc dword [ebp - 0x2c]
mov eax, dword [ebp - 0x274]
cmp dword [ebp - 0x2c], eax
jb 0x47c6ff
jmp 0x47c721
nop
mov eax, dword [ebp - 0x274]
cmp dword [ebp - 0x2c], eax
jne 0x47c751
mov eax, dword [ebp - 0x274]
cmp eax, 0x3f
ja 0x47c751
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x2c]
mov dword [ebp + eax*4 - 0x270], edx
mov eax, dword [ebp - 0x274]
inc eax
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x18]
mov edx, eax
sar edx, 0x1f
and edx, 7
add eax, edx
sar eax, 3
mov al, byte [ebp + eax - 0x49c]
xor edx, edx
mov dl, al
mov eax, dword [ebp - 0x18]
and eax, 7
mov cl, al
sar edx, cl
mov eax, edx
and eax, 1
test eax, eax
je 0x47c83a
or dword [ebp - 0x24], 0x12
mov dword [ebp - 0x30], 0
jmp 0x47c7a4
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
je 0x47c7b0
inc dword [ebp - 0x30]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp dword [ebp - 0x30], eax
jb 0x47c790
jmp 0x47c7b1
nop
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp dword [ebp - 0x30], eax
jne 0x47c7df
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, 0x3f
ja 0x47c7df
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 0x47c7fc
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp + eax*4 - 0x374]
mov eax, dword [ebp - 0x5c]
cmp edx, eax
je 0x47c809
inc dword [ebp - 0x34]
mov eax, dword [ebp - 0x378]
cmp dword [ebp - 0x34], eax
jb 0x47c7e8
jmp 0x47c80a
nop
mov eax, dword [ebp - 0x378]
cmp dword [ebp - 0x34], eax
jne 0x47c83a
mov eax, dword [ebp - 0x378]
cmp eax, 0x3f
ja 0x47c83a
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x34]
mov dword [ebp + eax*4 - 0x374], edx
mov eax, dword [ebp - 0x378]
inc eax
mov dword [ebp - 0x378], eax
mov eax, dword [ebp - 0x18]
mov edx, eax
sar edx, 0x1f
and edx, 7
add eax, edx
sar eax, 3
mov al, byte [ebp + eax - 0x4ac]
xor edx, edx
mov dl, al
mov eax, dword [ebp - 0x18]
and eax, 7
mov cl, al
sar edx, cl
mov eax, edx
and eax, 1
test eax, eax
je 0x47c923
or dword [ebp - 0x24], 4
mov dword [ebp - 0x38], 0
jmp 0x47c88d
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
je 0x47c899
inc dword [ebp - 0x38]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp dword [ebp - 0x38], eax
jb 0x47c879
jmp 0x47c89a
nop
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp dword [ebp - 0x38], eax
jne 0x47c8c8
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp eax, 0x3f
ja 0x47c8c8
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 0x47c8e5
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp + eax*4 - 0x478]
mov eax, dword [ebp - 0x5c]
cmp edx, eax
je 0x47c8f2
inc dword [ebp - 0x3c]
mov eax, dword [ebp - 0x47c]
cmp dword [ebp - 0x3c], eax
jb 0x47c8d1
jmp 0x47c8f3
nop
mov eax, dword [ebp - 0x47c]
cmp dword [ebp - 0x3c], eax
jne 0x47c923
mov eax, dword [ebp - 0x47c]
cmp eax, 0x3f
ja 0x47c923
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x3c]
mov dword [ebp + eax*4 - 0x478], edx
mov eax, dword [ebp - 0x47c]
inc eax
mov dword [ebp - 0x47c], eax
mov edx, dword [0x7b46ac]
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
inc dword [ebp - 0x14]
jmp 0x47c9a0
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 0x47c9a0
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.0047bcd1
test eax, eax
je 0x47c9a0
mov dword [ebp - 0xc], 0
jmp 0x47c9a0
nop
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 8]
jl 0x47c5f1
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x170], 0
cmp dword [ebp - 0xc], 0xffffffff
je 0x47c9d4
call sub.msvcrt.dll_clock
mov edx, eax
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [ebp - 0x20], eax
jmp 0x47c9d5
nop
cmp dword [ebp - 0xc], 0
je 0x47c9e1
cmp dword [ebp - 0x14], 0
jne 0x47c9ed
mov dword [ebp - 0x1c], 0
jmp 0x47ca8d
mov dword [esp + 0x10], 0x7b46b0
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 0x47ca86
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 0x47ca8d
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0xffffffff
je 0x47cab5
call sub.msvcrt.dll_clock
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x60]
jl 0x47caae
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x60]
mov dword [ebp - 0xc], eax
jmp 0x47cab5
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 0x47cb5a
jmp 0x47cb19
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 0x47caf3
jmp 0x47cab5
nop
cmp dword [ebp - 0x1c], 0
jne 0x47cba1
cmp dword [ebp - 0x14], 0
je 0x47cba1
mov dword [esp + 0x10], 0x7b46b0
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 0x47cd9b
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x18], 0
jmp 0x47ccd7
mov eax, dword [ebp - 0x18]
mov edx, eax
sar edx, 0x1f
and edx, 7
add eax, edx
sar eax, 3
mov al, byte [ebp + eax - 0x4b4]
xor edx, edx
mov dl, al
mov eax, dword [ebp - 0x18]
and eax, 7
mov cl, al
sar edx, cl
mov eax, edx
and eax, 1
test eax, eax
je 0x47ccd3
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.004696cc
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x170]
cmp dword [ebp - 0x5c], eax
jne 0x47ccd4
inc dword [ebp - 0x10]
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.0047bcd1
mov eax, dword [ebp - 0x18]
mov edx, eax
sar edx, 0x1f
and edx, 7
add eax, edx
sar eax, 3
mov al, byte [ebp + eax - 0x484]
xor edx, edx
mov dl, al
mov eax, dword [ebp - 0x18]
and eax, 7
mov cl, al
sar edx, cl
mov eax, edx
and eax, 1
test eax, eax
jne 0x47ccce
mov eax, dword [ebp - 0x18]
mov edx, eax
sar edx, 0x1f
and edx, 7
add eax, edx
sar eax, 3
mov al, byte [ebp + eax - 0x494]
xor edx, edx
mov dl, al
mov eax, dword [ebp - 0x18]
and eax, 7
mov cl, al
sar edx, cl
mov eax, edx
and eax, 1
test eax, eax
jne 0x47ccce
mov eax, dword [ebp - 0x18]
mov edx, eax
sar edx, 0x1f
and edx, 7
add eax, edx
sar eax, 3
mov al, byte [ebp + eax - 0x4a4]
xor edx, edx
mov dl, al
mov eax, dword [ebp - 0x18]
and eax, 7
mov cl, al
sar edx, cl
mov eax, edx
and eax, 1
test eax, eax
je 0x47ccd4
inc dword [ebp - 0x1c]
jmp 0x47ccd4
nop
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 8]
jl 0x47cbbe
cmp dword [ebp - 0x1c], 0
jne 0x47cd74
cmp dword [ebp - 0xc], 0xffffffff
je 0x47ccff
cmp dword [ebp - 0xc], 0
je 0x47cd74
cmp dword [ebp - 0x10], 1
jbe 0x47cd74
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 0x47c9d5
cmp dword [ebp + 0x18], 0
je 0x47cd9b
cmp dword [ebp - 0xc], 0
jne 0x47cd9b
cmp dword [ebp - 0x1c], 0
jne 0x47cd9b
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 0x47d144
mov eax, dword [ebp - 0x18]
mov edx, eax
sar edx, 0x1f
and edx, 7
add eax, edx
sar eax, 3
mov al, byte [ebp + eax - 0x4b4]
xor edx, edx
mov dl, al
mov eax, dword [ebp - 0x18]
and eax, 7
mov cl, al
sar edx, cl
mov eax, edx
and eax, 1
test eax, eax
je 0x47d140
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.004696cc
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x170]
cmp dword [ebp - 0x5c], eax
je 0x47cfa9
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 0x47ceb0
mov dword [ebp - 0x40], 0
jmp 0x47ce75
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
je 0x47ce81
inc dword [ebp - 0x40]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp dword [ebp - 0x40], eax
jb 0x47ce61
jmp 0x47ce82
nop
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp dword [ebp - 0x40], eax
jne 0x47ceb0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp eax, 0x3f
ja 0x47ceb0
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 0x47cf24
mov dword [ebp - 0x44], 0
jmp 0x47cee9
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
je 0x47cef5
inc dword [ebp - 0x44]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp dword [ebp - 0x44], eax
jb 0x47ced5
jmp 0x47cef6
nop
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp dword [ebp - 0x44], eax
jne 0x47cf24
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, 0x3f
ja 0x47cf24
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 0x47d141
mov dword [ebp - 0x48], 0
jmp 0x47cf61
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
je 0x47cf6d
inc dword [ebp - 0x48]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp dword [ebp - 0x48], eax
jb 0x47cf4d
jmp 0x47cf6e
nop
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp dword [ebp - 0x48], eax
jne 0x47d141
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp eax, 0x3f
ja 0x47d141
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 0x47d141
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov edx, eax
sar edx, 0x1f
and edx, 7
add eax, edx
sar eax, 3
mov al, byte [ebp + eax - 0x484]
xor edx, edx
mov dl, al
mov eax, dword [ebp - 0x18]
and eax, 7
mov cl, al
sar edx, cl
mov eax, edx
and eax, 1
test eax, eax
je 0x47d032
mov dword [ebp - 0x4c], 0
jmp 0x47cff7
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
je 0x47d003
inc dword [ebp - 0x4c]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp dword [ebp - 0x4c], eax
jb 0x47cfe3
jmp 0x47d004
nop
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp dword [ebp - 0x4c], eax
jne 0x47d032
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp eax, 0x3f
ja 0x47d032
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]
mov edx, eax
sar edx, 0x1f
and edx, 7
add eax, edx
sar eax, 3
mov al, byte [ebp + eax - 0x494]
xor edx, edx
mov dl, al
mov eax, dword [ebp - 0x18]
and eax, 7
mov cl, al
sar edx, cl
mov eax, edx
and eax, 1
test eax, eax
je 0x47d0b8
mov dword [ebp - 0x50], 0
jmp 0x47d07d
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
je 0x47d089
inc dword [ebp - 0x50]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp dword [ebp - 0x50], eax
jb 0x47d069
jmp 0x47d08a
nop
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp dword [ebp - 0x50], eax
jne 0x47d0b8
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, 0x3f
ja 0x47d0b8
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]
mov edx, eax
sar edx, 0x1f
and edx, 7
add eax, edx
sar eax, 3
mov al, byte [ebp + eax - 0x4a4]
xor edx, edx
mov dl, al
mov eax, dword [ebp - 0x18]
and eax, 7
mov cl, al
sar edx, cl
mov eax, edx
and eax, 1
test eax, eax
je 0x47d141
mov dword [ebp - 0x54], 0
jmp 0x47d103
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
je 0x47d10f
inc dword [ebp - 0x54]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp dword [ebp - 0x54], eax
jb 0x47d0ef
jmp 0x47d110
nop
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp dword [ebp - 0x54], eax
jne 0x47d141
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp eax, 0x3f
ja 0x47d141
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
jmp 0x47d141
nop
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 8]
jl 0x47cdc9
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret