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

Disassembly:
sub esp, 0x7e8
mov eax, dword [0x5627bc]
xor eax, esp
mov dword [esp + 0x7e4], eax
mov eax, dword [esp + 0x7f0]
push ebp
push esi
push edi
mov edi, dword [sym.imp.MSVCR80.dll__errno]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 1
call edi
mov ecx, dword [esp + 0x800]
xor ebp, ebp
mov dword [eax], ebp
xor eax, eax
cmp ecx, 0xffffffff
mov dword [0x5711e8], 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
jne 0x467958
mov eax, dword [0x54c0e8]
cmp eax, ecx
je 0x467958
mov ecx, eax
mov dword [esp + 0x800], ecx
push ebp
push 0x64
lea edx, [esp + 0x3f8]
push edx
push ecx
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 0x4679ac
call edi
mov eax, dword [eax]
pop edi
pop esi
mov dword [0x5711ec], eax
mov eax, 0xfffff768
pop ebp
mov ecx, dword [esp + 0x7e4]
xor ecx, esp
call fcn.00523ce0
add esp, 0x7e8
ret
xor eax, eax
push 0x10
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov word [esp + 0x28], 2
mov dword [esp + 0x2c], ebp
mov word [esp + 0x2a], bp
call sub.WSOCK32.dll_bind
push 5
push esi
call sub.WSOCK32.dll_listen
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x20]
push eax
push esi
call sub.WSOCK32.dll_getsockname
test eax, eax
jge 0x467a24
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 + 0x7e4]
xor ecx, esp
call fcn.00523ce0
add esp, 0x7e8
ret
mov edx, dword [esp + 0x1e]
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 + 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 + 0x1c4], ax
mov dword [esp + 0x1c0], edx
xor eax, eax
nop
mov cl, byte [eax + 0x571200]
mov byte [esp + eax + 0x58], cl
add eax, 1
test cl, cl
jne 0x467a80
lea edi, [esp + 0x58]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x467a98
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 0x467ab2
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 0x467ac6
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 0x467ae5
lea eax, [esp + 0x48]
mov word [edi], bx
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x467af8
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 0x467b10
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 0x467b30
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 0x467b53
lea edi, [esp + 0x1c0]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x467b68
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 + 0x1c0]
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 0x467b90
mov edi, dword [esp + 0x804]
sub eax, edx
lea ecx, [esp + 0x1c0]
mov ebx, edi
call fcn.00464cf0
mov esi, eax
test esi, esi
jle 0x467bd9
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 0x468039
call fcn.00464e80
mov esi, eax
test esi, esi
jle 0x467c05
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 0x468039
mov eax, dword [esp + 0x7fc]
mov bl, 0x2f
cmp byte [eax], bl
jne 0x467c35
cmp byte [eax + 1], bl
je 0x467c35
mov ecx, dword [str.CWD__]
mov dx, word [0x53bc1c]
mov dword [esp + 0x8c], ecx
mov word [esp + 0x90], dx
jmp 0x467c4e
mov eax, dword [str.CWD]
mov cl, byte [0x53bc14]
mov dword [esp + 0x8c], eax
mov byte [esp + 0x90], cl
mov eax, dword [esp + 0x7fc]
lea ebp, [esp + 0x2f4]
sub ebp, eax
mov edi, edi
mov cl, byte [eax]
mov byte [eax + ebp], cl
add eax, 1
test cl, cl
jne 0x467c60
lea eax, [esp + 0x2f4]
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x467c75
lea edi, [esp + 0x8c]
sub eax, edx
add edi, 0xffffffff
lea ebx, [ebx]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x467c90
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 + 0x8c]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x467cb4
sub eax, edx
cmp byte [esp + eax + 0x8b], bl
jne 0x467ce4
lea eax, [esp + 0x8c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x467cd2
sub eax, edx
mov byte [esp + eax + 0x8b], cl
lea eax, [esp + 0x8c]
add eax, 0xffffffff
mov edi, edi
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x467cf0
mov dx, word [0x53bc0c]
mov cl, byte [0x53bc0e]
mov word [eax], dx
mov byte [eax + 2], cl
lea eax, [esp + 0x8c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x467d17
mov ebx, dword [esp + 0x804]
sub eax, edx
lea ecx, [esp + 0x8c]
call fcn.00464cf0
mov esi, eax
test esi, esi
jle 0x467d5f
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 0x468039
push 2
lea ecx, [esp + 0x44]
push 3
push ecx
call fcn.00464d30
add esp, 0xc
test eax, eax
jge 0x467d96
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 0x468039
mov al, byte [esp + 0x40]
cmp al, 0x35
jne 0x467dd2
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 0x468039
cmp al, 0x34
je 0x467f2d
mov edi, dword [esp + 0x804]
call fcn.00464e80
mov esi, eax
test esi, esi
jle 0x467e09
call dword [sym.imp.MSVCR80.dll__errno]
mov ecx, dword [eax]
push edi
mov dword [0x5711ec], ecx
call sub.WSOCK32.dll_closesocket
mov eax, esi
neg eax
jmp 0x468039
mov al, byte [0x53bc84]
mov edx, dword [str.LIST]
mov byte [esp + 0x90], al
mov eax, dword [esp + 0x7fc]
mov dword [esp + 0x8c], edx
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x467e30
lea eax, [esp + 0x8c]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x467e43
mov cx, word [0x53bc0c]
mov dl, byte [0x53bc0e]
mov word [eax], cx
mov byte [eax + 2], dl
lea eax, [esp + 0x8c]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x467e70
mov ebx, dword [esp + 0x804]
sub eax, edx
lea ecx, [esp + 0x8c]
call fcn.00464cf0
mov esi, eax
test esi, esi
jle 0x467eb7
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, 0xffffffeb
sub eax, esi
jmp 0x468039
push 2
lea edx, [esp + 0x44]
push 3
push edx
call fcn.00464d30
add esp, 0xc
test eax, eax
jge 0x467eed
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, 0xffffe188
jmp 0x468039
mov al, byte [esp + 0x40]
cmp al, 0x35
jne 0x467f29
call dword [sym.imp.MSVCR80.dll__errno]
mov edx, dword [eax]
lea eax, [esp + 0x40]
push eax
mov dword [0x5711ec], edx
call dword [sym.imp.MSVCR80.dll_atoi]
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
mov esi, eax
call sub.WSOCK32.dll_closesocket
mov eax, 0xfffff448
sub eax, esi
jmp 0x468039
cmp al, 0x34
jne 0x467f37
mov eax, 0x270f
jmp 0x468039
mov edi, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x34]
push eax
push edi
call sub.WSOCK32.dll_accept
push edi
mov esi, eax
call sub.WSOCK32.dll_closesocket
test esi, esi
ja 0x467f75
call dword [sym.imp.MSVCR80.dll__errno]
mov ecx, dword [eax]
push edi
mov dword [0x5711ec], ecx
call sub.WSOCK32.dll_closesocket
mov eax, 0xfffff830
jmp 0x468039
lea edx, [esp + 0x1c]
push edx
push 0x8004667e
push esi
call sub.WSOCK32.dll_ioctlsocket
test eax, eax
jge 0x467fa6
call dword [sym.imp.MSVCR80.dll__errno]
mov eax, dword [eax]
push esi
mov dword [0x5711ec], eax
call sub.WSOCK32.dll_closesocket
mov eax, 0xffffe250
jmp 0x468039
mov edi, ebx
call fcn.00464e80
mov edi, eax
test edi, edi
jle 0x467fcd
call dword [sym.imp.MSVCR80.dll__errno]
mov ecx, dword [eax]
push esi
mov dword [0x5711ec], ecx
call sub.WSOCK32.dll_closesocket
mov eax, edi
neg eax
jmp 0x468039
mov edx, dword [esp + 0x18]
push edx
mov edi, 0x5642f8
mov ecx, esi
call fcn.00465050
mov edi, eax
add esp, 4
test edi, edi
jle 0x468003
call dword [sym.imp.MSVCR80.dll__errno]
mov eax, dword [eax]
push esi
mov dword [0x5711ec], eax
call sub.WSOCK32.dll_closesocket
mov eax, 0xfffffff7
sub eax, edi
jmp 0x468039
mov edi, ebx
call fcn.00464e80
mov edi, eax
call dword [sym.imp.MSVCR80.dll__errno]
test edi, edi
push esi
jle 0x46802a
mov ecx, dword [eax]
mov dword [0x5711ec], ecx
call sub.WSOCK32.dll_closesocket
mov eax, edi
neg eax
jmp 0x468039
mov edx, dword [eax]
mov dword [0x5711ec], edx
call sub.WSOCK32.dll_closesocket
xor eax, eax
mov ecx, dword [esp + 0x7f4]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00523ce0
add esp, 0x7e8
ret