Function at 0x4017d0
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
jmp 0x407190
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x423acb
push eax
mov eax, 0x4330
mov dword fs:[0], esp
call fcn.00421bb0
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x4595]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4071e4
lea eax, [esp + 0x4595]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
xor ebx, ebx
jmp 0x407343
lea ecx, [esp + 0x4354]
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
xor ebx, ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x4348], ebx
call sub.MFC42.DLL_CString::MakeLower
mov edx, dword [esp + 0x18]
push 0x5c
lea ecx, [esp + 0x1c]
mov esi, dword [edx - 8]
call sub.MFC42.DLL_CString::ReverseFind
sub esi, eax
lea eax, [esp + 0x10]
dec esi
lea ecx, [esp + 0x18]
push esi
push eax
call sub.MFC42.DLL_CString::Right
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push str.logo
push ecx
call esi
add esp, 8
test eax, eax
je 0x40731a
mov edx, dword [esp + 0x10]
push str.vmlinuz
push edx
call esi
add esp, 8
test eax, eax
je 0x40731a
mov eax, dword [esp + 0x10]
push str.vmlinum
push eax
call esi
add esp, 8
test eax, eax
je 0x40731a
mov ecx, dword [esp + 0x10]
push str.vmlinuh
push ecx
call esi
add esp, 8
test eax, eax
je 0x40731a
mov edx, dword [esp + 0x10]
push str.vmlinuk
push edx
call esi
add esp, 8
test eax, eax
je 0x40731a
mov eax, dword [esp + 0x10]
push str.vmlinup
push eax
call esi
add esp, 8
test eax, eax
je 0x40731a
mov ecx, dword [esp + 0x10]
push str.vmlinus
push ecx
call esi
add esp, 8
test eax, eax
je 0x40731a
mov edx, dword [esp + 0x10]
push str.vmlinuw
push edx
call esi
add esp, 8
test eax, eax
je 0x40731a
mov eax, dword [esp + 0x10]
push str.vmlinut
push eax
call esi
add esp, 8
test eax, eax
je 0x40731a
mov ecx, dword [esp + 0x10]
push str.vmlinuv
push ecx
call esi
add esp, 8
test eax, eax
je 0x40731a
mov edx, dword [esp + 0x10]
push str.vmlinuq
push edx
call esi
add esp, 8
mov dword [esp + 0x14], 0x200
test eax, eax
jne 0x407322
mov dword [esp + 0x14], 0x400
lea ecx, [esp + 0x10]
call fcn.00421f80
lea ecx, [esp + 0x18]
mov dword [esp + 0x4348], 0xffffffff
call fcn.00421f80
mov esi, dword [esp + 0x14]
mov ecx, 0x1001
xor eax, eax
lea edi, [esp + 0x33c]
mov ebp, dword [esp + 0x85a0]
rep stosd dword es:[edi], eax
mov ecx, 0x81
lea edi, [esp + 0x138]
rep stosd dword es:[edi], eax
mov eax, dword [0x45329c]
mov dword [esp + 0x28], 0x10
cmp eax, ebx
mov dword [esp + 0x20], ebx
je 0x4073dd
mov ecx, dword [ebp + 4]
push 0x432824
lea eax, [esp + 0x4358]
push 0x433900
push eax
push 0x433900
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, dword [ebp + 0x218]
push eax
mov eax, dword [0x4339cc]
shl edx, 4
add edx, 0x4532a4
lea ecx, [eax + 0x13e4]
push edx
push 1
push 1
call fcn.00401587
mov ecx, dword [0x4339cc]
push ebx
push ebx
push 0x80d6
mov edx, dword [ecx + 0x1404]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x85a4]
mov edx, dword [esp + 0x20]
mov ecx, 0x1001
inc edx
xor eax, eax
lea edi, [esp + 0x33c]
cmp edx, 0xff
rep stosd dword es:[edi], eax
mov dword [esp + 0x20], edx
mov byte [esp + 0x33c], al
mov byte [esp + 0x33d], 3
jg 0x407428
mov byte [esp + 0x33e], al
mov byte [esp + 0x33f], dl
jmp 0x407436
mov byte [esp + 0x33f], dl
mov byte [esp + 0x33e], dh
mov eax, edx
mov ecx, dword [esp + 0x85a8]
imul eax, esi
cmp eax, ecx
jle 0x407482
lea eax, [edx - 1]
mov edx, dword [esp + 0x85ac]
imul eax, esi
sub ecx, eax
lea edi, [esp + 0x340]
lea esi, [eax + edx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x1c], 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
xor edi, edi
mov dword [esp + 0x24], edi
jmp 0x4075a1
mov ecx, esi
lea esi, [edx - 1]
imul esi, dword [esp + 0x14]
mov edx, dword [esp + 0x85ac]
lea edi, [esp + 0x340]
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
xor edi, edi
mov dword [esp + 0x24], edi
jmp 0x4075a1
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x138]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
lea ecx, [esp + 0x138]
push eax
push ebp
push esi
push 0x204
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x4074fd
cmp dword [0x45329c], esi
je 0x40772c
push 0x4327fc
jmp 0x4076d1
cmp byte [esp + 0x139], 4
jne 0x40759d
lea eax, [esp + 0x33e]
lea edx, [esp + 0x13a]
mov cx, word [eax]
cmp cx, word [edx]
jne 0x40759d
cmp dword [esp + 0x1c], esi
je 0x407638
cmp dword [0x45329c], esi
je 0x407593
mov eax, dword [ebp + 4]
push 0x4327dc
lea edx, [esp + 0x4358]
push 0x433900
push edx
push 0x433900
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [ebp + 0x218]
mov edx, dword [0x4339cc]
shl ecx, 4
add ecx, 0x4532a4
push eax
push ecx
push 1
push 1
lea ecx, [edx + 0x13e4]
call fcn.00401587
mov eax, dword [0x4339cc]
push esi
push esi
push 0x80d6
mov ecx, dword [eax + 0x1404]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, 1
jmp 0x40772e
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
cmp eax, esi
mov eax, 0x10
push eax
push ebp
push esi
jne 0x4075b7
mov edx, dword [esp + 0x20]
jmp 0x4075ca
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x85b4]
dec ecx
imul ecx, dword [esp + 0x20]
sub edx, ecx
add edx, 4
lea eax, [esp + 0x348]
push edx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x407641
mov ecx, dword [0x453294]
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x30], ecx
push esi
lea eax, [esp + 0x3c]
push esi
lea ecx, [ebx + 1]
push eax
push ecx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], 1
mov dword [esp + 0x44], esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x407654
cmp eax, esi
jg 0x4074b7
jne 0x4075a1
mov eax, dword [0x453298]
inc edi
cmp edi, eax
mov dword [esp + 0x24], edi
jg 0x4076c4
jmp 0x4075a1
mov esi, dword [esp + 0x14]
jmp 0x4073e8
cmp dword [0x45329c], esi
je 0x40772c
push 0x4327bc
jmp 0x4076d1
cmp dword [0x45329c], esi
je 0x4076bc
mov eax, dword [ebp + 4]
push 0x4327b0
lea edx, [esp + 0x4358]
push 0x433900
push edx
push 0x433900
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [ebp + 0x218]
mov edx, dword [0x4339cc]
shl ecx, 4
add ecx, 0x4532a4
push eax
push ecx
push 1
push 2
lea ecx, [edx + 0x13e4]
call fcn.00401587
mov eax, dword [0x4339cc]
push esi
push esi
push 0x80d6
mov ecx, dword [eax + 0x1404]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40772c
cmp dword [0x45329c], esi
je 0x40772c
push 0x432790
mov eax, dword [ebp + 4]
lea edx, [esp + 0x4358]
push 0x433900
push edx
push 0x433900
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [ebp + 0x218]
mov edx, dword [0x4339cc]
shl ecx, 4
add ecx, 0x4532a4
push eax
push ecx
push 1
push 2
lea ecx, [edx + 0x13e4]
call fcn.00401587
mov eax, dword [0x4339cc]
push esi
push esi
push 0x80d6
mov ecx, dword [eax + 0x1404]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
mov ecx, dword [esp + 0x4340]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x433c
ret