Function at 0x466460
Capabilities:
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket

Disassembly:
sub esp, 0x8d4
mov eax, dword [0x5627bc]
xor eax, esp
mov dword [esp + 0x8d0], eax
mov eax, dword [esp + 0x8d8]
push ebx
mov ebx, dword [sym.imp.MSVCR80.dll__errno]
push ebp
push esi
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 1
call ebx
mov ecx, dword [esp + 0x8f4]
xor ebp, ebp
mov dword [eax], ebp
xor eax, eax
cmp ecx, 0xffffffff
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
jne 0x4664bf
mov eax, dword [0x54c0e8]
cmp eax, ecx
je 0x4664bf
mov ecx, eax
mov dword [esp + 0x8f4], ecx
push ebp
push 0x64
lea edx, [esp + 0x4e8]
push edx
mov edi, 2
push ecx
mov dword [0x5711e8], edi
call sub.WSOCK32.dll_recv
push ebp
push 1
push edi
mov dword [esp + 0x20], 0x10
call sub.WSOCK32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
jne 0x46650a
call ebx
mov eax, dword [eax]
mov dword [0x5711ec], eax
mov eax, 0xfffff768
jmp 0x466b31
xor eax, eax
push 0x10
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
push esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov word [esp + 0x2c], di
mov dword [esp + 0x30], ebp
mov word [esp + 0x2e], bp
call sub.WSOCK32.dll_bind
push 5
push esi
call sub.WSOCK32.dll_listen
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x24]
push eax
push esi
call sub.WSOCK32.dll_getsockname
test eax, eax
jge 0x46656d
call ebx
mov ecx, dword [eax]
push esi
mov dword [0x5711ec], ecx
call sub.WSOCK32.dll_closesocket
mov eax, 0xfffff95c
jmp 0x466b31
mov edx, dword [esp + 0x22]
push edx
call sub.WSOCK32.dll_ntohs
mov ebx, dword [sym.imp.MSVCR80.dll_sprintf]
movzx eax, ax
movzx edi, ax
mov esi, edi
shr esi, 8
push esi
lea eax, [esp + 0x54]
push 0x525c04
push eax
call ebx
shl esi, 8
sub edi, esi
push edi
lea ecx, [esp + 0x58]
push 0x525c04
push ecx
call ebx
mov ax, word [0x53bc6c]
mov edx, dword [str.PORT]
add esp, 0x18
mov word [esp + 0x3b0], ax
mov dword [esp + 0x3ac], edx
xor eax, eax
jmp 0x4665d0
mov cl, byte [eax + 0x571200]
mov byte [esp + eax + 0x58], cl
add eax, 1
test cl, cl
jne 0x4665d0
lea edi, [esp + 0x58]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4665e8
mov bx, word [0x539598]
lea eax, [esp + 0x50]
mov word [edi], bx
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x466602
lea edi, [esp + 0x58]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x466616
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x58]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x466635
lea eax, [esp + 0x48]
mov word [edi], bx
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x466648
lea edi, [esp + 0x58]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x466660
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x58]
rep movsb byte es:[edi], byte [esi]
add eax, 0xffffffff
nop
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x466680
mov cx, word [0x53bc0c]
mov dl, byte [0x53bc0e]
mov word [eax], cx
mov byte [eax + 2], dl
lea eax, [esp + 0x58]
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4666a3
lea edi, [esp + 0x3ac]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4666b8
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x3ac]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4666e0
mov edi, dword [esp + 0x8f4]
sub eax, edx
lea ecx, [esp + 0x3ac]
mov ebx, edi
call fcn.00464cf0
mov esi, eax
test esi, esi
jle 0x466729
call dword [sym.imp.MSVCR80.dll__errno]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
push ecx
mov dword [0x5711ec], eax
call sub.WSOCK32.dll_closesocket
mov eax, 0xffffffb3
sub eax, esi
jmp 0x466b31
call fcn.00464e80
mov esi, eax
test esi, esi
jle 0x466755
call dword [sym.imp.MSVCR80.dll__errno]
mov edx, dword [eax]
mov eax, dword [esp + 0x10]
push eax
mov dword [0x5711ec], edx
call sub.WSOCK32.dll_closesocket
mov eax, esi
neg eax
jmp 0x466b31
mov dx, word [0x53bc64]
mov ecx, dword [str.RETR]
mov eax, dword [esp + 0x8f0]
mov word [esp + 0x27c], dx
lea edx, [esp + 0x178]
mov dword [esp + 0x278], ecx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x466781
lea eax, [esp + 0x178]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x466797
sub eax, edx
mov bl, 0x2f
cmp byte [esp + eax + 0x177], bl
je 0x4667ca
lea edi, [esp + 0x178]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4667b7
mov ax, word [0x536c34]
mov word [edi], ax
mov ebp, dword [esp + 0x18]
mov eax, ebp
mov edx, ebp
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4667d2
lea edi, [esp + 0x178]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4667e7
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x8ec]
and ecx, 3
lea edx, [esp + 0x78]
rep movsb byte es:[edi], byte [esi]
sub edx, eax
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x466810
lea eax, [esp + 0x78]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x466823
sub eax, edx
cmp byte [esp + eax + 0x77], bl
je 0x466854
lea edi, [esp + 0x78]
add edi, 0xffffffff
jmp 0x466840
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x466840
mov cx, word [0x536c34]
mov word [edi], cx
mov eax, ebp
mov edx, ebp
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x466858
lea edi, [esp + 0x78]
sub eax, edx
add edi, 0xffffffff
lea ebx, [ebx]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x466870
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x78]
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x466890
lea edi, [esp + 0x278]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4668a7
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x278]
rep movsb byte es:[edi], byte [esi]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x4668d0
mov dx, word [0x53bc0c]
mov cl, byte [0x53bc0e]
mov word [eax], dx
mov byte [eax + 2], cl
lea eax, [esp + 0x278]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4668f7
mov ebx, dword [esp + 0x8f4]
sub eax, edx
lea ecx, [esp + 0x278]
call fcn.00464cf0
mov esi, eax
test esi, esi
jle 0x46693f
call dword [sym.imp.MSVCR80.dll__errno]
mov edx, dword [eax]
mov eax, dword [esp + 0x10]
push eax
mov dword [0x5711ec], edx
call sub.WSOCK32.dll_closesocket
mov eax, 0xffffffeb
sub eax, esi
jmp 0x466b31
push 2
lea ecx, [esp + 0x44]
push 3
push ecx
call fcn.00464d30
add esp, 0xc
test eax, eax
jge 0x466976
call dword [sym.imp.MSVCR80.dll__errno]
mov edx, dword [eax]
mov eax, dword [esp + 0x10]
push eax
mov dword [0x5711ec], edx
call sub.WSOCK32.dll_closesocket
mov eax, 0xffffe188
jmp 0x466b31
mov al, byte [esp + 0x40]
cmp al, 0x35
jne 0x4669b2
call dword [sym.imp.MSVCR80.dll__errno]
mov ecx, dword [eax]
lea edx, [esp + 0x40]
push edx
mov dword [0x5711ec], ecx
call dword [sym.imp.MSVCR80.dll_atoi]
mov esi, eax
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call sub.WSOCK32.dll_closesocket
mov eax, 0xfffff448
sub eax, esi
jmp 0x466b31
cmp al, 0x34
jne 0x4669c0
mov eax, 0x270f
jmp 0x466b31
lea ecx, [esp + 0x178]
push 0x525c24
push ecx
call dword [sym.imp.MSVCR80.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x4669fe
call dword [sym.imp.MSVCR80.dll__errno]
mov edx, dword [eax]
mov eax, dword [esp + 0x10]
push eax
mov dword [0x5711ec], edx
call sub.WSOCK32.dll_closesocket
mov eax, 0xfffff8f8
jmp 0x466b31
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x34]
push edx
push esi
call sub.WSOCK32.dll_accept
push esi
mov ebx, eax
call sub.WSOCK32.dll_closesocket
test ebx, ebx
ja 0x466a45
call dword [sym.imp.MSVCR80.dll__errno]
mov eax, dword [eax]
push ebp
mov dword [0x5711ec], eax
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
push esi
call sub.WSOCK32.dll_closesocket
mov eax, 0xfffff830
jmp 0x466b31
lea ecx, [esp + 0x1c]
push ecx
push 0x8004667e
push ebx
call sub.WSOCK32.dll_ioctlsocket
test eax, eax
jge 0x466a81
call dword [sym.imp.MSVCR80.dll__errno]
mov edx, dword [eax]
push ebp
mov dword [0x5711ec], edx
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
push ebx
call sub.WSOCK32.dll_closesocket
mov eax, 0xffffe250
jmp 0x466b31
mov edi, dword [esp + 0x8f4]
call fcn.00464e80
mov esi, eax
test esi, esi
jle 0x466ab9
call dword [sym.imp.MSVCR80.dll__errno]
mov eax, dword [eax]
mov dword [0x5711ec], eax
push ebp
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
push ebx
call sub.WSOCK32.dll_closesocket
mov eax, esi
neg eax
jmp 0x466b31
push ebp
mov esi, 0x5642f8
mov eax, ebx
call fcn.00464fb0
mov esi, eax
add esp, 4
test esi, esi
jle 0x466af6
call dword [sym.imp.MSVCR80.dll__errno]
mov ecx, dword [eax]
push ebp
mov dword [0x5711ec], ecx
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
push ebx
call sub.WSOCK32.dll_closesocket
mov eax, 0xfffffff7
sub eax, esi
jmp 0x466b31
mov edi, dword [esp + 0x8f4]
call fcn.00464e80
mov esi, eax
call dword [sym.imp.MSVCR80.dll__errno]
test esi, esi
push ebp
jle 0x466b19
mov edx, dword [eax]
mov dword [0x5711ec], edx
jmp 0x466aa1
mov eax, dword [eax]
mov dword [0x5711ec], eax
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
push ebx
call sub.WSOCK32.dll_closesocket
xor eax, eax
mov ecx, dword [esp + 0x8e0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00523ce0
add esp, 0x8d4
ret