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

Disassembly:
sub esp, 0x8e4
mov eax, dword [0x5627bc]
xor eax, esp
mov dword [esp + 0x8e0], eax
mov eax, dword [esp + 0x8e8]
push ebp
push esi
push edi
mov edi, dword [sym.imp.MSVCR80.dll__errno]
mov dword [esp + 0x14], eax
call edi
mov ecx, dword [esp + 0x900]
xor ebp, ebp
mov dword [eax], ebp
xor eax, eax
cmp ecx, 0xffffffff
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
jne 0x466ba6
mov eax, dword [0x54c0e8]
cmp eax, ecx
je 0x466ba6
mov ecx, eax
mov dword [esp + 0x900], ecx
push ebp
push 0x64
lea edx, [esp + 0x4f4]
push edx
push ecx
mov dword [0x5711e8], 1
call sub.WSOCK32.dll_recv
push ebp
push 1
push 2
mov dword [esp + 0x1c], 0x10
call sub.WSOCK32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0xc], esi
jne 0x466c04
call edi
mov eax, dword [eax]
pop edi
pop esi
mov dword [0x5711ec], eax
mov eax, 0xfffff768
pop ebp
mov ecx, dword [esp + 0x8e0]
xor ecx, esp
call fcn.00523ce0
add esp, 0x8e4
ret
xor eax, eax
push 0x10
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov word [esp + 0x24], 2
mov dword [esp + 0x28], ebp
mov word [esp + 0x26], bp
call sub.WSOCK32.dll_bind
push 5
push esi
call sub.WSOCK32.dll_listen
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
push esi
call sub.WSOCK32.dll_getsockname
test eax, eax
jge 0x466c7c
call edi
mov ecx, dword [eax]
push esi
mov dword [0x5711ec], ecx
call sub.WSOCK32.dll_closesocket
pop edi
pop esi
mov eax, 0xfffff95c
pop ebp
mov ecx, dword [esp + 0x8e0]
xor ecx, esp
call fcn.00523ce0
add esp, 0x8e4
ret
mov edx, dword [esp + 0x1a]
push ebx
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 + 0x50]
push 0x525c04
push eax
call ebx
shl esi, 8
sub edi, esi
push edi
lea ecx, [esp + 0x54]
push 0x525c04
push ecx
call ebx
mov ax, word [0x53bc6c]
mov edx, dword [str.PORT]
add esp, 0x18
mov word [esp + 0x3c0], ax
mov dword [esp + 0x3bc], edx
xor eax, eax
jmp 0x466ce0
mov cl, byte [eax + 0x571200]
mov byte [esp + eax + 0x54], cl
add eax, 1
test cl, cl
jne 0x466ce0
lea edi, [esp + 0x54]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x466cf8
mov bx, word [0x539598]
lea eax, [esp + 0x4c]
mov word [edi], bx
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x466d12
lea edi, [esp + 0x54]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x466d26
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 + 0x54]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x466d45
lea eax, [esp + 0x44]
mov word [edi], bx
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x466d58
lea edi, [esp + 0x54]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x466d70
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x54]
rep movsb byte es:[edi], byte [esi]
add eax, 0xffffffff
nop
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x466d90
mov cx, word [0x53bc0c]
mov dl, byte [0x53bc0e]
mov word [eax], cx
mov byte [eax + 2], dl
lea eax, [esp + 0x54]
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x466db3
lea edi, [esp + 0x3bc]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x466dc8
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 + 0x3bc]
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 0x466df0
mov edi, dword [esp + 0x904]
sub eax, edx
lea ecx, [esp + 0x3bc]
mov ebx, edi
call fcn.00464cf0
mov esi, eax
test esi, esi
jle 0x466e39
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 0x46720b
call fcn.00464e80
mov esi, eax
test esi, esi
jle 0x466e65
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 0x46720b
mov dx, word [0x53bc74]
mov ecx, dword [str.STOR]
mov eax, dword [esp + 0x900]
mov word [esp + 0x28c], dx
lea edx, [esp + 0x88]
mov dword [esp + 0x288], ecx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x466e91
lea eax, [esp + 0x88]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x466ea7
sub eax, edx
cmp byte [esp + eax + 0x87], 0x2f
je 0x466ed9
lea edi, [esp + 0x88]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x466ec6
mov ax, word [0x536c34]
mov word [edi], ax
mov ebx, dword [esp + 0x18]
mov eax, ebx
mov edx, ebx
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x466ee1
lea edi, [esp + 0x88]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x466ef6
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x88]
push 0x525ca8
push ecx
call dword [sym.imp.MSVCR80.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x466f4e
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 0x46720b
mov eax, dword [esp + 0x8fc]
lea edx, [esp + 0x188]
sub edx, eax
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x466f60
lea eax, [esp + 0x188]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x466f76
sub eax, edx
cmp byte [esp + eax + 0x187], 0x2f
je 0x466fa9
lea edi, [esp + 0x188]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x466f95
mov cx, word [0x536c34]
mov word [edi], cx
mov eax, ebx
mov edx, ebx
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x466fb0
lea edi, [esp + 0x188]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x466fc5
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 + 0x188]
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x466fe8
lea edi, [esp + 0x288]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
nop
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x467000
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x288]
rep movsb byte es:[edi], byte [esi]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x467022
mov dx, word [0x53bc0c]
mov cl, byte [0x53bc0e]
mov word [eax], dx
mov byte [eax + 2], cl
lea eax, [esp + 0x288]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x467050
mov ebx, dword [esp + 0x904]
sub eax, edx
lea ecx, [esp + 0x288]
call fcn.00464cf0
mov esi, eax
test esi, esi
jle 0x4670a2
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
push ebp
call dword [sym.imp.MSVCR80.dll_fclose]
mov eax, 0xffffffeb
add esp, 4
sub eax, esi
jmp 0x46720b
push 2
lea ecx, [esp + 0x40]
push 3
push ecx
call fcn.00464d30
add esp, 0xc
test eax, eax
jge 0x4670d9
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 0x46720b
mov al, byte [esp + 0x3c]
cmp al, 0x35
jne 0x467115
call dword [sym.imp.MSVCR80.dll__errno]
mov ecx, dword [eax]
lea edx, [esp + 0x3c]
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 0x46720b
cmp al, 0x34
jne 0x467123
mov eax, 0x270f
jmp 0x46720b
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x30]
push edx
push edi
call sub.WSOCK32.dll_accept
push edi
mov esi, eax
call sub.WSOCK32.dll_closesocket
test esi, esi
ja 0x467164
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
mov eax, 0xfffff830
jmp 0x46720b
mov edi, dword [esp + 0x904]
call fcn.00464e80
mov edi, eax
test edi, edi
jle 0x467187
call dword [sym.imp.MSVCR80.dll__errno]
mov ecx, dword [eax]
mov dword [0x5711ec], ecx
push ebp
jmp 0x4671e3
push ebp
push esi
mov ebx, 0x5642f8
call fcn.00465160
mov edi, eax
add esp, 8
test edi, edi
jle 0x4671c3
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 esi
call sub.WSOCK32.dll_closesocket
mov eax, 0xfffffff7
sub eax, edi
jmp 0x46720b
mov edi, dword [esp + 0x904]
call fcn.00464e80
mov edi, eax
call dword [sym.imp.MSVCR80.dll__errno]
test edi, edi
push ebp
jle 0x4671f8
mov eax, dword [eax]
mov dword [0x5711ec], eax
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
push esi
call sub.WSOCK32.dll_closesocket
mov eax, edi
neg eax
jmp 0x46720b
mov ecx, dword [eax]
mov dword [0x5711ec], ecx
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x8f0]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00523ce0
add esp, 0x8e4
ret